C# Class Renderer.SkiaSharp.MatrixHelper

SkiaSharp Matrix helper methods.
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Méthodes publiques

Свойство Type Description
Identity SkiaSharp.SKMatrix

Méthodes publiques

Méthode Description
Multiply ( SKMatrix value1, SKMatrix value2 ) : SKMatrix

Multiplies two matrices together and returns the resulting matrix.

Rotation ( double radians ) : SKMatrix

Creates a matrix that rotates.

Rotation ( double angle, SKPoint center ) : SKMatrix

Creates a matrix that rotates about a specified center.

Rotation ( double angle, double centerX, double centerY ) : SKMatrix

Creates a matrix that rotates about a specified center.

Scale ( double scaleX, double scaleY ) : SKMatrix

Creates a matrix that scales along the x-axis and y-axis.

ScaleAt ( double scaleX, double scaleY, double centerX, double centerY ) : SKMatrix

Creates a matrix that is scaling from a specified center.

ScaleAtPrepend ( SKMatrix matrix, double scaleX, double scaleY, double centerX, double centerY ) : SKMatrix

Prepends a scale around the center of provided matrix.

Skew ( float angleX, float angleY ) : SKMatrix

Creates a skew matrix.

TransformPoint ( SKMatrix matrix, SKPoint point ) : SKPoint

Transforms a point by this matrix.

Translate ( double offsetX, double offsetY ) : SKMatrix

Creates a translation matrix using the specified offsets.

TranslatePrepend ( SKMatrix matrix, double offsetX, double offsetY ) : SKMatrix

Prepends a translation around the center of provided matrix.

Private Methods

Méthode Description
ToSKMatrix ( double m11, double m12, double m21, double m22, double m31, double m32 ) : SKMatrix

Method Details

Multiply() public static méthode

Multiplies two matrices together and returns the resulting matrix.
public static Multiply ( SKMatrix value1, SKMatrix value2 ) : SKMatrix
value1 SkiaSharp.SKMatrix The first source matrix.
value2 SkiaSharp.SKMatrix The second source matrix.
Résultat SkiaSharp.SKMatrix

Rotation() public static méthode

Creates a matrix that rotates.
public static Rotation ( double radians ) : SKMatrix
radians double Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis.
Résultat SkiaSharp.SKMatrix

Rotation() public static méthode

Creates a matrix that rotates about a specified center.
public static Rotation ( double angle, SKPoint center ) : SKMatrix
angle double Angle of rotation in radians.
center SkiaSharp.SKPoint The center of the rotation.
Résultat SkiaSharp.SKMatrix

Rotation() public static méthode

Creates a matrix that rotates about a specified center.
public static Rotation ( double angle, double centerX, double centerY ) : SKMatrix
angle double Angle of rotation in radians.
centerX double The center X-coordinate of the rotation.
centerY double The center Y-coordinate of the rotation.
Résultat SkiaSharp.SKMatrix

Scale() public static méthode

Creates a matrix that scales along the x-axis and y-axis.
public static Scale ( double scaleX, double scaleY ) : SKMatrix
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
Résultat SkiaSharp.SKMatrix

ScaleAt() public static méthode

Creates a matrix that is scaling from a specified center.
public static ScaleAt ( double scaleX, double scaleY, double centerX, double centerY ) : SKMatrix
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
centerX double The center X-coordinate of the scaling.
centerY double The center Y-coordinate of the scaling.
Résultat SkiaSharp.SKMatrix

ScaleAtPrepend() public static méthode

Prepends a scale around the center of provided matrix.
public static ScaleAtPrepend ( SKMatrix matrix, double scaleX, double scaleY, double centerX, double centerY ) : SKMatrix
matrix SkiaSharp.SKMatrix The matrix to prepend scale.
scaleX double Scaling factor that is applied along the x-axis.
scaleY double Scaling factor that is applied along the y-axis.
centerX double The center X-coordinate of the scaling.
centerY double The center Y-coordinate of the scaling.
Résultat SkiaSharp.SKMatrix

Skew() public static méthode

Creates a skew matrix.
public static Skew ( float angleX, float angleY ) : SKMatrix
angleX float Angle of skew along the X-axis in radians.
angleY float Angle of skew along the Y-axis in radians.
Résultat SkiaSharp.SKMatrix

TransformPoint() public static méthode

Transforms a point by this matrix.
public static TransformPoint ( SKMatrix matrix, SKPoint point ) : SKPoint
matrix SkiaSharp.SKMatrix The matrix to use as a transformation matrix.
point SkiaSharp.SKPoint >The original point to apply the transformation.
Résultat SkiaSharp.SKPoint

Translate() public static méthode

Creates a translation matrix using the specified offsets.
public static Translate ( double offsetX, double offsetY ) : SKMatrix
offsetX double X-coordinate offset.
offsetY double Y-coordinate offset.
Résultat SkiaSharp.SKMatrix

TranslatePrepend() public static méthode

Prepends a translation around the center of provided matrix.
public static TranslatePrepend ( SKMatrix matrix, double offsetX, double offsetY ) : SKMatrix
matrix SkiaSharp.SKMatrix The matrix to prepend translation.
offsetX double X-coordinate offset.
offsetY double Y-coordinate offset.
Résultat SkiaSharp.SKMatrix

Property Details

Identity public_oe static_oe property

Gets the identity matrix.
public static SKMatrix,SkiaSharp Identity
Résultat SkiaSharp.SKMatrix