plugins sdk bug report

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
azsd
Posts: 22
Joined: Tue May 31, 2005 5:54 pm
Location: Forest
Contact:

plugins sdk bug report

Post by azsd »

Code: Select all

typedef struct {
  unsigned char red[256]; 
  unsigned char green[256]; 
  unsigned char blue[256]; 
} GFP_COLORMAP; 
in sdk sample get from win32 download page,the struct [3][256](r,r,r,r...g,g,g,g....b,b,b,b) must be [256][3](rgb,rgb,rgb,rgb...),or the color pattle of image will be strage.

I changed it to:

Code: Select all

tagGFP_COLORMAPItem = packed record
  R:Byte;
  G:Byte;
  B:Byte;
end;
tagGFP_COLORMAP = packed record
  Colors:array[0..255] of tagGFP_COLORMAPItem;
end;
and worked fine.

I used a 4bit gray muilty page image format on pda,and use lcd like color pattle in plugins codes, and found this bug.

PS: Is there more detailed sdk codes avalible for download?
I can't use the muility page/layer feather,can't display an option page like others plugins, and can't make the image animated.
User avatar
xnview
Author of XnView
Posts: 46252
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: plugins sdk bug report

Post by xnview »

azsd wrote:

Code: Select all

typedef struct {
  unsigned char red[256]; 
  unsigned char green[256]; 
  unsigned char blue[256]; 
} GFP_COLORMAP; 
in sdk sample get from win32 download page,the struct [3][256](r,r,r,r...g,g,g,g....b,b,b,b) must be [256][3](rgb,rgb,rgb,rgb...),or the color pattle of image will be strage.[/code]
Strange, i'll check
I can't use the muility page/layer feather,can't display an option page like others plugins, and can't make the image animated.
Currently not available with SDK
Pierre.
Post Reply