Page 1 of 1
Doubt with Plugin SDK
Posted: Sat Apr 26, 2008 2:32 am
by Mauro
Hi,
Is there an update plugin sdk available? For e.g. I saw in the forum an assignment of value EDX_TYPE_PICTURE in the pic_type variable but the only available in sdk are GFP_RGB and GFP_BGR
I don't know if, for a palettized 8-bit file I should use GFP_RGB with bpp=8 or some othe value.
Any help would be appreciated.
Best regards,
Mauro.
Re: Doubt with Plugin SDK
Posted: Sat Apr 26, 2008 6:15 am
by xnview
You have has_colormap
Posted: Sat Apr 26, 2008 1:59 pm
by Mauro
Yes. But always I must use GFP_RGB?
Also applies for images with alpha channels where I must set bpp value with 32?
Thanks, Mauro.
Posted: Sun Apr 27, 2008 4:17 pm
by xnview
Mauro wrote:Yes. But always I must use GFP_RGB?
For the picture?? No 8bits
Also applies for images with alpha channels where I must set bpp value with 32?
You have bits_per_pixel to set in gfpLoadPictureGetInfo
Posted: Tue Apr 29, 2008 1:56 am
by mxmauro
Thanks for the answers. At last 2 more questions?
Is there a SaveColormap function I should declare for storing 8-bit images?
Will be another sdk for plugins? I see that most of image format plugins exports gffGetPluginInfo and gffGetFormatInfo.
Thanks

Posted: Tue Apr 29, 2008 6:05 am
by xnview
mxmauro wrote:
Is there a SaveColormap function I should declare for storing 8-bit images?
You need gfpLoadPictureGetColormap
Will be another sdk for plugins? I see that most of image format plugins exports gffGetPluginInfo and gffGetFormatInfo.
gff** is for my own plugin, don't use the same system.
If you need some feature in the Plugin SDK, please tell me...