SptShiftRotate()

 visits
Parent Previous Next

Syntax

SptShiftRotate(bBuffer As bTftLibParameter1, bXdirection As bTftLibParameter2, wColumnsOut As wTftLibParameter1, bYdirection As bTftLibParameter3, wRowsOut As wTftLibParameter2), Byte

Overview

Rotationally shifts (wraps) rows and/or columns within a buffer in the specified directions. Pixels shifted out on one side reappear on the opposite side.

Parameters

Parameter

Description

bBuffer

Working buffer to be modified.

bXdirection

Horizontal shift direction:
0 – Shift right
1 – Shift left

wColumnsOut

Number of columns to rotate.

bYdirection

Vertical shift direction:
0 – Shift up
1 – Shift down

wRowsOut

Number of rows to rotate.

Return value

Value

Meaning

0

Success

1

Invalid buffer

2

Number of columns exceeds buffer width

3

Number of rows exceeds buffer height

Created with the Personal Edition of HelpNDoc: Make Your PDFs More Secure with Encryption and Password Protection