OpenExrTiling Class

Immutable settings of tiled OpenEXR output (OpenExrEncoder.Tiling): the tile size and the resolution levels.

public sealed class OpenExrTiling

Remarks

Each tile is a chunk compressed on its own; a tile at the right or bottom edge of a level is clipped to the level.

The levels below the full resolution (OpenExrLevelMode.MipmapLevels, OpenExrLevelMode.RipmapLevels) are generated by the encoder: each level is the area average of the previous one (a box filter that weights each source pixel by the part of it the destination pixel covers), computed on the samples the file stores, which are the colors premultiplied by alpha. A mipmap level comes from the previous mipmap level; a ripmap level from the level on its left, or, in the first column, from the level above it. The samples of a level are the average of the samples the file stores for its parent level, rounded to the sample type.

Constructors

NameDescription
OpenExrTiling()

OpenExrTiling()

OpenExrTiling.cs
public OpenExrTiling()

No documentation is available.

Properties

NameDescription
LevelModeGets the resolution levels the file stores. Defaults to OpenExrLevelMode.OneLevel.
LevelRoundingGets how the sizes of the levels are rounded. Defaults to OpenExrLevelRounding.Down.
TileHeightGets the height of a tile, in pixels. Defaults to 64.
TileWidthGets the width of a tile, in pixels. Defaults to 64.

Gets the resolution levels the file stores. Defaults to OpenExrLevelMode.OneLevel.

public OpenExrLevelMode LevelMode { get; init; }

Property value

OpenExrLevelMode

Exceptions

ArgumentOutOfRangeException
The value is not a defined OpenExrLevelMode.

LevelRounding

OpenExrTiling.cs

Gets how the sizes of the levels are rounded. Defaults to OpenExrLevelRounding.Down.

public OpenExrLevelRounding LevelRounding { get; init; }

Property value

OpenExrLevelRounding

Exceptions

ArgumentOutOfRangeException
The value is not a defined OpenExrLevelRounding.

Gets the height of a tile, in pixels. Defaults to 64.

public int TileHeight { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is less than 1.

Gets the width of a tile, in pixels. Defaults to 64.

public int TileWidth { get; init; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is less than 1.