Fragment method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short Fragment(ILEADRaster * pRaster, long lOffset, long lOpacity)

Overview

Refer to Combining Images.

Remarks

(Raster Pro and above only) Averages a bitmap with its shifted copies.

This method creates four copies of an image. Each copy is shifted by the offset amount into one of the four directions: top, left, bottom and right. Then the bitmap is averaged with its shifted copies.

Use the DisplaceMap method to displace a bitmap's pixels horizontally and vertically according to the values of the displacement map image.

Use the Offset method to shift a bitmap's pixels horizontally and vertically.

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

This method can process the whole image or a region of the image. If a bitmap has a region, the effect is applied only to the region.

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:

Underlay method, Combine method, FeatherAlphaBlend method, CreateFadedMask method, TextureAlphaBlend method, DisplaceMap method, Offset method, OffsetRgn method, BumpMap method, Canvas method, CombineBitmapWarp method, BricksTexture method.

Topics:

Raster Images: Combining Images.

 

Raster Images: Artistic Effects