D2D1_3DPERSPECTIVETRANSFORM_PROP enumeration
Identifiers for the properties of the 3D perspective transform effect.
Syntax
typedef enum D2D1_3DPERSPECTIVETRANSFORM_PROP { D2D1_3DPERSPECTIVETRANSFORM_PROP_INTERPOLATION_MODE = 0, D2D1_3DPERSPECTIVETRANSFORM_PROP_BORDER_MODE = 1, D2D1_3DPERSPECTIVETRANSFORM_PROP_DEPTH = 2, D2D1_3DPERSPECTIVETRANSFORM_PROP_PERSPECTIVE_ORIGIN = 3, D2D1_3DPERSPECTIVETRANSFORM_PROP_LOCAL_OFFSET = 4, D2D1_3DPERSPECTIVETRANSFORM_PROP_GLOBAL_OFFSET = 5, D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION_ORIGIN = 6, D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION = 7 } D2D1_3DPERSPECTIVETRANSFORM_PROP;
Constants
- D2D1_3DPERSPECTIVETRANSFORM_PROP_INTERPOLATION_MODE
-
The interpolation mode the effect uses on the image. There are 5 scale modes that range in quality and speed.
Type is D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE.
Default value is D2D1_3DPERSPECTIVETRANSFORM_INTERPOLATION_MODE_LINEAR.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_BORDER_MODE
-
The mode used to calculate the border of the image, soft or hard. See Border modes for more info.
Type is D2D1_BORDER_MODE.
Default value is D2D1_BORDER_MODE_SOFT.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_DEPTH
-
The distance from the PerspectiveOrigin to the projection plane. The value specified in DIPs and must be greater than 0.
Type is FLOAT.
Default value is 1000.0f.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_PERSPECTIVE_ORIGIN
-
The X and Y location of the viewer in the 3D scene. This property is a D2D1_VECTOR_2F defined as: (point X, point Y). The units are in DIPs. You set the Z value with the Depth property.
Type is D2D1_VECTOR_2F.
Default value is {0.0f, 0.0f}.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_LOCAL_OFFSET
-
A translation the effect performs before it rotates the projection plane. This property is a D2D1_VECTOR_3F defined as: (X, Y, Z). The units are in DIPs.
Type is D2D1_VECTOR_3F.
Default value is {0.0f, 0.0f, 0.0f}.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_GLOBAL_OFFSET
-
A translation the effect performs after it rotates the projection plane. This property is a D2D1_VECTOR_3F defined as: (X, Y, Z). The units are in DIPs.
Type is D2D1_VECTOR_3F.
Default value is {0.0f, 0.0f, 0.0f}.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION_ORIGIN
-
The center point of the rotation the effect performs. This property is a D2D1_VECTOR_3F defined as: (X, Y, Z). The units are in DIPs.
Type is D2D1_VECTOR_3F.
Default value is {0.0f, 0.0f, 0.0f}.
- D2D1_3DPERSPECTIVETRANSFORM_PROP_ROTATION
-
The angles of rotation for each axis. This property is a D2D1_VECTOR_3F defined as: (X, Y, Z). The units are in degrees.
Type is D2D1_VECTOR_3F.
Default value is {0.0f, 0.0f, 0.0f}.
Requirements
|
Header |
|
|---|