Canvas method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short Canvas(ILEADRaster * pRaster, ILEADRaster * pRasterThumb, long lTransparency, long lEmboss, long lXOffset, long lYOffset, long lTilesOffset, long lFlags);

Overview

Refer to Combining Images.

Remarks

(Raster Pro and above only) Combines two bitmaps, superimposing one bitmap on another bitmap that is used like a canvas.

As an example, if you use the following figure:

image\Rafting.gif

And you use the following figure as the canvas bitmap:

image\ULAY2.gif

And you call Canvas using the following values:

Parameter

Value

lTransparency

90

lEmboss

117

lXOffset

0

lYOffset

0

lFlags

CANVAS_SHIFT

lTilesOffset

0

The following figure results:

image\canvas.gif

In the following figure the rafting image has been combined with the canvas bitmap using the same values, except that the CANVAS_FIT flag is used and so instead of tiling the canvas bitmap has been stretched to fit the dimensions of the rafting image:

image\fit.gif

Other methods that allow you to combine images include:

BumpMap method

Combine method

CombineBitmapWarp method

TextureAlphaBlend method

Underlay method

For more information on this and other methods that can be used to combine bitmaps, refer to Image Processing.

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.

If the one of the bitmaps has a region, the effect will be applied on the region only?

See Also

Elements:

Emboss method, AddShadow method, BumpMap method, HueSaturationIntensity method, ColorReplace method, ColorThreshold method, Combine method, CombineBitmapWarp method, DirectionEdgeStatistical method, GetBitmapStatisticsInfo method, GetFeretsDiameter method, GetObjectInfo method, GetRgnContourPoints method, GetRgnPerimeterLength method, MathFunction method, Segment method, SubtractBackground method, TextureAlphaBlend method, Underlay method, UserFilter method.

Topics:

Raster Images: Combining Images.

 

Raster Images: Artistic Effects.