ImageManager Draw Alpha |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
Posted: 30 April 2009 at 6:41pm |
Is there a way to draw an icon (PNG) stored in the ImageManager control onto a hDC with an arbitrary alpha level? If not, is there any chance of such a feature?
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
have you tried Draw method ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
Hi Oleg,
I have used the Draw method successfully to draw an icon on an hDC exactly as it appears in the ImageManager, but I don't see any way to change the alpha level arbitrarily using that method...For example:
Draws the image, but I would like to draw it at (for example) 50% transparency...Is this possible? |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
No, its not possible. You can only create additional image manually and set it as "xtpImagechecked" state fot this image.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1354 |
Post Options
Thanks(0)
|
If it is technically possible, Adding an extra property to control the alpha level of any icon would be a great feature...For example, it could be used by having a thread to draw a pulsing icon (fade in/fade out), which would not be possible using an extra xtpImageChecked image (and would be a pain to implement by adding dozens of extra icons at various alpha levels).
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |