Originally posted by Matt_T_hat In case it is of any interest to anyone I've been learning VB since the summer. I am now considered the class expert as my questions usually bring in other departments or at least heads of departments before answers are found. College tutors kinda fear me I think.
I had that with a Java class. I answered the questions. The tutor got paid...
How about making the yellow color in my picture invisible.
Sastraxi, Can you please explain a bit. I am only familiar with SRCCOPY. I understand the white color is not being painted on picDip & BB and in the last paint the color is being painted only on the black surface of BB.
Thank you.
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
That last technique is used for inverse masking - colour dipping. It makes, say, a green silhouette of the mask on your picture. To do masking, all it takes is two calls:
Duh! that change didn't give any output. What about making the blue color in the picture I attached invisible. Anyway I attached my project. Can you please check it out.
Thank you.
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Whoops! I think you can change the first to MergePaint, and the second to AND, but keeping the dest. any colour. That's what I said in my tutorial, 'cause someone told me that.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
OK that got the white surface in the picture invisible. But what if I want to make any color invisible. Like the sprite control attached (written by Fox). It uses Mask color property, but I want to use BitBlt or DirectX to make it perform faster.
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
I've struggled a bit with using getbitmapbits and pixelsV to create a mask in memory on the fly but it's too damn slow for full screen selections. Any words on this you can offer?
Yes- create them beforehand. I know it's really annoying, but it would be best to create them in the same way as you do your other 2D surfaces. You could also use OCX packages that could do this for you in C++ code. Search around for one. The only other alternative is DirectDraw memory access. The masks could be generated that way.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
I got exactly what I wanted at vbexplorer. In this project you don't need a Mask picture.
Too bad it only works with 4-bit & 8-bit pictures.
It uses an API not listed in WinAPI32.txt.
THE TIME/WEATHER IS
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
TransparentBlt leaks memory every time you use it. Don't use it. Do yourself and your end users' favours and remove it from your app. Use a white bg with the mergepaint/and combo, its worth getting rid of memory leaks you'll cause. Ooh, gimme a sec.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)