Share via


IXRScaleTransform::GetScaleX (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the factor by which to scale the UI object along the x-axis.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetScaleX(
    float* pScaleX
) = 0;

Parameters

  • pScaleX
    [out] Pointer to a float value that indicates the scale factor along the x-axis.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The default value is 1, which indicates no scaling along the x-axis. When pScaleX is between 0 and 1, it decreases the width of the scaled object. When pScaleX is greater than 1, it increases the width of the scaled object.

When pScaleX is a negative value, it flips the scaled object horizontally. When pScaleX is between 0 and -1, it flips the scaled object and decreases its width. When pScaleX is less than -1, it flips the object and increases its width. A value of -1 flips the scaled object but does not change its horizontal size.

You can offset the local origin point (0,0) for a UI element on an IXRCanvas container object by setting the attached properties Canvas.Left and Canvas.Top. However, this is not considered a transformation; the UI object keeps its own local origin point for transformation purposes.

.NET Framework Equivalent

System.Windows.Media.ScaleTransform.ScaleX

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRScaleTransform
IXRScaleTransform::SetScaleX