Skip to content
ChartForgeX
Class

ChartRasterOptions

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent(Copy = "Clone")

Fonts, hinting and scale for every raster format. Configure it through ChartOptions.Raster.

Inheritance

  • object
  • ChartRasterOptions

Usage

Explore 33 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 20

Constructors

public ChartRasterOptions() #

Properties

public string? FontPath { get; set; } #

Gets or sets the preferred TrueType font file or TrueType collection used by the PNG renderer.

public string? FontFaceName { get; set; } #

Gets or sets the optional family, subfamily, full, or PostScript face name used when selecting a PNG font.

public int? FontCollectionIndex { get; set; } #

Gets or sets the optional face index used when ChartRasterOptions.FontPath points to a TrueType collection.

public TextHinting TextHinting { get; set; } #

Gets or sets how the PNG renderer fits text to the pixel grid.

public int SupersamplingScale { get; set; } #

Gets or sets the internal supersampling scale used by the PNG renderer.

public int OutputScale { get; set; } #

Gets or sets the output pixel multiplier used by the PNG renderer.

Extension Methods

public static ChartRasterOptions FontCollectionIndex(ChartRasterOptions chartRasterOptions, int? value) #

Sets ChartRasterOptions.FontCollectionIndex: Gets or sets the optional face index used when ChartRasterOptions.FontPath points to a TrueType collection.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value int? required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { FontCollectionIndex = value };    chartRasterOptions.FontCollectionIndex(value);
public static ChartRasterOptions FontFaceName(ChartRasterOptions chartRasterOptions, string? value) #

Sets ChartRasterOptions.FontFaceName: Gets or sets the optional family, subfamily, full, or PostScript face name used when selecting a PNG font.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value string? required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                                // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { FontFaceName = value };    chartRasterOptions.FontFaceName(value);
public static ChartRasterOptions FontPath(ChartRasterOptions chartRasterOptions, string? value) #

Sets ChartRasterOptions.FontPath: Gets or sets the preferred TrueType font file or TrueType collection used by the PNG renderer.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value string? required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { FontPath = value };    chartRasterOptions.FontPath(value);
public static ChartRasterOptions OutputScale(ChartRasterOptions chartRasterOptions, int value) #

Sets ChartRasterOptions.OutputScale: Gets or sets the output pixel multiplier used by the PNG renderer.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value int required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { OutputScale = value };    chartRasterOptions.OutputScale(value);
public static ChartRasterOptions SupersamplingScale(ChartRasterOptions chartRasterOptions, int value) #

Sets ChartRasterOptions.SupersamplingScale: Gets or sets the internal supersampling scale used by the PNG renderer.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value int required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                                      // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { SupersamplingScale = value };    chartRasterOptions.SupersamplingScale(value);
public static ChartRasterOptions TextHinting(ChartRasterOptions chartRasterOptions, TextHinting value) #

Sets ChartRasterOptions.TextHinting: Gets or sets how the PNG renderer fits text to the pixel grid.

Parameters

chartRasterOptions ChartForgeX.Core.ChartRasterOptions required
The instance.
value ChartForgeX.Typography.TextHinting required
The value.

Returns

ChartRasterOptions The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Core.ChartRasterOptions { TextHinting = value };    chartRasterOptions.TextHinting(value);