ImmutableMatrixTranslationMatrix Method |
Returns a new instance of a translation matrix
Namespace:
Atalasoft.FormsProcessing.Geometry
Assembly:
Atalasoft.dotImage.FormsProcessing (in Atalasoft.dotImage.FormsProcessing.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public static ImmutableMatrix TranslationMatrix(
float x,
float y
)
Public Shared Function TranslationMatrix (
x As Single,
y As Single
) As ImmutableMatrix
Parameters
- x
- Type: SystemSingle
Translation in the X direction - y
- Type: SystemSingle
Translation in the Y direction
Return Value
Type:
ImmutableMatrix A new Translation matrix.
Remarks Translation matrices offset location by X pixels in the X direction and Y pixels in the Y direction.
See Also