Share via


IXRRotateTransform::GetAngle (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the angle, in degrees, of clockwise rotation.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetAngle(
    float* pAngle
) = 0;

Parameters

  • pAngle
    [out] Pointer to a value that indicates the angle, in degrees, of clockwise rotation.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When you use an IXRRotateTransform object, the transformation rotates the coordinate system for a particular object around the point (0,0). The object itself is not necessarily rotated around its center. For example, if an object is positioned 200 units from the x-axis, a rotation of 30 degrees will swing the object 30 degrees along a circle that has a radius of 200centered at the origin. To rotate an object in place, pass the x-coordinate and y-coordinate of the center of the object in IXRRotateTransform::SetCenterX and IXRRotateTransform::SetCenterY.

The local origin point for an object can be offset on an IXRCanvas container object by setting the Canvas.Left and Canvas.Top attached properties through IXRDependencyObject::SetAttachedProperty. However, this does not count as a transform. The object keeps its own local origin point for transformation purposes.

.NET Framework Equivalent

System.Windows.Media.RotateTransform.Angle

Requirements

sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRRotateTransform
IXRRotateTransform::SetAngle