Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - ImageManager Draw Alpha
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ImageManager Draw Alpha

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: ImageManager Draw Alpha
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2009 at 2:28am
Hi,
 
have you tried Draw method ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2009 at 9:54am
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:


            UserControl.ImageManager1.Icons.GetImage(100, 16).Draw hdc, Left + l_LeftOffset, Top + l_TopOffset, 16, 16, xtpImageNormal


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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 12:06am
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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1354
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2009 at 8:06am
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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.