Table of Contents

Class AtlasTargetRegion

Namespace
KernSmith
Assembly
KernSmith.dll

Defines a rectangular region within an existing PNG image where glyphs will be rendered.

public sealed class AtlasTargetRegion
Inheritance
AtlasTargetRegion
Inherited Members

Properties

Height

Height of the target region in pixels.

public int Height { get; set; }

Property Value

int

SourcePngData

Raw PNG bytes of the source image. Either this or SourcePngPath must be set.

public byte[]? SourcePngData { get; set; }

Property Value

byte[]

SourcePngPath

Path to the source PNG file. Either this or SourcePngData must be set.

public string? SourcePngPath { get; set; }

Property Value

string

Width

Width of the target region in pixels.

public int Width { get; set; }

Property Value

int

X

X offset of the target region within the source image.

public int X { get; set; }

Property Value

int

Y

Y offset of the target region within the source image.

public int Y { get; set; }

Property Value

int