Table of Contents

Class Matrix3x2Extensions

Namespace
SixLabors.ImageSharp
Assembly
SixLabors.ImageSharp.dll

Extension methods for the Matrix3x2 struct.

public static class Matrix3x2Extensions
Inheritance
Matrix3x2Extensions
Inherited Members

Methods

CreateRotation(float, PointF)

Creates a rotation matrix using the given rotation in radians and a center point.

public static Matrix3x2 CreateRotation(float radians, PointF centerPoint)

Parameters

radians float

The amount of rotation, in radians.

centerPoint PointF

The center point.

Returns

Matrix3x2

A rotation matrix.

CreateRotationDegrees(float)

Creates a rotation matrix using the given rotation in degrees.

public static Matrix3x2 CreateRotationDegrees(float degrees)

Parameters

degrees float

The amount of rotation, in degrees.

Returns

Matrix3x2

A rotation matrix.

CreateRotationDegrees(float, PointF)

Creates a rotation matrix using the given rotation in degrees and a center point.

public static Matrix3x2 CreateRotationDegrees(float degrees, PointF centerPoint)

Parameters

degrees float

The amount of rotation, in degrees.

centerPoint PointF

The center point.

Returns

Matrix3x2

A rotation matrix.

CreateScale(SizeF)

Creates a scale matrix from the given vector scale.

public static Matrix3x2 CreateScale(SizeF scales)

Parameters

scales SizeF

The scale to use.

Returns

Matrix3x2

A scaling matrix.

CreateScale(SizeF, PointF)

Creates a scale matrix from the given vector scale with an offset from the given center point.

public static Matrix3x2 CreateScale(SizeF scales, PointF centerPoint)

Parameters

scales SizeF

The scale to use.

centerPoint PointF

The center offset.

Returns

Matrix3x2

A scaling matrix.

CreateScale(float, PointF)

Creates a scale matrix that scales uniformly with the given scale with an offset from the given center.

public static Matrix3x2 CreateScale(float scale, PointF centerPoint)

Parameters

scale float

The uniform scale to use.

centerPoint PointF

The center offset.

Returns

Matrix3x2

A scaling matrix.

CreateScale(float, float, PointF)

Creates a scale matrix that is offset by a given center point.

public static Matrix3x2 CreateScale(float xScale, float yScale, PointF centerPoint)

Parameters

xScale float

Value to scale by on the X-axis.

yScale float

Value to scale by on the Y-axis.

centerPoint PointF

The center point.

Returns

Matrix3x2

A scaling matrix.

CreateSkew(float, float, PointF)

Creates a skew matrix from the given angles in radians and a center point.

public static Matrix3x2 CreateSkew(float radiansX, float radiansY, PointF centerPoint)

Parameters

radiansX float

The X angle, in radians.

radiansY float

The Y angle, in radians.

centerPoint PointF

The center point.

Returns

Matrix3x2

A skew matrix.

CreateSkewDegrees(float, float)

Creates a skew matrix from the given angles in degrees.

public static Matrix3x2 CreateSkewDegrees(float degreesX, float degreesY)

Parameters

degreesX float

The X angle, in degrees.

degreesY float

The Y angle, in degrees.

Returns

Matrix3x2

A skew matrix.

CreateSkewDegrees(float, float, PointF)

Creates a skew matrix from the given angles in degrees and a center point.

public static Matrix3x2 CreateSkewDegrees(float degreesX, float degreesY, PointF centerPoint)

Parameters

degreesX float

The X angle, in degrees.

degreesY float

The Y angle, in degrees.

centerPoint PointF

The center point.

Returns

Matrix3x2

A skew matrix.

CreateTranslation(PointF)

Creates a translation matrix from the given vector.

public static Matrix3x2 CreateTranslation(PointF position)

Parameters

position PointF

The translation position.

Returns

Matrix3x2

A translation matrix.