C# Class SkiaSharp.SKCanvas

Inheritance: SKObject
Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Clear ( ) : void
Résultat void

Clear() public méthode

public Clear ( SKColor color ) : void
color SKColor
Résultat void

ClipPath() public méthode

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

ClipRect() public méthode

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

ClipRegion() public méthode

public ClipRegion ( SKRegion region, SKClipOperation operation = SKClipOperation.Intersect ) : void
region SKRegion
operation SKClipOperation
Résultat void

Concat() public méthode

public Concat ( SKMatrix &m ) : void
m SKMatrix
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DrawBitmap() public méthode

public DrawBitmap ( SKBitmap bitmap, SKRect dest, SKPaint paint = null ) : void
bitmap SKBitmap
dest SKRect
paint SKPaint
Résultat void

DrawBitmap() public méthode

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

DrawBitmap() public méthode

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

DrawBitmapLattice() public méthode

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

DrawBitmapLattice() public méthode

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

DrawBitmapNinePatch() public méthode

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

DrawCircle() public méthode

public DrawCircle ( float cx, float cy, float radius, SKPaint paint ) : void
cx float
cy float
radius float
paint SKPaint
Résultat void

DrawColor() public méthode

public DrawColor ( SKColor color, SKBlendMode mode = SKBlendMode.Src ) : void
color SKColor
mode SKBlendMode
Résultat void

DrawImage() public méthode

public DrawImage ( SKImage image, SKRect dest, SKPaint paint = null ) : void
image SKImage
dest SKRect
paint SKPaint
Résultat void

DrawImage() public méthode

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

DrawImage() public méthode

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

DrawImageLattice() public méthode

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

DrawImageLattice() public méthode

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

DrawImageNinePatch() public méthode

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

DrawLine() public méthode

public DrawLine ( float x0, float y0, float x1, float y1, SKPaint paint ) : void
x0 float
y0 float
x1 float
y1 float
paint SKPaint
Résultat void

DrawOval() public méthode

public DrawOval ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
Résultat void

DrawOval() public méthode

public DrawOval ( float cx, float cy, float rx, float ry, SKPaint paint ) : void
cx float
cy float
rx float
ry float
paint SKPaint
Résultat void

DrawPaint() public méthode

public DrawPaint ( SKPaint paint ) : void
paint SKPaint
Résultat void

DrawPath() public méthode

public DrawPath ( SKPath path, SKPaint paint ) : void
path SKPath
paint SKPaint
Résultat void

DrawPicture() public méthode

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

DrawPicture() public méthode

public DrawPicture ( SKPicture picture, SKPaint paint = null ) : void
picture SKPicture
paint SKPaint
Résultat void

DrawPoint() public méthode

public DrawPoint ( float x, float y, SKColor color ) : void
x float
y float
color SKColor
Résultat void

DrawPoint() public méthode

public DrawPoint ( float x, float y, SKPaint paint ) : void
x float
y float
paint SKPaint
Résultat void

DrawPoints() public méthode

public DrawPoints ( SKPointMode mode, SKPoint points, SKPaint paint ) : void
mode SKPointMode
points SKPoint
paint SKPaint
Résultat void

DrawPositionedText() public méthode

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

DrawPositionedText() public méthode

public DrawPositionedText ( string text, SKPoint points, SKPaint paint ) : void
text string
points SKPoint
paint SKPaint
Résultat void

DrawRect() public méthode

public DrawRect ( SKRect rect, SKPaint paint ) : void
rect SKRect
paint SKPaint
Résultat void

DrawRegion() public méthode

public DrawRegion ( SKRegion region, SKPaint paint ) : void
region SKRegion
paint SKPaint
Résultat void

DrawRoundRect() public méthode

public DrawRoundRect ( SKRect rect, float rx, float ry, SKPaint paint ) : void
rect SKRect
rx float
ry float
paint SKPaint
Résultat void

DrawText() public méthode

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
Résultat void

DrawText() public méthode

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

DrawText() public méthode

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

DrawText() public méthode

public DrawText ( string text, float x, float y, SKPaint paint ) : void
text string
x float
y float
paint SKPaint
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

GetClipBounds() public méthode

public GetClipBounds ( SKRect &bounds ) : bool
bounds SKRect
Résultat bool

GetClipDeviceBounds() public méthode

public GetClipDeviceBounds ( SKRectI &bounds ) : bool
bounds SKRectI
Résultat bool

QuickReject() public méthode

public QuickReject ( SKPath path ) : bool
path SKPath
Résultat bool

QuickReject() public méthode

public QuickReject ( SKRect rect ) : bool
rect SKRect
Résultat bool

ResetMatrix() public méthode

public ResetMatrix ( ) : void
Résultat void

Restore() public méthode

public Restore ( ) : void
Résultat void

RestoreToCount() public méthode

public RestoreToCount ( int count ) : void
count int
Résultat void

RotateDegrees() public méthode

public RotateDegrees ( float degrees ) : void
degrees float
Résultat void

RotateDegrees() public méthode

public RotateDegrees ( float degrees, float px, float py ) : void
degrees float
px float
py float
Résultat void

RotateRadians() public méthode

public RotateRadians ( float radians ) : void
radians float
Résultat void

RotateRadians() public méthode

public RotateRadians ( float radians, float px, float py ) : void
radians float
px float
py float
Résultat void

SKCanvas() public méthode

public SKCanvas ( SKBitmap bitmap ) : System
bitmap SKBitmap
Résultat System

Save() public méthode

public Save ( ) : int
Résultat int

SaveLayer() public méthode

public SaveLayer ( SKPaint paint ) : int
paint SKPaint
Résultat int

SaveLayer() public méthode

public SaveLayer ( SKRect limit, SKPaint paint ) : int
limit SKRect
paint SKPaint
Résultat int

Scale() public méthode

public Scale ( SKPoint size ) : void
size SKPoint
Résultat void

Scale() public méthode

public Scale ( float s ) : void
s float
Résultat void

Scale() public méthode

public Scale ( float sx, float sy ) : void
sx float
sy float
Résultat void

Scale() public méthode

public Scale ( float sx, float sy, float px, float py ) : void
sx float
sy float
px float
py float
Résultat void

SetMatrix() public méthode

public SetMatrix ( SKMatrix matrix ) : void
matrix SKMatrix
Résultat void

Skew() public méthode

public Skew ( SKPoint skew ) : void
skew SKPoint
Résultat void

Skew() public méthode

public Skew ( float sx, float sy ) : void
sx float
sy float
Résultat void

Translate() public méthode

public Translate ( SKPoint point ) : void
point SKPoint
Résultat void

Translate() public méthode

public Translate ( float dx, float dy ) : void
dx float
dy float
Résultat void