public GetOutsideBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath | ||
context | RenderContext | Rendering context. |
rect | Rectangle | Target rectangle. |
palette | IPaletteBorder | Palette used for drawing. |
orientation | VisualOrientation | Visual orientation of the border. |
state | PaletteState | State associated with rendering. |
Résultat | GraphicsPath |
public override GraphicsPath GetOutsideBorderPath(RenderContext context,
Rectangle rect,
IPaletteBorder palette,
VisualOrientation orientation,
PaletteState state)
{
Debug.Assert(context != null);
Debug.Assert(palette != null);
// Validate parameter references
if (context == null) throw new ArgumentNullException("context");
if (palette == null) throw new ArgumentNullException("palette");
Debug.Assert(context.Control != null);
Debug.Assert(!context.Control.IsDisposed);
// Use helper to create a border path on the outside
return CreateBorderBackPath(true, false, rect,
CommonHelper.OrientateDrawBorders(palette.GetBorderDrawBorders(state), orientation),
palette.GetBorderWidth(state),
palette.GetBorderRounding(state),
(palette.GetBorderGraphicsHint(state) == PaletteGraphicsHint.AntiAlias),
0);
}