[Mono-list] System.Drawing.Drawing2D.GraphicsPath

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Mar 10 14:42:06 EDT 2009


On Tue, 2009-03-10 at 10:03 -0700, xyznyc wrote:
> MoMA reports two problems in my asp.net app:
> 
> void GenerateImage () 	void GraphicsPath.AddString (string, FontFamily, int,
> Single, Rectangle, StringFormat) 	The layoutRect and StringFormat parameters
> are ignored when using libgdiplus.

As MoMA reports this method works except for the last two parameters.
Actually some of the (less used) options defined in StringFormat are not
supported at all by libgdiplus.

> void GenerateImage () 	void GraphicsPath.Warp (PointF[], RectangleF, Matrix,
> WarpMode, Single) 	GdipWarpPath isn't implemented in libgdiplus
> 
> These methods are used by my captcha-image generating code. 

Yep, captcha is the only case I've ever seen using Warp. However you can
achieve similar result by applying some matrix to the points of the
GraphicPath.

> Nearly all of
> the rest of my code works great under Mono. Any chance of these GraphicsPath
> methods being implemented soon?

Soon ? as in 2.4 ? *no* 

If someone contribute the code then it _could_ be part of 2.6 (around
September iirc). 

If not then it's unlikely to be added any time soon since this is a very
low priority enhancement. If you want to track future progress (or
changes) on this add yourself on c.c. of the bug report #400775 [1].

Like I said the easiest (for you) way to get the functionality is doing
some transform on the GP points. Someone implementing Warp itself needs
to do it in a (somewhat) compatible way to what MS implemented (which
makes it a more complex task).

Sebastien

[1] https://bugzilla.novell.com/show_bug.cgi?id=400775



More information about the Mono-list mailing list