A bug with PenAlignment ??

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi

I just make some test to see the effect of PenAlignment. And I noticed
that:

* using Graphics.DrawLine: no effect, it is always "Center"
* using Graphics.DrawRectangle: Center and Inset are ok but Left, Outset and
Right are always "Center"
* using Graphics.DrawPath: same as DrawLine if CloseFigure is not called,
same as DrawRectangle if CloseFigure is called

Is it a bug ? is there some restriction to use PenAlignement ?
In the documentation (section Using GDI+, Setting Pen Width and Alignment),
only inset and center are explained using DrawRectangle.



.



Relevant Pages

  • Re: A bug with PenAlignment ??
    ... PenAlignment was only implemented for Center, and for rectangles, Inset. ... same as DrawLine if CloseFigure is not called, ... only inset and center are explained using DrawRectangle. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: A bug with PenAlignment ??
    ... PenAlignment was only implemented for Center, and for rectangles, Inset. ... same as DrawLine if CloseFigure is not called, ... only inset and center are explained using DrawRectangle. ...
    (microsoft.public.dotnet.framework.drawing)