C# Класс SkiaSharp.SKCanvas

Наследование: SKObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

Clear() публичный Метод

public Clear ( ) : void
Результат void

Clear() публичный Метод

public Clear ( SKColor color ) : void
color SKColor
Результат void

ClipPath() публичный Метод

public ClipPath ( SKPath path, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
path SKPath
operation SKClipOperation
antialias bool
Результат void

ClipRect() публичный Метод

public ClipRect ( SKRect rect, SKClipOperation operation = SKClipOperation.Intersect, bool antialias = false ) : void
rect SKRect
operation SKClipOperation
antialias bool
Результат void

ClipRegion() публичный Метод

public ClipRegion ( SKRegion region, SKClipOperation operation = SKClipOperation.Intersect ) : void
region SKRegion
operation SKClipOperation
Результат void

Concat() публичный Метод

public Concat ( SKMatrix &m ) : void
m SKMatrix
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DrawBitmap() публичный Метод

public DrawBitmap ( SKBitmap bitmap, SKRect dest, SKPaint paint = null ) : void
bitmap SKBitmap
dest SKRect
paint SKPaint
Результат void

DrawBitmap() публичный Метод

public DrawBitmap ( SKBitmap bitmap, SKRect source, SKRect dest, SKPaint paint = null ) : void
bitmap SKBitmap
source SKRect
dest SKRect
paint SKPaint
Результат void

DrawBitmap() публичный Метод

public DrawBitmap ( SKBitmap bitmap, float x, float y, SKPaint paint = null ) : void
bitmap SKBitmap
x float
y float
paint SKPaint
Результат void

DrawBitmapLattice() публичный Метод

public DrawBitmapLattice ( SKBitmap bitmap, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
lattice SKLattice
dst SKRect
paint SKPaint
Результат void

DrawBitmapLattice() публичный Метод

public DrawBitmapLattice ( SKBitmap bitmap, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
xDivs int
yDivs int
dst SKRect
paint SKPaint
Результат void

DrawBitmapNinePatch() публичный Метод

public DrawBitmapNinePatch ( SKBitmap bitmap, SKRectI center, SKRect dst, SKPaint paint = null ) : void
bitmap SKBitmap
center SKRectI
dst SKRect
paint SKPaint
Результат void

DrawCircle() публичный Метод

public DrawCircle ( float cx, float cy, float radius, SKPaint paint ) : void
cx float
cy float
radius float
paint SKPaint
Результат void

DrawColor() публичный Метод

public DrawColor ( SKColor color, SKBlendMode mode = SKBlendMode.Src ) : void
color SKColor
mode SKBlendMode
Результат void

DrawImage() публичный Метод

public DrawImage ( SKImage image, SKRect dest, SKPaint paint = null ) : void
image SKImage
dest SKRect
paint SKPaint
Результат void

DrawImage() публичный Метод

public DrawImage ( SKImage image, SKRect source, SKRect dest, SKPaint paint = null ) : void
image SKImage
source SKRect
dest SKRect
paint SKPaint
Результат void

DrawImage() публичный Метод

public DrawImage ( SKImage image, float x, float y, SKPaint paint = null ) : void
image SKImage
x float
y float
paint SKPaint
Результат void

DrawImageLattice() публичный Метод

public DrawImageLattice ( SKImage image, SKLattice lattice, SKRect dst, SKPaint paint = null ) : void
image SKImage
lattice SKLattice
dst SKRect
paint SKPaint
Результат void

DrawImageLattice() публичный Метод

public DrawImageLattice ( SKImage image, int xDivs, int yDivs, SKRect dst, SKPaint paint = null ) : void
image SKImage
xDivs int
yDivs int
dst SKRect
paint SKPaint
Результат void

DrawImageNinePatch() публичный Метод

public DrawImageNinePatch ( SKImage image, SKRectI center, SKRect dst, SKPaint paint = null ) : void
image SKImage
center SKRectI
dst SKRect
paint SKPaint
Результат void

DrawLine() публичный Метод

public DrawLine ( float x0, float y0, float x1, float y1, SKPaint paint ) : void
x0 float
y0 float
x1 float
y1 float
paint SKPaint
Результат void

DrawOval() публичный Метод

public DrawOval ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
Результат void

DrawOval() публичный Метод

public DrawOval ( float cx, float cy, float rx, float ry, SKPaint paint ) : void
cx float
cy float
rx float
ry float
paint SKPaint
Результат void

DrawPaint() публичный Метод

public DrawPaint ( SKPaint paint ) : void
paint SKPaint
Результат void

DrawPath() публичный Метод

public DrawPath ( SKPath path, SKPaint paint ) : void
path SKPath
paint SKPaint
Результат void

DrawPicture() публичный Метод

public DrawPicture ( SKPicture picture, SKMatrix &matrix, SKPaint paint = null ) : void
picture SKPicture
matrix SKMatrix
paint SKPaint
Результат void

DrawPicture() публичный Метод

public DrawPicture ( SKPicture picture, SKPaint paint = null ) : void
picture SKPicture
paint SKPaint
Результат void

DrawPoint() публичный Метод

public DrawPoint ( float x, float y, SKColor color ) : void
x float
y float
color SKColor
Результат void

DrawPoint() публичный Метод

public DrawPoint ( float x, float y, SKPaint paint ) : void
x float
y float
paint SKPaint
Результат void

DrawPoints() публичный Метод

public DrawPoints ( SKPointMode mode, SKPoint points, SKPaint paint ) : void
mode SKPointMode
points SKPoint
paint SKPaint
Результат void

DrawPositionedText() публичный Метод

public DrawPositionedText ( IntPtr buffer, int length, SKPoint points, SKPaint paint ) : void
buffer System.IntPtr
length int
points SKPoint
paint SKPaint
Результат void

DrawPositionedText() публичный Метод

public DrawPositionedText ( string text, SKPoint points, SKPaint paint ) : void
text string
points SKPoint
paint SKPaint
Результат void

DrawRect() публичный Метод

public DrawRect ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
Результат void

DrawRegion() публичный Метод

public DrawRegion ( SKRegion region, SKPaint paint ) : void
region SKRegion
paint SKPaint
Результат void

DrawRoundRect() публичный Метод

public DrawRoundRect ( SKRect rect, float rx, float ry, SKPaint paint ) : void
rect SKRect
rx float
ry float
paint SKPaint
Результат void

DrawText() публичный Метод

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
Результат void

DrawText() публичный Метод

public DrawText ( IntPtr buffer, int length, float x, float y, SKPaint paint ) : void
buffer System.IntPtr
length int
x float
y float
paint SKPaint
Результат void

DrawText() публичный Метод

public DrawText ( string text, SKPath path, float hOffset, float vOffset, SKPaint paint ) : void
text string
path SKPath
hOffset float
vOffset float
paint SKPaint
Результат void

DrawText() публичный Метод

public DrawText ( string text, float x, float y, SKPaint paint ) : void
text string
x float
y float
paint SKPaint
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

GetClipBounds() публичный Метод

public GetClipBounds ( SKRect &bounds ) : bool
bounds SKRect
Результат bool

GetClipDeviceBounds() публичный Метод

public GetClipDeviceBounds ( SKRectI &bounds ) : bool
bounds SKRectI
Результат bool

QuickReject() публичный Метод

public QuickReject ( SKPath path ) : bool
path SKPath
Результат bool

QuickReject() публичный Метод

public QuickReject ( SKRect rect ) : bool
rect SKRect
Результат bool

ResetMatrix() публичный Метод

public ResetMatrix ( ) : void
Результат void

Restore() публичный Метод

public Restore ( ) : void
Результат void

RestoreToCount() публичный Метод

public RestoreToCount ( int count ) : void
count int
Результат void

RotateDegrees() публичный Метод

public RotateDegrees ( float degrees ) : void
degrees float
Результат void

RotateDegrees() публичный Метод

public RotateDegrees ( float degrees, float px, float py ) : void
degrees float
px float
py float
Результат void

RotateRadians() публичный Метод

public RotateRadians ( float radians ) : void
radians float
Результат void

RotateRadians() публичный Метод

public RotateRadians ( float radians, float px, float py ) : void
radians float
px float
py float
Результат void

SKCanvas() публичный Метод

public SKCanvas ( SKBitmap bitmap ) : System
bitmap SKBitmap
Результат System

Save() публичный Метод

public Save ( ) : int
Результат int

SaveLayer() публичный Метод

public SaveLayer ( SKPaint paint ) : int
paint SKPaint
Результат int

SaveLayer() публичный Метод

public SaveLayer ( SKRect limit, SKPaint paint ) : int
limit SKRect
paint SKPaint
Результат int

Scale() публичный Метод

public Scale ( SKPoint size ) : void
size SKPoint
Результат void

Scale() публичный Метод

public Scale ( float s ) : void
s float
Результат void

Scale() публичный Метод

public Scale ( float sx, float sy ) : void
sx float
sy float
Результат void

Scale() публичный Метод

public Scale ( float sx, float sy, float px, float py ) : void
sx float
sy float
px float
py float
Результат void

SetMatrix() публичный Метод

public SetMatrix ( SKMatrix matrix ) : void
matrix SKMatrix
Результат void

Skew() публичный Метод

public Skew ( SKPoint skew ) : void
skew SKPoint
Результат void

Skew() публичный Метод

public Skew ( float sx, float sy ) : void
sx float
sy float
Результат void

Translate() публичный Метод

public Translate ( SKPoint point ) : void
point SKPoint
Результат void

Translate() публичный Метод

public Translate ( float dx, float dy ) : void
dx float
dy float
Результат void