Loading...

different bitmap depth

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

different bitmap depth

Postby Gotfredsen » Wed Jan 14, 2009 8:43 pm

I have for the time beeing 2 different types of bmp files.
- using rgb 8bit-chanal (according to adobe photoshop)
- using indexed colors 8bit-chanals (according to adobe photoshop)

When loading various bitmaps using:
gdpicturestatus = GdViewer1.DisplayFromFile(FullFilename)
i get gdpicturestatus=0 for both images, but the rgb-image shows wrong
what am i doing wrong?

Regards
Erik Gotfredsen
Gotfredsen
 
Posts: 10
Joined: Tue Jul 15, 2008 1:40 pm

Re: different bitmap depth

Postby Loïc » Wed Jan 14, 2009 9:06 pm

Hi,

Maybe your image have ICC profile ? In this case you can loading the bitmap applying the profile using the DisplayFromFileICM() method.

If you have a doubt you can send me your file at esupport (at) gdpicture (dot) com.

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: different bitmap depth

Postby Gotfredsen » Thu Jan 15, 2009 11:27 am

You are right, so i changed it to DisplayFromFileICM.

Both type of bmp-images are now shown correctly.

does this mean that i skould always use DisplayFromFileICM?
if not , how do i find out when to use what?

Regards
Erik
Gotfredsen
 
Posts: 10
Joined: Tue Jul 15, 2008 1:40 pm

Re: different bitmap depth

Postby Loïc » Thu Jan 15, 2009 11:38 am

Hi Eric,

This is not really a problem about icc profile.
The problem come from GdPicture and will be fixed into the next release. Please wait 1 day to get it. You don't have to use the DisplayFromFileICM() function.

However, I can't see any problem with the indexed bitmap, only with the 32bpp (but now solved).

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest