Hello. I am currently porting a Delphi project, involving a lot of 2d drawing to Lazarus, so it can run on Mac. I have a problem with drawing bmp/png pictures to a canvas - there's an ugly aliasing around the edges. I've attached two screenshots: first one shows part of the picture drawn correctly, using high level TCanvas.Draw method. Unfortunately the complication of the rest of the project makes it impossible for me to use this method and I have to draw using StretchMaskBlt or Carbon's (Mac OS widgetset) CGContext- low level functions (or something else if you have any suggestions? - in Delphi there's the AlphaBlend function used, but since it doesn't exist on Mac I had to find an "equivalent" for it...) The result is presented on the second screenshot - seems to me that this is related to alpha channel or something like that, but my lack of experience with low level drawing makes it hard to even find the right search keywords. Maybe some of you guys had a similar problem and can recognize possible cause of this? - I would appreciate even just some directions on where I should start investigating... Thanks in advance.