Canvas method (ILEADRasterProcess)
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:
And you use the following figure as the canvas bitmap:
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:
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:
Other methods that allow you to combine images include:
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