Hi all,
I've currently having trouble getting BGRABitmap to resize my image without antialiasing. I have several images of humans than I need to reduce only by a few pixels; if I use Paint.net with "nearest neighbor" interpolation the resized images are crisp and the borders around the figures are deep black.
I haven't been able to find a way to replicate this behavior with BGRABitmap. Even the simplest filter -rmSimpleStretch- adds antialiased/blended borders; looking at the commented code it says it transforms pixels into boxes "with antialiasing between boxes", so maybe this is the reason?
Currently I'm CopyRect'ing each image into a smaller TRect using regular TCanvas methods; as I'm working with a sheet of several hundreds of images this takes a long time. By comparison BGRABitmap's methods are blazingly fast.
Is there any way to disable antialiasing completely and getting a "nearest neighbor" equivalent with BGRABitmap?
Thanks in advance!