[Lazarus] Mac Drawing
DHaxton at Audiovox.com
DHaxton at Audiovox.com
Fri Sep 17 22:40:49 CEST 2010
I have a problem getting a portion of a bitmap to reverse on a Mac. I
initially thought about using the InvertRect API functions for mac and
Win32, but quickly figured out that they were very different indeed.
Here's the code I'm currently testing:
procedure TForm1.InvertRect;
var
r: TRect;
begin
r.TopLeft := p1;
r.BottomRight := p2;
Image1.Canvas.CopyMode := cmDstInvert;
Image1.Canvas.CopyRect(r, Image1.Canvas, r);
Image1.Canvas.CopyMode := cmSrcCopy;
end;
p1 and p2 are points set in my mouse events - works like a charm on
Windows, does absolutely nothing on the Mac. I'm running 0.9.29.
Hints, clues, or workarounds appreciated!
Thanks,
Dave H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100917/ae337878/attachment.html>
More information about the Lazarus
mailing list