Help with DX7 & VB
I am trying to set a color key for a surface and I want the key color to be the color that is at 0,0 in the surface. I can''t seem to get this to work. I am doing the following:
1. Lock the surface
2. GetLockedPixel at 0,0
3. Set colorkey high and low to the result from the GetLockedPixel
5. UnlockSurface
6. Set the surface''s colorkey
I then do a blt. Any idea what I am doing wrong? Help please. Thanks.
Marcus
January 13, 2000 07:18 AM
You just take GetLockedPixel at 1,1 at the secondary surface.
:-) :p

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement