How to set TImage size and clear TImage picture?
Posted on 2005-03-03
I have two TImages, "source" is for picture itself, "grid" is for draw grid with transparent=true, so that the "source" can be viewed. My question as below:
1. When picture is loaded into "source" ,
source.Picture.Graphic := Bitmap;
how do I set "grid" to the same size with "source? next code seems doesn't work.
grid.Width := Bitmap.Width;
grid.Height := Bitmap.Height;
2. How can I clear all grid what I drawed in "grid".