Advertisement

08.04.2004 at 09:17PM PDT, ID: 21082945
[x]
Attachment Details

Transparency in Visual Basic

Asked by trollman in Visual Basic Programming, Microsoft Programming

Tags: visual, basic, transparency

I've been doing some programming for games and other things in VB, and recently was looking into making graphics transparent in Visual Basic.  I already found the BitBlt method of using two images.  This works pretty well for me, but suffers from the obvious disadvantage of having double the images to make it work.

The other day I found the drawiconex function, which draws an icon image as an icon on a form the same way bitblt does, only with the transparencies of said icon preserved.  So it'd seem that if I used a program like Microangelo to make some custom sized icons, then used drawiconex to draw said icons, I'd be able to do transparency with just one image.

My question is would there be significant disadvantages to this, as compared to the Bitblt way (IE speed, or features only Bitblt could probably provide to me).  And, are there any other good standard methods out there for using a drawing method to create a transparent image?Start Free Trial
 
Loading Advertisement...
 
[+][-]08.04.2004 at 09:47PM PDT, ID: 11723238

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Microsoft Programming
Tags: visual, basic, transparency
Sign Up Now!
Solution Provided By: zzzzzooc
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.05.2004 at 06:26AM PDT, ID: 11725828

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.05.2004 at 06:41AM PDT, ID: 11725986

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.05.2004 at 05:27PM PDT, ID: 11731993

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32