Using PB 4.61 beta 4 on Windows XP x86 I noticed two things:
1. If the image has 32 bits, the colors fade to alpha
and white when enlarging the image. -> Tested with 4.51, 4.60 and 4.61. Only with 4.51 it works correctly (no fading to white)!
2. Resizing with #PB_Image_Smooth doesn't seem to work if the image has a depth of 24 bits. -> Tested with 4.51, 4.60 and 4.61. All behave the same.
Test code:
Code:
ImageNr = CreateImage(#PB_Any, 20, 20, 32 | #PB_Image_Transparent)
StartDrawing(ImageOutput(ImageNr))
DrawingMode(#PB_2DDrawing_AlphaBlend)
Box(1, 1, 10, 10, $FF00FF00)
Circle(13, 13, 5, $7FFF00FF)
StopDrawing()
ResizeImage(ImageNr, 600, 600, #PB_Image_Smooth)
;ShowLibraryViewer("Image", ImageNr)
;CallDebugger
File.s = GetTemporaryDirectory() + "test.png"
UsePNGImageEncoder()
SaveImage(ImageNr, File, #PB_ImagePlugin_PNG)
RunProgram(File, "", GetPathPart(File))
End