We help IT Professionals succeed at work.

Graphics with alpha channel transparency

glennkerr
glennkerr asked
on
746 Views
Last Modified: 2013-12-26
I am trying to use 32 bit icons with alpha transparency in VB 6 in any kind of borderless, clickable control.  I've found a workaround using CreateIconFromResourceEx and OleCreatePictureIndirect to open the icon without VB 6 erroring (since it thinks 32 bit icons aren't a valid icon file), but when I apply that picture to an Image, PictureBox, or CommandButton object it degrades to 256 colours.  It works correctly with ToolBar controls, but the toolbar control isn't right for the functionality that I need.

And so, what I need is either some other way of forcing the basic VB objects to handle 32 bit colour with alpha transparency, or some third party object that can display only the icon (no frame + transparent background) as well as having mouse click functionality.
Comment
Watch Question

Dana Seaman (danaseaman)
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.