PICTools Programmer's Reference
PERSADJUST

PERSADJUST: OP_PERSADJUST

 
Copy Code
typedef struct {
   DWORD                           Reserved0;
   BYTE PICHUGE*                   Reserved1;
   BYTE PICHUGE*                   Reserved2;
   BYTE PICHUGE*                   Reserved3;
   BYTE PICHUGE*                   Reserved4;
   BYTE PICHUGE*                   Reserved5;
   BYTE PICHUGE*                   Reserved6;
   BYTE PICHUGE*                   Reserved7;
   BYTE PICHUGE*                   Reserved8;
   PICFLAGS                        PicFlags;
   PICFLAGS                        PicFlags2;
   DWORD                           InStride;
   LONG                            ULCornerX;
   LONG                            ULCornerY;
   LONG                            URCornerX;
   LONG                            URCornerY;
   LONG                            LRCornerX;
   LONG                            LRCornerY;
   LONG                            LLCornerX;
   LONG                            LLCornerY;
   DWORD                           OutWidth;
   DWORD                           OutHeight;
   DWORD                           OutStride;
} PERSADJUST;
                

Fields:

Name

Description

Reserved0

This field is not currently used and must be set to 0.

Reserved1

Reserved2

Reserved3

Reserved4

Reserved5

Reserved6

Reserved7

Reserved8

These fields are not used and must be set to NULL.

 

PicFlags

Not used specifically by this opcode.

PicFlags2

Not used specifically by this opcode.

InStride

Set to the input image line width in bytes including padding, if any, for each line; or set to 0, and the opcode will return its calculated value, 32-bit aligned, at REQ_INIT.

ULCornerX

ULCornerY

URCornerX

URCornerY

LRCornerX

LRCornerY

LLCornerX

LLCornerY

Set to the (X,Y) coordinates of the four corners (specified clockwise: Upper Left, Upper Right, Lower Right, Lower Left) of the object whose perspective is to be adjusted. If the app sets all fields to 0 before REQ_EXEC, then during REQ_EXEC the opcode will automatically find the corners and return them in these fields to the app at the first RES_PUT_NEED_SPACE request. Then it will use the values in these fields, either the corners it found or the corners supplied by or changed by the app, to drive the perspective transformation.

OutWidth

OutHeight

OutStride

Set to the desired width, height, and stride of the output image. If the app sets these fields to 0 before REQ_EXEC, then during REQ_EXEC the opcode will automatically determine suitable values for the output image and return them in these fields to the app at the first RES_PUT_NEED_SPACE request. OutStride returned by the opcode includes padding at the end of the line to be 32-bit aligned. Then it will use the values in these fields, either the dimensions it found or the dimensions supplied by or changed by the app, to drive the perspective transformation.

 

 


©2022. Accusoft Corporation. All Rights Reserved.

Send Feedback