InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImageShiftUtils Class Referenceabstract

#include <IImageShiftUtils.h>

Inheritance diagram for IImageShiftUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IIMAGESHIFTUTILS }
 

Public Member Functions

virtual void ShiftImageRowLeft (uint16 shiftAmount, uint32 bufLen, uint8 *inBuffer, uint8 *overflowByte)=0
 
virtual void ShiftImageRowRight (uint16 shiftAmount, uint32 bufLen, uint8 *inBuffer, uint8 *overflowByte)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

IImageShiftUtils is a utility class used to shift a row of image data a specified number of bits to the left or right. i.e. Utils<IImageShiftUtils>()->ShiftImageRowLeft( ... ) ;

Member Function Documentation

virtual void IImageShiftUtils::ShiftImageRowLeft (uint16 shiftAmount,
uint32 bufLen,
uint8 * inBuffer,
uint8 * overflowByte 
)
pure virtual

Shift the image row to the left shiftAmount bits. Put the overflow in overflowByte (up to 8 bits of overflow, the extra falls off the edge)

Parameters
shiftAmount- IN: The number of bits by which to shift the entire row to the left.
bufLen- IN: The number of bytes in the inBuffer
inBuffer- IN/OUT: A pointer to the buffer containing the image data to shift.
overflowByte- OUT: pointer to a byte which will contain the overflow data.
virtual void IImageShiftUtils::ShiftImageRowRight (uint16 shiftAmount,
uint32 bufLen,
uint8 * inBuffer,
uint8 * overflowByte 
)
pure virtual

Shift the image row to the right shiftAmount bits. Put the overflow in overflowByte (up to 8 bits of overflow, the extra falls off the edge)

Parameters
shiftAmount- IN: The number of bits by which to shift the entire row to the right.
bufLen- IN: The number of bytes in the inBuffer
inBuffer- IN/OUT: A pointer to the buffer containing the image data to shift.
overflowByte- OUT: pointer to a byte which will contain the overflow data.