Delphi Firemonkey Draw Bitmap with "Nearest neighbour" on GPU Canvas (Android)

  

im trying to draw a bitmap over the DrawBitmap function in the Paint event using the Canvas Object. I know on Windows you have to set the HighSpeed parameter to true to draw without interpolation resulting in a Nearest neighbour algorithm. For some reason it isnt working on Android or when using a GPU Canvas on Windows and I didnt find any way to get this working. My Code Looks like this:

Canvas.DrawBitmap(ABitmap,Rectf(0,0,ABitmap.Width,ABitmap.Height),ARect,1,true);

Does anyone of you have this problem before and may know a working method to draw a Pixel using Nearest neighbour? Sorry for my bad english, and thanks in advice 🙂

Comments are closed.