Perspective method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

short Perspective(ILEADRaster * pRaster, OLE_COLOR crBkgColor, PerspectiveConstants Flags)

Overview

Refer to Drawing Three-Dimensional Shapes and Text.

Remarks

(Raster Pro and above only) Gives a bitmap a 3-D effect, as if it exists on a flat plane and has been skewed into a different shape.

The new locations for the image corners should keep the relative relation between corners. For example, the point at index 1 should be to the right of point at index 0 and above the point at index 3. Also, the point at index 2 should be to the left of the point at index 3 and below the point at index 0 and so on. All new locations should remain inside the image.

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.

If the bitmap has a region, this method works only on the region. If the bitmap does not have a region, this method works on the entire bitmap.

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:

PerspectivePointsX property, PerspectivePointsY property, AddNoise method, Emboss method, Mosaic method, MotionBlur method, Oilify method, Posterize method, RemoveRedeye method, Solarize method, Underlay method, Bending method, Cylindrical method, FreeHandShear method, FreeHandWave method, Pixelate method, Impressionist method, Polar method, Punch method, RadialBlur method, RadWave method, Ripple method, Swirl method, Wave method, Wind method, ZoomBlur method, ZoomWave method, BumpMap method, Cubism method, DrawStar method, Dry method, FreePlaneBend method, FreeRadBend method, GlassEffect method, GlowFilter method, LensFlare method, Light method, Ocean method, PlaneBend method, Plane method, SampleTarget method, Tunnel method, Spherize method

Topics:

Raster Images: Doing Geometric Transformations.

 

Raster Images: Filtering Images.