Is it possible to use the ImagePlugin with the function "EncodeImage(#Image, #PB_ImagePlugin_PNG, #False, 32)"?
For this I have to use "UsePNGImageEncoder()" additionally. If I use #SystemImagePlugin_PNG as parameter, I don't get an image encoded.
Peter
ImagePlugin Module (Cross platform multi format de-/encoder)
Re: ImagePlugin Module (Cross platform multi format de-/enco
It works fine when I try on my computerPeDe wrote:If I use #SystemImagePlugin_PNG as parameter, I don't get an image encoded.
Code: Select all
ImagePlugin::UseSystemImageEncoder()
SaveImage(Image, "test2.png", ImagePlugin::#SystemImagePlugin, ImagePlugin::#SystemImagePlugin_PNG)
*Buffer = EncodeImage(Image, ImagePlugin::#SystemImagePlugin, ImagePlugin::#SystemImagePlugin_PNG)
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: ImagePlugin Module (Cross platform multi format de-/enco
Thank you wilbert,
I used the parameters incorrectly and did not set 'Flags' correctly. Now everything works without problems.
Peter
I used the parameters incorrectly and did not set 'Flags' correctly. Now everything works without problems.
Peter
Re: ImagePlugin Module (Cross platform multi format de-/encoder)
@Wilbert, I don't know if you saw it. Or for other users that might be interested in a PB C Backend compatible version
https://www.purebasic.fr/english/viewto ... 16#p580716
And thank you for your excellent work!!
https://www.purebasic.fr/english/viewto ... 16#p580716

PB 6.21 beta, PureVision User