C# Class SkiaSharp.SKMatrix

Exibir arquivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
Concat ( SKMatrix &target, SKMatrix first, SKMatrix second ) : void
GetValues ( float values ) : void
MakeIdentity ( ) : SKMatrix
MakeRotation ( float radians ) : SKMatrix
MakeRotation ( float radians, float pivotx, float pivoty ) : SKMatrix
MakeRotationDegrees ( float degrees ) : SKMatrix
MakeRotationDegrees ( float degrees, float pivotx, float pivoty ) : SKMatrix
MakeScale ( float sx, float sy ) : SKMatrix
MakeScale ( float sx, float sy, float pivotX, float pivotY ) : SKMatrix
MakeSkew ( float sx, float sy ) : SKMatrix
MakeTranslation ( float dx, float dy ) : SKMatrix
MapPoint ( SKPoint point ) : SKPoint
MapPoint ( float x, float y ) : SKPoint
MapPoints ( SKPoint points ) : SkiaSharp.SKPoint[]
MapPoints ( SKPoint result, SKPoint points ) : void
MapRadius ( float radius ) : float
MapRect ( SKRect source ) : SKRect
MapRect ( SKMatrix &matrix, SKRect &dest, SKRect &source ) : void
MapVector ( float x, float y ) : SKPoint
MapVectors ( SKPoint vectors ) : SkiaSharp.SKPoint[]
MapVectors ( SKPoint result, SKPoint vectors ) : void
PostConcat ( SKMatrix &target, SKMatrix matrix ) : void
PreConcat ( SKMatrix &target, SKMatrix matrix ) : void
Rotate ( SKMatrix &matrix, float radians ) : void
Rotate ( SKMatrix &matrix, float radians, float pivotx, float pivoty ) : void
RotateDegrees ( SKMatrix &matrix, float degrees ) : void
RotateDegrees ( SKMatrix &matrix, float degrees, float pivotx, float pivoty ) : void
SetScaleTranslate ( float sx, float sy, float tx, float ty ) : void
TryInvert ( SKMatrix &inverse ) : bool

Private Methods

Method Description
GetMask ( ) : Mask
MapXY ( float x, float y ) : SKPoint
SetSinCos ( SKMatrix &matrix, float sin, float cos ) : void
SetSinCos ( SKMatrix &matrix, float sin, float cos, float pivotx, float pivoty ) : void
scross ( float a, float b, float c, float d ) : float
sdot ( float a, float b, float c, float d ) : float

Method Details

Concat() public static method

public static Concat ( SKMatrix &target, SKMatrix first, SKMatrix second ) : void
target SKMatrix
first SKMatrix
second SKMatrix
return void

GetValues() public method

public GetValues ( float values ) : void
values float
return void

MakeIdentity() public static method

public static MakeIdentity ( ) : SKMatrix
return SKMatrix

MakeRotation() public static method

public static MakeRotation ( float radians ) : SKMatrix
radians float
return SKMatrix

MakeRotation() public static method

public static MakeRotation ( float radians, float pivotx, float pivoty ) : SKMatrix
radians float
pivotx float
pivoty float
return SKMatrix

MakeRotationDegrees() public static method

public static MakeRotationDegrees ( float degrees ) : SKMatrix
degrees float
return SKMatrix

MakeRotationDegrees() public static method

public static MakeRotationDegrees ( float degrees, float pivotx, float pivoty ) : SKMatrix
degrees float
pivotx float
pivoty float
return SKMatrix

MakeScale() public static method

public static MakeScale ( float sx, float sy ) : SKMatrix
sx float
sy float
return SKMatrix

MakeScale() public static method

public static MakeScale ( float sx, float sy, float pivotX, float pivotY ) : SKMatrix
sx float
sy float
pivotX float
pivotY float
return SKMatrix

MakeSkew() public static method

public static MakeSkew ( float sx, float sy ) : SKMatrix
sx float
sy float
return SKMatrix

MakeTranslation() public static method

public static MakeTranslation ( float dx, float dy ) : SKMatrix
dx float
dy float
return SKMatrix

MapPoint() public method

public MapPoint ( SKPoint point ) : SKPoint
point SKPoint
return SKPoint

MapPoint() public method

public MapPoint ( float x, float y ) : SKPoint
x float
y float
return SKPoint

MapPoints() public method

public MapPoints ( SKPoint points ) : SkiaSharp.SKPoint[]
points SKPoint
return SkiaSharp.SKPoint[]

MapPoints() public method

public MapPoints ( SKPoint result, SKPoint points ) : void
result SKPoint
points SKPoint
return void

MapRadius() public method

public MapRadius ( float radius ) : float
radius float
return float

MapRect() public method

public MapRect ( SKRect source ) : SKRect
source SKRect
return SKRect

MapRect() public static method

public static MapRect ( SKMatrix &matrix, SKRect &dest, SKRect &source ) : void
matrix SKMatrix
dest SKRect
source SKRect
return void

MapVector() public method

public MapVector ( float x, float y ) : SKPoint
x float
y float
return SKPoint

MapVectors() public method

public MapVectors ( SKPoint vectors ) : SkiaSharp.SKPoint[]
vectors SKPoint
return SkiaSharp.SKPoint[]

MapVectors() public method

public MapVectors ( SKPoint result, SKPoint vectors ) : void
result SKPoint
vectors SKPoint
return void

PostConcat() public static method

public static PostConcat ( SKMatrix &target, SKMatrix matrix ) : void
target SKMatrix
matrix SKMatrix
return void

PreConcat() public static method

public static PreConcat ( SKMatrix &target, SKMatrix matrix ) : void
target SKMatrix
matrix SKMatrix
return void

Rotate() public static method

public static Rotate ( SKMatrix &matrix, float radians ) : void
matrix SKMatrix
radians float
return void

Rotate() public static method

public static Rotate ( SKMatrix &matrix, float radians, float pivotx, float pivoty ) : void
matrix SKMatrix
radians float
pivotx float
pivoty float
return void

RotateDegrees() public static method

public static RotateDegrees ( SKMatrix &matrix, float degrees ) : void
matrix SKMatrix
degrees float
return void

RotateDegrees() public static method

public static RotateDegrees ( SKMatrix &matrix, float degrees, float pivotx, float pivoty ) : void
matrix SKMatrix
degrees float
pivotx float
pivoty float
return void

SetScaleTranslate() public method

public SetScaleTranslate ( float sx, float sy, float tx, float ty ) : void
sx float
sy float
tx float
ty float
return void

TryInvert() public method

public TryInvert ( SKMatrix &inverse ) : bool
inverse SKMatrix
return bool