Doubt with Plugin SDK

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
Mauro

Doubt with Plugin SDK

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Doubt with Plugin SDK

Post by xnview »

You have has_colormap
Pierre.
Mauro

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post 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
Pierre.
mxmauro
Posts: 3
Joined: Sun Apr 27, 2008 12:03 am

Post 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 :wink:
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post 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...
Pierre.
Post Reply