Skip to content
ChartForgeX
Enum

VisualCanvasImageFit

ChartForgeX.Composition

Namespace
ChartForgeX.Composition
Assembly
ChartForgeX.Visuals
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed

Defines how source images are placed inside a visual canvas image layer.

Inheritance

  • Enum
  • VisualCanvasImageFit

Usage

Explore 43 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 35

Values

public const VisualCanvasImageFit Stretch #

Scale the image independently in both axes to fill the destination rectangle.

Value: 0
public const VisualCanvasImageFit Contain #

Scale the image uniformly so the entire source is visible inside the destination rectangle.

Value: 1
public const VisualCanvasImageFit Cover #

Scale and crop the image uniformly so the destination rectangle is fully covered.

Value: 2
public const VisualCanvasImageFit Center #

Draw the image at its source pixel size, centered inside the destination rectangle.

Value: 3
public const VisualCanvasImageFit Tile #

Repeat the image at its source pixel size, clipped to the destination rectangle.

Value: 4