PascalMagick Background Color lazarus / 64-FPC development ---------------------------------------------------------------------- datilas · 2023-06-16 14:03 I'm using the demo that is in: ...\fpc\examples\imagemagick -> wandemo.dpr on the link: https://wiki.freepascal.org/PascalMagick -> Demonstration program 1 when reading a .png image resize and save in .jpg the background of the image turns black I would like to know how to change the background of the image to white. Can someone help me? ---------------------------------------------------------------------- datilas · 2023-06-16 15:07 using: MagickSetImageType(wand, TrueColorType{ColorSeparationMatteType}); PixelSetColor(back, 'rgb(255,255,255)'); MagickSetImageBackgroundColor(wand, back); I got a bad result, follow the pictures image.png : original image-ColorSeparationMatteType.jpg: using ColorSeparationMatteType image-TrueColorType.jpg: using TrueColorType obs: I already used all types "type ImageType = (" maybe someone has an idea?