Piccolo.NET

PSelectionEventHandler.SetSafeMarqueePen Method 

When the width and the height are too small to render the path using the current pen, this method sets the marquee to a pen that can render the path safely.

protected virtual bool SetSafeMarqueePen(
   float width,
   float height
);

Parameters

width
The width of the marquee.
height
The height of the marquee.

Return Value

True if the marquee pen was changed; otherwise, false.

Remarks

This method is necessary to handle the case where the perimeter of the marquee is less than the DashWidth. In that case, if the path is rendered with a pen that has a DashOffset greater than or equal to the DashWidth, .NET will throw a System.OutOfMemeoryException.

See Also

PSelectionEventHandler Class | UMD.HCIL.PiccoloX.Events Namespace