IXRTileBrush::GetStretch (Compact 2013)
3/28/2014
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 table illustrates the different XRStretch settings:
None |
Uniform |
UniformToFill |
Fill |
---|---|---|---|
.NET Framework Equivalent
System.Windows.Media.TileBrush.Stretch
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |