NShape Reference
ToolCache.GetTransformedBrush Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced > ToolCache Class >

NShape Reference
ToolCache.GetTransformedBrush Method

Previous pageReturn to chapter overviewNext page

Returns a transformed Brush for the given IFillStyle.

Syntax

public static Brush GetTransformedBrush(IFillStyle fillStyle, Rectangle unrotatedBounds, Point center, int angle)

Description

Returns a transformed System.Drawing.Brush for the given IFillstyle.

The brush will be translated according to the layout defined by IFillStyle.ImageLayout, scaled to fit into the given untransformed bounds and rotated around the given center by the given angle.

Parameters

Name

Description

fillStyle

Specifies the brush and the brush's layout.

unrotatedBounds

X axis aligned rectangle defining the bounds for the unrotated brush.

center

Specifies the rotation center for the brush.

angle

Specifies the rotation angle of the brush in tenths of degrees.

Return Value

Absolute coordinates of the point defined by relativePosition.

Exceptions

Exception

Condition

ArgumentNullException

The given IFillStyle is null.