General information
Category:
Pictures and Image processing
Title:
How to create a transparent rectangle with GDI+X
I'm working on an interface where I'd like a grid to display as disabled when the form is in a state which shouldn't allow entry into it.
In the first attempt, I created a small transparent PNG that had a darkening effect. I put this on my form and stretched it across the grid and moved it in or out of view when I wanted the grid to appear unavailable. This worked but seemed to be a big graphic hit to VFP. The screen would flicker and the image would take about 2 seconds to draw itself and sometimes is would draw itself twice. Not sure why.
So I thought I'd give GDI+X a try and draw a rectangle with a low alpha channel value set for transparency. I'm fairly new to GDI+X and I'm not seeing a way to do this. If I use the imagecanvas, I can't seem to make that transparent.
Can anyone point me in the right direction?
Thanks.
-m@
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only