I'm busy porting an imaging application from Delphi to Lazarus. The application uses StretchDraw to draw a bitmap image on a TImage component at twice its resolution. In Delphi the displayed image is nice and sharp but in lazarus it is fuzzy. On inspection it seems that the image drawing algorithm in Lazarus is interpolating the pixels on the displayed image from the original bitmap.
Is there anywhere I can switch the interpolation off? Setting CopyMode does not help.
Where can I find the bitmap drawing code. I've tried tracing through the code, but StretchDraw call the OnPaint event and the OnPaint event calls StretchDraw.
I'm using Lazarus 0.98, fpc 2.0 on Fedora Core 2
Any advice will be welcome
Thanks
Alanphys