C# Class SkiaSharp.SKCanvas

Inheritance: SKObject
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Clear ( ) : void
Clear ( SKColor color ) : void
ClipPath ( SKPath path, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
ClipRect ( SKRect rect, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
ClipRegion ( SKRegion region, SKClipOperation operation = SKClipOperation.Intersect ) : void
Concat ( SKMatrix &m ) : void
DrawBitmap ( SKBitmap bitmap, SKRect dest, SKPaint paint = null ) : void
DrawBitmap ( SKBitmap bitmap, SKRect source, SKRect dest, SKPaint paint = null ) : void
DrawBitmap ( SKBitmap bitmap, float x, float y, SKPaint paint = null ) : void
DrawBitmapLattice ( SKBitmap bitmap, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
DrawBitmapLattice ( SKBitmap bitmap, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
DrawBitmapNinePatch ( SKBitmap bitmap, SKRectI center, SKRect dst, SKPaint paint = null ) : void
DrawCircle ( float cx, float cy, float radius, SKPaint paint ) : void
DrawColor ( SKColor color, SKBlendMode mode = SKBlendMode.Src ) : void
DrawImage ( SKImage image, SKRect dest, SKPaint paint = null ) : void
DrawImage ( SKImage image, SKRect source, SKRect dest, SKPaint paint = null ) : void
DrawImage ( SKImage image, float x, float y, SKPaint paint = null ) : void
DrawImageLattice ( SKImage image, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
DrawImageLattice ( SKImage image, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
DrawImageNinePatch ( SKImage image, SKRectI center, SKRect dst, SKPaint paint = null ) : void
DrawLine ( float x0, float y0, float x1, float y1, SKPaint paint ) : void
DrawOval ( SKRect rect, SKPaint paint ) : void
DrawOval ( float cx, float cy, float rx, float ry, SKPaint paint ) : void
DrawPaint ( SKPaint paint ) : void
DrawPath ( SKPath path, SKPaint paint ) : void
DrawPicture ( SKPicture picture, SKMatrix &matrix, SKPaint paint = null ) : void
DrawPicture ( SKPicture picture, SKPaint paint = null ) : void
DrawPoint ( float x, float y, SKColor color ) : void
DrawPoint ( float x, float y, SKPaint paint ) : void
DrawPoints ( SKPointMode mode, SKPoint points, SKPaint paint ) : void
DrawPositionedText ( IntPtr buffer, int length, SKPoint points, SKPaint paint ) : void
DrawPositionedText ( string text, SKPoint points, SKPaint paint ) : void
DrawRect ( SKRect rect, SKPaint paint ) : void
DrawRegion ( SKRegion region, SKPaint paint ) : void
DrawRoundRect ( SKRect rect, float rx, float ry, SKPaint paint ) : void
DrawText ( IntPtr buffer, int length, SKPath path, float hOffset, float vOffset, SKPaint paint ) : void
DrawText ( IntPtr buffer, int length, float x, float y, SKPaint paint ) : void
DrawText ( string text, SKPath path, float hOffset, float vOffset, SKPaint paint ) : void
DrawText ( string text, float x, float y, SKPaint paint ) : void
Flush ( ) : void
GetClipBounds ( SKRect &bounds ) : bool
GetClipDeviceBounds ( SKRectI &bounds ) : bool
QuickReject ( SKPath path ) : bool
QuickReject ( SKRect rect ) : bool
ResetMatrix ( ) : void
Restore ( ) : void
RestoreToCount ( int count ) : void
RotateDegrees ( float degrees ) : void
RotateDegrees ( float degrees, float px, float py ) : void
RotateRadians ( float radians ) : void
RotateRadians ( float radians, float px, float py ) : void
SKCanvas ( SKBitmap bitmap ) : System
Save ( ) : int
SaveLayer ( SKPaint paint ) : int
SaveLayer ( SKRect limit, SKPaint paint ) : int
Scale ( SKPoint size ) : void
Scale ( float s ) : void
Scale ( float sx, float sy ) : void
Scale ( float sx, float sy, float px, float py ) : void
SetMatrix ( SKMatrix matrix ) : void
Skew ( SKPoint skew ) : void
Skew ( float sx, float sy ) : void
Translate ( SKPoint point ) : void
Translate ( float dx, float dy ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ClipPath ( SKPath path, SKRegionOperation operation, bool antialias = false ) : void
ClipRect ( SKRect rect, SKRegionOperation operation, bool antialias = false ) : void
DrawColor ( SKColor color, SKXferMode mode ) : void
DrawText ( IntPtr buffer, int length, SKPoint points, SKPaint paint ) : void
DrawText ( string text, SKPoint points, SKPaint paint ) : void
SKCanvas ( IntPtr handle, bool owns ) : System

Method Details

Clear() public method

public Clear ( ) : void
return void

Clear() public method

public Clear ( SKColor color ) : void
color SKColor
return void

ClipPath() public method

public ClipPath ( SKPath path, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
path SKPath
operation SKClipOperation
antialias bool
return void

ClipRect() public method

public ClipRect ( SKRect rect, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
rect SKRect
operation SKClipOperation
antialias bool
return void

ClipRegion() public method

public ClipRegion ( SKRegion region, SKClipOperation operation = SKClipOperation.Intersect ) : void
region SKRegion
operation SKClipOperation
return void

Concat() public method

public Concat ( SKMatrix &m ) : void
m SKMatrix
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DrawBitmap() public method

public DrawBitmap ( SKBitmap bitmap, SKRect dest, SKPaint paint = null ) : void
bitmap SKBitmap
dest SKRect
paint SKPaint
return void

DrawBitmap() public method

public DrawBitmap ( SKBitmap bitmap, SKRect source, SKRect dest, SKPaint paint = null ) : void
bitmap SKBitmap
source SKRect
dest SKRect
paint SKPaint
return void

DrawBitmap() public method

public DrawBitmap ( SKBitmap bitmap, float x, float y, SKPaint paint = null ) : void
bitmap SKBitmap
x float
y float
paint SKPaint
return void

DrawBitmapLattice() public method

public DrawBitmapLattice ( SKBitmap bitmap, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
lattice SKLattice
dst SKRect
paint SKPaint
return void

DrawBitmapLattice() public method

public DrawBitmapLattice ( SKBitmap bitmap, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
xDivs int
yDivs int
dst SKRect
paint SKPaint
return void

DrawBitmapNinePatch() public method

public DrawBitmapNinePatch ( SKBitmap bitmap, SKRectI center, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
center SKRectI
dst SKRect
paint SKPaint
return void

DrawCircle() public method

public DrawCircle ( float cx, float cy, float radius, SKPaint paint ) : void
cx float
cy float
radius float
paint SKPaint
return void

DrawColor() public method

public DrawColor ( SKColor color, SKBlendMode mode = SKBlendMode.Src ) : void
color SKColor
mode SKBlendMode
return void

DrawImage() public method

public DrawImage ( SKImage image, SKRect dest, SKPaint paint = null ) : void
image SKImage
dest SKRect
paint SKPaint
return void

DrawImage() public method

public DrawImage ( SKImage image, SKRect source, SKRect dest, SKPaint paint = null ) : void
image SKImage
source SKRect
dest SKRect
paint SKPaint
return void

DrawImage() public method

public DrawImage ( SKImage image, float x, float y, SKPaint paint = null ) : void
image SKImage
x float
y float
paint SKPaint
return void

DrawImageLattice() public method

public DrawImageLattice ( SKImage image, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
image SKImage
lattice SKLattice
dst SKRect
paint SKPaint
return void

DrawImageLattice() public method

public DrawImageLattice ( SKImage image, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
image SKImage
xDivs int
yDivs int
dst SKRect
paint SKPaint
return void

DrawImageNinePatch() public method

public DrawImageNinePatch ( SKImage image, SKRectI center, SKRect dst, SKPaint paint = null ) : void
image SKImage
center SKRectI
dst SKRect
paint SKPaint
return void

DrawLine() public method

public DrawLine ( float x0, float y0, float x1, float y1, SKPaint paint ) : void
x0 float
y0 float
x1 float
y1 float
paint SKPaint
return void

DrawOval() public method

public DrawOval ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
return void

DrawOval() public method

public DrawOval ( float cx, float cy, float rx, float ry, SKPaint paint ) : void
cx float
cy float
rx float
ry float
paint SKPaint
return void

DrawPaint() public method

public DrawPaint ( SKPaint paint ) : void
paint SKPaint
return void

DrawPath() public method

public DrawPath ( SKPath path, SKPaint paint ) : void
path SKPath
paint SKPaint
return void

DrawPicture() public method

public DrawPicture ( SKPicture picture, SKMatrix &matrix, SKPaint paint = null ) : void
picture SKPicture
matrix SKMatrix
paint SKPaint
return void

DrawPicture() public method

public DrawPicture ( SKPicture picture, SKPaint paint = null ) : void
picture SKPicture
paint SKPaint
return void

DrawPoint() public method

public DrawPoint ( float x, float y, SKColor color ) : void
x float
y float
color SKColor
return void

DrawPoint() public method

public DrawPoint ( float x, float y, SKPaint paint ) : void
x float
y float
paint SKPaint
return void

DrawPoints() public method

public DrawPoints ( SKPointMode mode, SKPoint points, SKPaint paint ) : void
mode SKPointMode
points SKPoint
paint SKPaint
return void

DrawPositionedText() public method

public DrawPositionedText ( IntPtr buffer, int length, SKPoint points, SKPaint paint ) : void
buffer System.IntPtr
length int
points SKPoint
paint SKPaint
return void

DrawPositionedText() public method

public DrawPositionedText ( string text, SKPoint points, SKPaint paint ) : void
text string
points SKPoint
paint SKPaint
return void

DrawRect() public method

public DrawRect ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
return void

DrawRegion() public method

public DrawRegion ( SKRegion region, SKPaint paint ) : void
region SKRegion
paint SKPaint
return void

DrawRoundRect() public method

public DrawRoundRect ( SKRect rect, float rx, float ry, SKPaint paint ) : void
rect SKRect
rx float
ry float
paint SKPaint
return void

DrawText() public method

public DrawText ( IntPtr buffer, int length, SKPath path, float hOffset, float vOffset, SKPaint paint ) : void
buffer System.IntPtr
length int
path SKPath
hOffset float
vOffset float
paint SKPaint
return void

DrawText() public method

public DrawText ( IntPtr buffer, int length, float x, float y, SKPaint paint ) : void
buffer System.IntPtr
length int
x float
y float
paint SKPaint
return void

DrawText() public method

public DrawText ( string text, SKPath path, float hOffset, float vOffset, SKPaint paint ) : void
text string
path SKPath
hOffset float
vOffset float
paint SKPaint
return void

DrawText() public method

public DrawText ( string text, float x, float y, SKPaint paint ) : void
text string
x float
y float
paint SKPaint
return void

Flush() public method

public Flush ( ) : void
return void

GetClipBounds() public method

public GetClipBounds ( SKRect &bounds ) : bool
bounds SKRect
return bool

GetClipDeviceBounds() public method

public GetClipDeviceBounds ( SKRectI &bounds ) : bool
bounds SKRectI
return bool

QuickReject() public method

public QuickReject ( SKPath path ) : bool
path SKPath
return bool

QuickReject() public method

public QuickReject ( SKRect rect ) : bool
rect SKRect
return bool

ResetMatrix() public method

public ResetMatrix ( ) : void
return void

Restore() public method

public Restore ( ) : void
return void

RestoreToCount() public method

public RestoreToCount ( int count ) : void
count int
return void

RotateDegrees() public method

public RotateDegrees ( float degrees ) : void
degrees float
return void

RotateDegrees() public method

public RotateDegrees ( float degrees, float px, float py ) : void
degrees float
px float
py float
return void

RotateRadians() public method

public RotateRadians ( float radians ) : void
radians float
return void

RotateRadians() public method

public RotateRadians ( float radians, float px, float py ) : void
radians float
px float
py float
return void

SKCanvas() public method

public SKCanvas ( SKBitmap bitmap ) : System
bitmap SKBitmap
return System

Save() public method

public Save ( ) : int
return int

SaveLayer() public method

public SaveLayer ( SKPaint paint ) : int
paint SKPaint
return int

SaveLayer() public method

public SaveLayer ( SKRect limit, SKPaint paint ) : int
limit SKRect
paint SKPaint
return int

Scale() public method

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

Scale() public method

public Scale ( float s ) : void
s float
return void

Scale() public method

public Scale ( float sx, float sy ) : void
sx float
sy float
return void

Scale() public method

public Scale ( float sx, float sy, float px, float py ) : void
sx float
sy float
px float
py float
return void

SetMatrix() public method

public SetMatrix ( SKMatrix matrix ) : void
matrix SKMatrix
return void

Skew() public method

public Skew ( SKPoint skew ) : void
skew SKPoint
return void

Skew() public method

public Skew ( float sx, float sy ) : void
sx float
sy float
return void

Translate() public method

public Translate ( SKPoint point ) : void
point SKPoint
return void

Translate() public method

public Translate ( float dx, float dy ) : void
dx float
dy float
return void