Draws source bitmap over current layer, stretching bitmap inside four points.

It is possible to invert the image making, for example, (x0,y0) > (x1,y1).

If alphaMin>-1 and alphaMax>-1 then alpha (transparency) will be set in the specified range. This is useful to compose "cover-flow" like reflection.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void PerspectiveDraw(
	IEImage source,
	int x0,
	int y0,
	int x1,
	int y1,
	int x2,
	int y2,
	int x3,
	int y3,
	int alphaMin,
	int alphaMax
)
Public Sub PerspectiveDraw ( _
	source As IEImage, _
	x0 As Integer, _
	y0 As Integer, _
	x1 As Integer, _
	y1 As Integer, _
	x2 As Integer, _
	y2 As Integer, _
	x3 As Integer, _
	y3 As Integer, _
	alphaMin As Integer, _
	alphaMax As Integer _
)
public:
void PerspectiveDraw(
	IEImage^ source, 
	int x0, 
	int y0, 
	int x1, 
	int y1, 
	int x2, 
	int y2, 
	int x3, 
	int y3, 
	int alphaMin, 
	int alphaMax
)

Parameters

source
IEImage
The image to draw.
x0
Int32
Point 0 horizontal position.
y0
Int32
Point 0 vertical position.
x1
Int32
Point 1 horizontal position.
y1
Int32
Point 1 vertical position.
x2
Int32
Point 2 horizontal position.
y2
Int32
Point 2 vertical position.
x3
Int32
Point 3 horizontal position.
y3
Int32
Point 3 vertical position.
alphaMin
Int32
Minimum alpha value (0=fully transparent, 255=fully opaque).
alphaMax
Int32
Maximum alpha value (0=fully transparent, 255=fully opaque).

Examples

CopyC#
// stretch the image to ((0,0),(100,100),(120,200),(10,180))
ieViewer1.Image.PerspectiveDraw(ieViewer2.Image, 0,0, 100,100, 120,200, 10,180);

See Also