Hello. Above all, sorry for my bad English. Subject:
Currently I can convert images (in BMP, JPEG, JPEG2000, PNG) only through SaveImage() function (with recording the output image in file).
I propose to add a new function called ConvertImage(). This function will convert image and write it in memory (RAM).
Like that:
Code: Select all
UseJPEGImageEncoder()
#img = 0
If CreateImage(#img, 32, 32)
*memory_id = ConvertImage(#img, #PB_ImagePlugin_JPEG, 7)
FreeImage(#img)
If *memory_id
;done, now *memory_id — my JPEG image in memory
FreeMemory(*memory_id)
EndIf
EndIf