Hi All and thx in advance.
I am coding a little sprite editor app but am having problems with CopyRect.
When I do the following:
SprSheetImg.Canvas.CopyRect(Rect(504,441,576,504),ClipBoardPanel.Canvas, rect(4,4,76,67) );
It works correctly.
However, when the SrcRect & DestRect are calculated as below:
SprSheetImg.Canvas.CopyRect(RectToPaste,ClipBoardPanel.Canvas, RectToCopy);
It does not 'copy' correctly, even though in debugging both tRects hold the correct values?
Any ideas why this may be?