Offset method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short Offset(ILEADRaster * pRaster, long lHorizontalShift, long lVerticalShift, OLE_COLOR crBackColor, OffsetConstants Flags);

Overview

Refer to Combining Images.

Remarks

Shifts the bitmap pixels horizontally and vertically.

Use the OffsetRgn method to move a bitmap region by the specified number of rows and columns.

If the bitmap has a region, the effect will be applied on the region only.

This method supports 12- and 16-bit grayscale and 48- and 64-bit color images. Support for 12- and 16-bit grayscale and 48- and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

Emboss method, AddShadow method, HueSaturationIntensity method, ColorReplace method, ColorThreshold method, DirectionEdgeStatistical method, GetBitmapStatisticsInfo method, GetFeretsDiameter method, GetObjectInfo method, GetRgnContourPoints method, GetRgnPerimeterLength method, MathFunction method, Segment method, SubtractBackground method, UserFilter method, OffsetRgn method.

Topics:

Raster Images: Doing Geometric Transformations.

 

Raster Images: Artistic Effects