Draws source bitmap over current layer, performing translations, rotations and perspective transform.
This function is the base to build cover-flow like effects.
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, double scale, 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, _ scale As Double, _ 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, double scale, 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.
- scale
- Double
Replaces destWidth and destHeight in the second overload. Specifies a multiplier of the original size (1=same size, 0.5=half size, etc..).
- 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 );