Show / Hide Table of Contents

Enum ImageUtilities.ScaleStrategy

Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public enum ImageUtilities.ScaleStrategy

Fields

Name Description
NoScaling

Dont perform any scaling at all.

ScaleToLargest

Scale the image so the entire area of the requested bounds are filled. Exceeding areas are clipped

ScaleToSmallest

The image is scaled so the entire image fits within the requested bounds.
Areas within the requested bounds not ocupied by the image is filled.

Stretch

The image is scaled to fit and aspect ratio is not maintained.

Trim

Use the original size of the image, areas outside of the requested bounds are clipped. Areas inside the requested bounds are filled.

Extension Methods

EnumUtil.MapEnums<ImageUtilities.ScaleStrategy, To>(ImageUtilities.ScaleStrategy)
Converters.MapEnums<ImageUtilities.ScaleStrategy, To>(ImageUtilities.ScaleStrategy)
ObjectExtensions.AssignByReflection<ImageUtilities.ScaleStrategy>(ImageUtilities.ScaleStrategy, ImageUtilities.ScaleStrategy)
ObjectExtensions.GraphCopy<ImageUtilities.ScaleStrategy>(ImageUtilities.ScaleStrategy)
EnumUtil.GetDescription(Enum)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top