<< Click to Display Table of Contents >> NShape Reference
|
Returns a transformed Brush for the given IFillStyle.
public static Brush GetTransformedBrush(IFillStyle fillStyle, Rectangle unrotatedBounds, Point center, int angle) |
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.
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. |
Absolute coordinates of the point defined by relativePosition.
Exception |
Condition |
---|---|
ArgumentNullException |
The given IFillStyle is null. |