|
//---------------------------------------------------------------------------
//
// <copyright file="Stretch.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved.
// </copyright>
//
// This file was generated, please do not edit it directly.
//
// Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information.
//
//---------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
using MS.Internal.PresentationCore;
#if PRESENTATION_CORE
using SR=MS.Internal.PresentationCore.SR;
using SRID=MS.Internal.PresentationCore.SRID;
#else
using SR=System.Windows.SR;
using SRID=System.Windows.SRID;
#endif
namespace System.Windows.Media
{
/// <summary>
/// Stretch - Enum which descibes how a source rect should be stretched to fit a
/// destination rect.
/// </summary>
public enum Stretch
{
/// <summary>
/// None - Preserve original size
/// </summary>
None = 0,
/// <summary>
/// Fill - Aspect ratio is not preserved, source rect fills destination rect.
/// </summary>
Fill = 1,
/// <summary>
/// Uniform - Aspect ratio is preserved, Source rect is uniformly scaled as large as
/// possible such that both width and height fit within destination rect. This will
/// not cause source clipping, but it may result in unfilled areas of the destination
/// rect, if the aspect ratio of source and destination are different.
/// </summary>
Uniform = 2,
/// <summary>
/// UniformToFill - Aspect ratio is preserved, Source rect is uniformly scaled as small
/// as possible such that the entire destination rect is filled. This can cause source
/// clipping, if the aspect ratio of source and destination are different.
/// </summary>
UniformToFill = 3,
}
}
|