Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Semi Transparent Icons from the resource

Support for GdImageBox OCX and GdImageBox Pro ActiveX/SDK.

Semi Transparent Icons from the resource

Postby tomurphy » Wed Aug 26, 2009 6:48 am

Hi Loic

Following on from the previous topic ...

I found one thing, the icon displays ok when displayed from file (DisplayFromFile) but it loses some quality when displayed from the resouce (DisplayFromHIcon) it seems that all the semi transparent pixels become fully transparent.

Cheers
Tom
--
Triumph Business Systems
tomurphy
 
Posts: 15
Joined: Mon Dec 08, 2008 9:05 am

Re: Semi Transparent Icons from the resource

Postby Loïc » Fri Aug 28, 2009 4:41 pm

Hi TOM,

Unfortunately a HBITMAP can't handle Alpha Channel.

A solution consists to export the embed resources to a temporary file to be load using the DisplayFromFile() method.

With best regards,

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

Re: Semi Transparent Icons from the resource

Postby tomurphy » Mon Aug 31, 2009 3:39 am

Hi Loic

Thats a shame, is that because the DisplayFromHIcon ends up calling the loading code that DisplayFromHBitmap calls? So there is no way of correcting this? Apart from what you have suggested already?

Cheers
Tom
--
Triumph Business Systems
www.triumph.com.au
tomurphy
 
Posts: 15
Joined: Mon Dec 08, 2008 9:05 am


Return to GdImageBox [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron