次の方法で共有


IXRCompositeTransform::SetSkewY (Compact 2013)

3/28/2014

This method sets the y-axis skew angle, which is measured in degrees counterclockwise from the x-axis. A skew transform can be useful for creating the illusion of three-dimensional depth in a two-dimensional object.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSkewY(
    __in float SkewY
) = 0;

Parameters

  • SkewY
    [in] The float value that specifies the skew angle, which is measured in degrees counterclockwise from the x-axis. The default is 0.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To skew an object in place, use the IXRCompositeTransform::SetCenterX and IXRCompositeTransform::SetCenterY methods to set the object's center point.

The local origin point 0,0 for an object can be offset on an IXRCanvas by using the attached properties Canvas.Left and Canvas.Top. However, this does not count as a transform; the object retains its own local origin for transformation purposes in this case.

This property accepts negative values. Positive values are interpreted as counterclockwise skew. Negative values are interpreted as clockwise skew. For values less than -360 or greater than 360, the values wrap around and are treated as if the mathematical operation mod(360) was applied.

.NET Framework Equivalent

System.Windows.Media.CompositeTransform.SkewY

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRCompositeTransform