L_Matrix_Set

#include "LtPrimitives.h"

L_LTKRN_API L_VOID L_Matrix_Set(matrix, m11, m12, m21, m22, offsetX, offsetY)

Sets the values of the specified L_MATRIX structure.

Parameters

L_MATRIX* matrix

Pointer to the L_MATRIX to set.

L_DOUBLE m11

The value of the first row and first column.

L_DOUBLE m12

The value of the first row and second column.

L_DOUBLE m21

The value of the second row and first column.

L_DOUBLE m22

The value of the second row and second column.

L_DOUBLE offsetX

The value of the third row and first column.
The offsetX member is so named because it specifies the amount to translate the coordinate space along the x-axis.

L_DOUBLE offsetY

The value of the third row and second column.
The offsetY member is so named because it specifies the amount to translate the coordinate space along the y-axis.

Returns

None.

Comments

The L_MATRIX is stored using row-major order and has the following structure:

image\matrix.jpg

The members in the last row, offsetX and offsetY, represent translation values.

In functions and structure memebers, the transformation matrix is usually specified as a vector with only six members, as follows:

(m11, m12, m21, m22, offsetX, offsetY)

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.