Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a transparent rectangle with GDI+X
Message
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01387556
Message ID:
01387570
Views:
61
Thanks Cesar, I'm digesting it now. It's very cool, but it does a lot more than what I was originally thinking I'd do and it really wants to work for the entire form - not just a portion of it. It looks like it's taking a bitmap copy of the active form and rendering it's colors to greyscale and then overlaying the form with the new image.

I was working with the samples earlier and trying to do something like this:
WITH _Screen.System.Drawing
  Local loGfx As xfcGraphics
  loGfx = This.oGfx 
  loSolidBrush = .SolidBrush.New(.Color.FromArgb(120, 250, 10, 10),1) 
  loGfx.FillRectangle(loSolidBrush, This.Rectangle)
The problem I ran into with this is that "This.Rectangle" has a solid color of blue and when I add my loSolidBrush on top of it, the transparency is on top of the blue color.

Is it possible to draw a semi-transparent rectangle?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform