Hello,
I'm trying to translate a piece of code to scale an image with a filter. But when translating from C, there's a problem with the colors. Does anyone know what the problem is? I've attached a test application and the original source file.
The problem is clearly visible in the screenshots (original small for attached limit), but you can see the building's portico in the image, so I assume the solution isn't far off, even if I can't find it.
Note: I also tried translating the part about loading from a "raw" file, but it was too C-based and just didn't work. So I opted to use the raw data via TBitmap. But that's of secondary importance.