Vignette method (ILEADRasterProcess)
short Vignette(ILEADRaster * pRaster, long lCenterX, long lCenterY, long lFading, long lFadingRate, long lWidth, long lHeight, OLE_COLOR crVigColor, long lFlags); | |
Overview |
Refer to Applying Artistic Effects. |
Remarks
(Raster Pro and above only) Draws a specified shape and feathers it to the bitmap.
This method can be used to draw a circle, ellipse, rectangle or square to create a vignette shape and then a color is feathered to the bitmap, filling either the inside or the outside of the vignette shape.
As an example, if you use the following figure:
And you call Vignette using the following values:
Parameter |
Value |
lCenterX |
144 |
lCenterY |
181 |
lFading |
50 |
lFadingRate |
33 |
lWidth |
145 |
lHeight |
181 |
crVigColor |
White |
lFlags |
VIG_ELLIPSE | VIG_FILLIN |
The following figure results:
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. |
Topics: |
|
|