[Mono-list] LineCap in System.Drawing.Drawing2D does not seem to work

Sebastien Pouliot sebastien.pouliot at gmail.com
Thu Aug 27 08:18:57 EDT 2009


On Wed, 2009-08-26 at 18:11 -0300, Arthur Valadares wrote:
> Hi,
> 
> I've been trying to use linecap to make lines with arrows at the end,
> and while this works fine in .NET, I can't seem to get it to work on
> mono. I know this is dependent on libcairo and libgdiplus, but has
> anyone successfully used pen caps in mono? 
> 
> If yes, I could try recompiling libcairo, libgdiplus and mono from svn
> and try again, but I'm starting to think this isn't implemented at all.
> 
> I've been successful in other settings, such as pen color, seems like
> pen caps is the only thing I haven't been able to do with lines.

There are limitations on what you can do with linecaps because the GDI+
API provides much more options that what's presently possible using
Cairo. In some cases we try to "fake it" but in other cases we simply
can't.

Sebastien



More information about the Mono-list mailing list