L_Matrix_Set

#include "LtPrimitives.h"

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

L_MATRIX* matrix;

pointer to the structure to set

L_DOUBLE m11;

The m11 value

L_DOUBLE m12;

The m12 value

L_DOUBLE m21;

The m21 value

L_DOUBLE m22;

The m22 value

L_DOUBLE offsetX;

The offsetX value

L_DOUBLE offsetY;

The offsetY value

Sets the values of the specified L_MATRIX structure.

Parameter Description
matrix Pointer to the L_MATRIX to set.
m11 The value of the first row and first column.
m12 The value of the first row and second column.
m21 The value of the second row and first column.
m22 The value of the second row and second column.
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.
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:

m11

m12

0

m21

m22

0

offsetX

offsetY

1

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

LTKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

Help Version 20.0.2018.2.25
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help