Share via


IXRTileBrush::GetStretch (Windows Embedded CE 6.0)

1/6/2010

This method retrieves a value that specifies how the content of this tile brush stretches to fit its tiles.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetStretch(
    XRStretch* pStretch
) = 0;

Parameters

  • pStretch
    [out] Pointer to an XRStretch enumerated type that indicates how the tile-brush content is projected onto its base tile.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The pStretch value can be one of the following values:

  • XRStretch_None: The tile-brush content does not stretch to fill the tile.
  • XRStretch_Uniform: The tile-brush content scales to fit the tile dimensions but preserves its original aspect ratio.
  • XRStretch_UniformToFill: The tile-brush content scales to completely fill the output area but preserves its original aspect ratio.
  • XRStretch_Fill: The tile-brush content scales to fit the tile. Because the content's height and width are scaled independently, the tile-brush content might be distorted in order to completely fill the output tile.

The following illustration shows the different XRStretch settings:

Ee501808.372348ba-ed7d-4368-b2f1-0afdc4898f06(en-US,WinEmbedded.60).jpg

.NET Framework Equivalent

System.Windows.Media.TileBrush.Stretch

Requirements

sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRTileBrush
IXRTileBrush::SetStretch