Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GDI+ drawing help
Message
De
11/09/2009 10:13:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
GDI+ drawing help
Divers
Thread ID:
01423662
Message ID:
01423662
Vues:
194
I was the kid who flunked art class in 3rd grade because he could not draw a straight line, and my graphics ability has not improved much.

But now I want to use GDI+ drawing to put some nice slight gradients here and there. I stole from the gdi+ examples an imagecanvas and put it on my form. In the init I have:
LOCAL loBrush AS xfcLinearGradientBrush
WITH _Screen.System.Drawing
  loBrush = .Drawing2D.LinearGradientBrush.New(This.Rectangle,;
     .Color.FromRGB(233,233,233), ;
     .Color.FromRGB(249,249,249),;
     1)
  This.oGfx.FillRectangle(loBrush, This.Rectangle)
ENDWITH
and I have absolutely no idea what I did. Rather than spend a day inside the gdi classes, can somebody give me the basics:

1. The documentation on MSDN for gdi+ in VFP is skimpy at best. Any better source ?
2. I got that the system.app is giving me the .drawing2d.lineargradientbrush, but what am I making a "new" of? the rectangle already exists on the form in the size I want, so it seems this method paints the image canvas using the 2 colors and the gradient type, but what is the rectangle object doing there?
3. How can I use that rectangle object to do things like give curvature to the corners?
4. What is rendermode property?

I think if I can get an idea what this rectangle object is and where it comes from and what props and metthds I could get going.

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform