Hi Tuvia,
I haven't worked with GDI+ myself, but check
http://weblogs.foxite.com/vfpimaging//default.aspx (all of his messages).
>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.
If it's not broken, fix it until it is.
My Blog