A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
1.3 KiB

// -----------------------------------------------------------------------
// <copyright file="Stretch.cs" company="Steven Kirk">
// Copyright 2013 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Media
{
/// <summary>
/// Describes how content is resized to fill its allocated space.
/// </summary>
public enum Stretch
{
/// <summary>
/// The content preserves its original size.
/// </summary>
None,
/// <summary>
/// The content is resized to fill the destination dimensions. The aspect ratio is not
/// preserved.
/// </summary>
Fill,
/// <summary>
/// The content is resized to fit in the destination dimensions while preserving its
/// native aspect ratio.
/// </summary>
Uniform,
/// <summary>
/// The content is resized to completely fill the destination rectangle while preserving
/// its native aspect ratio. A portion of the content may not be visible if the aspect
/// ratio of the content does not match the aspect ratio of the allocated space.
/// </summary>
UniformToFill,
}
}