Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Enum

VisualCanvasImageFit

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 41 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 33

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