Picture1.Picture = Picture2.image, which resources are used ?
Posted on 2004-10-06
Hi iam doing the above to illustrate a grid and a rectangle moving with the mouse over this, this means
I generate a picture and put it into Picture2 and picture1, on a mousemove on picture 1 i draw a hollow rectangle which corresponds to the position of the mouse over the image, next the user triggers yet another mouse move i do the command
Picture1.Picture = Picture2.image to restore the original image (deleting the rectangle) and then draw the new rectangle onto Picture1, is this the best method to visualize a rectangle moving with the mouse, the thing is that this solution lags on some computers.
Which resources are used when you perform a Picture1.Picture = Picture2.image, is it only processor or does the GFX card have alot to do with it ?
Does someone have another idea of how this could be done ?