Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a transparent rectangle with GDI+X
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01387556
Message ID:
01387570
Vues:
62
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform