Draws source bitmap over current layer, performing translations, rotations and perspective transform.

This function is the base to build cover-flow like effects.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public IEQuadCoords ProjectDraw(
	IEImage source,
	int centerDestX,
	int centerDestY,
	int destWidth,
	int destHeight,
	double depth,
	int translateX,
	int translateY,
	double rotateX,
	double rotateY,
	int specularAlphaMin,
	int specularAlphaMax
)
Public Function ProjectDraw ( _
	source As IEImage, _
	centerDestX As Integer, _
	centerDestY As Integer, _
	destWidth As Integer, _
	destHeight As Integer, _
	depth As Double, _
	translateX As Integer, _
	translateY As Integer, _
	rotateX As Double, _
	rotateY As Double, _
	specularAlphaMin As Integer, _
	specularAlphaMax As Integer _
) As IEQuadCoords
public:
IEQuadCoords ProjectDraw(
	IEImage^ source, 
	int centerDestX, 
	int centerDestY, 
	int destWidth, 
	int destHeight, 
	double depth, 
	int translateX, 
	int translateY, 
	double rotateX, 
	double rotateY, 
	int specularAlphaMin, 
	int specularAlphaMax
)

Parameters

source
IEImage
Source image to draw.
centerDestX
Int32
Horizontal coordinate of center of destination position.
centerDestY
Int32
Vertical coordinate of center of destination position.
destWidth
Int32
Destination bounding box width, not including specular bitmap. The resulting bitmap will be adapted (but not stretched) to this size.
destHeight
Int32
Destination bounding box height, not including specular bitmap. The resulting bitmap will be adapted (but not stretched) to this size.
depth
Double
Destination depth of field.
translateX
Int32
Horizontal offset in 3D space (before perspective projection).
translateY
Int32
Vertical offset in 3D space (before perspective projection).
rotateX
Double
X axis rotation in 3D space (before perspective projection). Angles are in degrees.
rotateY
Double
Y axis rotation in 3D space (before perspective projection). Angles are in degrees.
specularAlphaMin
Int32
If >-1 a reflection bitmap will be drawn, using specified alpha range.
specularAlphaMax
Int32
If >-1 a reflection bitmap will be drawn, using specified alpha range.

Return Value

Returns coordinates of four points of stretched bitmap.

Examples

CopyC#
// draw at 200,200 (center), inside a box of 150x150, depth 400, rotating by 30° on Y axis, with specular effect
ieViewer1.Image.ProjectDraw( ieViewer2.Image, 200,200, 150,150, 400, 0,0, 0,30, 0,100 );

See Also