Declaration
procedure DeleteMatrix(Matrix: Pointer);
Description
Free a matrix that was created using
CreateMatrix.
Note: This does not reset the transformation. Instead use
ResetTransformGDI+ Method:
GdipDeleteMatrix// Use a matrix to position the drawing of a rectangle
// Create the transformation matrix
matrix := IECanvas.CreateMatrix( 2.33, // m11
0, // m12
0, // m21
-2.33, // m22
-171.93, // dx
1091.96 ); // dy
try
// Apply the matrix transformation
IECanvas.MatrixTransform( Matrix );
// Now draw the rectangle with the transformation applied
IECanvas.Rectangle( 50, 50, 100, 100 );
finally
// Free the matrix
IECanvas.DeleteMatrix( Matrix );
end;