Skip to content
ChartForgeX
Enum

RasterImageFormat

ChartForgeX.Core

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

Defines dependency-free raster export formats.

Inheritance

  • Enum
  • RasterImageFormat

Usage

Explore 49 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 42

Values

public const RasterImageFormat Bmp #

Uncompressed 24-bit BMP.

Value: 0
public const RasterImageFormat Ppm #

Binary P6 portable pixmap.

Value: 1
public const RasterImageFormat Tiff #

Baseline uncompressed RGB TIFF.

Value: 2
public const RasterImageFormat Png #

Portable Network Graphics with RGBA alpha.

Value: 3
public const RasterImageFormat Jpeg #

Baseline JPEG flattened against the configured raster background.

Value: 4

Extension Methods

public static string GetFileExtension(RasterImageFormat format) #

Gets the conventional file extension for the raster image format.

Parameters

format ChartForgeX.Core.RasterImageFormat required
The raster image format.

Returns

string The lowercase file extension, including the leading dot.
public static string[] GetFileExtensions(RasterImageFormat format) #

Gets all recognized file extensions for the raster image format.

Parameters

format ChartForgeX.Core.RasterImageFormat required
The raster image format.

Returns

string[] Lowercase file extensions, including leading dots, with the conventional extension first.
public static string GetMimeType(RasterImageFormat format) #

Gets the MIME type for the raster image format.

Parameters

format ChartForgeX.Core.RasterImageFormat required
The raster image format.

Returns

string The MIME content type.
public static bool IsSupported(RasterImageFormat format) #

Determines whether the raster image format is currently supported.

Parameters

format ChartForgeX.Core.RasterImageFormat required
The raster image format.

Returns

bool True when the format can be encoded; otherwise, false.