CodeGlyphX logo
CodeGlyphX

API Reference

Class

IcoRenderOptions

Namespace CodeGlyphX.Rendering.Ico
Assembly CodeGlyphX
Modifiers sealed

Options for ICO rendering (multi-size).

Inheritance

  • Object
  • IcoRenderOptions

Usage

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

Accepted by parameters

Constructors

Methods

public IcoRenderOptions WithPreserveAspectRatio(Boolean preserveAspectRatio = true) #
Returns: IcoRenderOptions

Sets whether to preserve aspect ratio when rendering icons.

Parameters

preserveAspectRatio System.Boolean = true optionalposition: 0
public IcoRenderOptions WithSizes(Int32[] sizes) #
Returns: IcoRenderOptions

Sets the output icon sizes in pixels.

Parameters

sizes System.Int32[] requiredposition: 0

Properties

public Int32[] Sizes { get; set; } #

Output sizes in pixels (1..256). Defaults to common icon sizes.

public Boolean PreserveAspectRatio { get; set; } #

Preserves aspect ratio and pads to square when true.