C# Class Frost.Painting.Painter

Show file Open project: fealty/Frost Class Usage Examples

Public Methods

Method Description
Begin ( Canvas target, Retention retention = Retention.ClearData ) : void
Clear ( ) : void
Clear ( Rectangle region ) : void
Clear ( float x, float y, float width, float height ) : void
End ( ) : void
Fill ( Shape shape ) : void
FillRectangle ( Rectangle rectangleRegion ) : void
FillRectangle ( Rectangle rectangleRegion, Size roundedRadius ) : void
FillRectangle ( float rectangleX, float rectangleY, float rectangleWidth, float rectangleHeight, float roundedRadiusWidth = 0.0f, float roundedRadiusHeight = 0.0f ) : void
ResetState ( ) : void
RestoreState ( ) : void
Rotate ( float angle ) : void
Rotate ( float angle, Point origin ) : void
Rotate ( float angle, float originX, float originY ) : void
SaveState ( ) : void
Scale ( Size size ) : void
Scale ( float width, float height ) : void
Scale ( float width, float height, float originX, float originY ) : void
SetBrush ( Canvas source, Repetition extension ) : void
SetBrush ( Color color ) : void
SetBrush ( Point linearGradientStart, Point linearGradientEnd, Gradient gradient ) : void
SetBrush ( Point radialGradientCenter, Size radialGradientOffset, Size radialGradientRadius, Gradient gradient ) : void
SetBrush ( float linearGradientStartX, float linearGradientStartY, float linearGradientEndX, float linearGradientEndY, Gradient gradient ) : void
SetBrush ( float radialGradientCenterX, float radialGradientCenterY, float radialGradientOffsetWidth, float radialGradientOffsetHeight, float radialGradientRadiusWidth, float radialGradientRadiusHeight, Gradient gradient ) : void
Skew ( float angleX, float angleY ) : void
Stroke ( Shape shape ) : void
StrokeLine ( Point lineStart, Point lineEnd ) : void
StrokeLine ( float lineStartX, float lineStartY, float lineEndX, float lineEndY ) : void
StrokeRectangle ( Rectangle rectangleRegion ) : void
StrokeRectangle ( Rectangle rectangleRegion, Size roundedRadius ) : void
StrokeRectangle ( float rectangleX, float rectangleY, float rectangleWidth, float rectangleHeight, float roundedRadiusWidth = 0.0f, float roundedRadiusHeight = 0.0f ) : void
Transform ( Matrix3X2 &transformation ) : void
Translate ( Size value ) : void
Translate ( float width, float height ) : void

Protected Methods

Method Description
OnBegin ( Canvas target, Retention retention ) : void
OnClear ( ) : void
OnClear ( Rectangle &region ) : void
OnEnd ( ) : void
OnFill ( Shape shape ) : void
OnFillRectangle ( Rectangle &rectangleRegion ) : void
OnFillRectangle ( Rectangle &rectangleRegion, Size &roundedRadius ) : void
OnResetState ( ) : void
OnRestoreState ( ) : void
OnSaveState ( ) : void
OnSetBrush ( Canvas source, Repetition extension ) : void
OnSetBrush ( Color color ) : void
OnSetBrush ( Point &linearGradientStart, Point &linearGradientEnd, Gradient gradient ) : void
OnSetBrush ( Point &radialGradientCenter, Size &radialGradientOffset, Size &radialGradientRadius, Gradient gradient ) : void
OnStroke ( Shape shape ) : void
OnStrokeLine ( Point &lineStart, Point &lineEnd ) : void
OnStrokeRectangle ( Rectangle &rectangleRegion ) : void
OnStrokeRectangle ( Rectangle &rectangleRegion, Size &roundedRadius ) : void
Painter ( Device2D device2D ) : System.Diagnostics.Contracts

Method Details

Begin() public method

public Begin ( Canvas target, Retention retention = Retention.ClearData ) : void
target Canvas
retention Retention
return void

Clear() public method

public Clear ( ) : void
return void

Clear() public method

public Clear ( Rectangle region ) : void
region Rectangle
return void

Clear() public method

public Clear ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void

End() public method

public End ( ) : void
return void

Fill() public method

public Fill ( Shape shape ) : void
shape Shape
return void

FillRectangle() public method

public FillRectangle ( Rectangle rectangleRegion ) : void
rectangleRegion Rectangle
return void

FillRectangle() public method

public FillRectangle ( Rectangle rectangleRegion, Size roundedRadius ) : void
rectangleRegion Rectangle
roundedRadius Size
return void

FillRectangle() public method

public FillRectangle ( float rectangleX, float rectangleY, float rectangleWidth, float rectangleHeight, float roundedRadiusWidth = 0.0f, float roundedRadiusHeight = 0.0f ) : void
rectangleX float
rectangleY float
rectangleWidth float
rectangleHeight float
roundedRadiusWidth float
roundedRadiusHeight float
return void

OnBegin() protected abstract method

protected abstract OnBegin ( Canvas target, Retention retention ) : void
target Canvas
retention Retention
return void

OnClear() protected abstract method

protected abstract OnClear ( ) : void
return void

OnClear() protected abstract method

protected abstract OnClear ( Rectangle &region ) : void
region Rectangle
return void

OnEnd() protected abstract method

protected abstract OnEnd ( ) : void
return void

OnFill() protected abstract method

protected abstract OnFill ( Shape shape ) : void
shape Shape
return void

OnFillRectangle() protected abstract method

protected abstract OnFillRectangle ( Rectangle &rectangleRegion ) : void
rectangleRegion Rectangle
return void

OnFillRectangle() protected abstract method

protected abstract OnFillRectangle ( Rectangle &rectangleRegion, Size &roundedRadius ) : void
rectangleRegion Rectangle
roundedRadius Size
return void

OnResetState() protected abstract method

protected abstract OnResetState ( ) : void
return void

OnRestoreState() protected abstract method

protected abstract OnRestoreState ( ) : void
return void

OnSaveState() protected abstract method

protected abstract OnSaveState ( ) : void
return void

OnSetBrush() protected abstract method

protected abstract OnSetBrush ( Canvas source, Repetition extension ) : void
source Canvas
extension Repetition
return void

OnSetBrush() protected abstract method

protected abstract OnSetBrush ( Color color ) : void
color Color
return void

OnSetBrush() protected abstract method

protected abstract OnSetBrush ( Point &linearGradientStart, Point &linearGradientEnd, Gradient gradient ) : void
linearGradientStart Point
linearGradientEnd Point
gradient Gradient
return void

OnSetBrush() protected abstract method

protected abstract OnSetBrush ( Point &radialGradientCenter, Size &radialGradientOffset, Size &radialGradientRadius, Gradient gradient ) : void
radialGradientCenter Point
radialGradientOffset Size
radialGradientRadius Size
gradient Gradient
return void

OnStroke() protected abstract method

protected abstract OnStroke ( Shape shape ) : void
shape Shape
return void

OnStrokeLine() protected abstract method

protected abstract OnStrokeLine ( Point &lineStart, Point &lineEnd ) : void
lineStart Point
lineEnd Point
return void

OnStrokeRectangle() protected abstract method

protected abstract OnStrokeRectangle ( Rectangle &rectangleRegion ) : void
rectangleRegion Rectangle
return void

OnStrokeRectangle() protected abstract method

protected abstract OnStrokeRectangle ( Rectangle &rectangleRegion, Size &roundedRadius ) : void
rectangleRegion Rectangle
roundedRadius Size
return void

Painter() protected method

protected Painter ( Device2D device2D ) : System.Diagnostics.Contracts
device2D Device2D
return System.Diagnostics.Contracts

ResetState() public method

public ResetState ( ) : void
return void

RestoreState() public method

public RestoreState ( ) : void
return void

Rotate() public method

public Rotate ( float angle ) : void
angle float
return void

Rotate() public method

public Rotate ( float angle, Point origin ) : void
angle float
origin Point
return void

Rotate() public method

public Rotate ( float angle, float originX, float originY ) : void
angle float
originX float
originY float
return void

SaveState() public method

public SaveState ( ) : void
return void

Scale() public method

public Scale ( Size size ) : void
size Size
return void

Scale() public method

public Scale ( float width, float height ) : void
width float
height float
return void

Scale() public method

public Scale ( float width, float height, float originX, float originY ) : void
width float
height float
originX float
originY float
return void

SetBrush() public method

public SetBrush ( Canvas source, Repetition extension ) : void
source Canvas
extension Repetition
return void

SetBrush() public method

public SetBrush ( Color color ) : void
color Color
return void

SetBrush() public method

public SetBrush ( Point linearGradientStart, Point linearGradientEnd, Gradient gradient ) : void
linearGradientStart Point
linearGradientEnd Point
gradient Gradient
return void

SetBrush() public method

public SetBrush ( Point radialGradientCenter, Size radialGradientOffset, Size radialGradientRadius, Gradient gradient ) : void
radialGradientCenter Point
radialGradientOffset Size
radialGradientRadius Size
gradient Gradient
return void

SetBrush() public method

public SetBrush ( float linearGradientStartX, float linearGradientStartY, float linearGradientEndX, float linearGradientEndY, Gradient gradient ) : void
linearGradientStartX float
linearGradientStartY float
linearGradientEndX float
linearGradientEndY float
gradient Gradient
return void

SetBrush() public method

public SetBrush ( float radialGradientCenterX, float radialGradientCenterY, float radialGradientOffsetWidth, float radialGradientOffsetHeight, float radialGradientRadiusWidth, float radialGradientRadiusHeight, Gradient gradient ) : void
radialGradientCenterX float
radialGradientCenterY float
radialGradientOffsetWidth float
radialGradientOffsetHeight float
radialGradientRadiusWidth float
radialGradientRadiusHeight float
gradient Gradient
return void

Skew() public method

public Skew ( float angleX, float angleY ) : void
angleX float
angleY float
return void

Stroke() public method

public Stroke ( Shape shape ) : void
shape Shape
return void

StrokeLine() public method

public StrokeLine ( Point lineStart, Point lineEnd ) : void
lineStart Point
lineEnd Point
return void

StrokeLine() public method

public StrokeLine ( float lineStartX, float lineStartY, float lineEndX, float lineEndY ) : void
lineStartX float
lineStartY float
lineEndX float
lineEndY float
return void

StrokeRectangle() public method

public StrokeRectangle ( Rectangle rectangleRegion ) : void
rectangleRegion Rectangle
return void

StrokeRectangle() public method

public StrokeRectangle ( Rectangle rectangleRegion, Size roundedRadius ) : void
rectangleRegion Rectangle
roundedRadius Size
return void

StrokeRectangle() public method

public StrokeRectangle ( float rectangleX, float rectangleY, float rectangleWidth, float rectangleHeight, float roundedRadiusWidth = 0.0f, float roundedRadiusHeight = 0.0f ) : void
rectangleX float
rectangleY float
rectangleWidth float
rectangleHeight float
roundedRadiusWidth float
roundedRadiusHeight float
return void

Transform() public method

public Transform ( Matrix3X2 &transformation ) : void
transformation Matrix3X2
return void

Translate() public method

public Translate ( Size value ) : void
value Size
return void

Translate() public method

public Translate ( float width, float height ) : void
width float
height float
return void