Table of Contents

Class SunRasterWriterOptions

Namespace
Egami.Formats.Extended.SunRaster
Assembly
Egami.Formats.Extended.dll

Options for writing Sun raster.

public sealed class SunRasterWriterOptions : WriterOptions
Inheritance
SunRasterWriterOptions
Inherited Members

Examples

// SGI codes its rows by default; Sun raster writes them plain unless asked.
using (FileStream sgi = File.Create("duck.rgb"))
{
    image.Save(sgi, SgiFormat.Info, new SgiWriterOptions { Rle = false });
}

using (FileStream sun = File.Create("duck.ras"))
{
    image.Save(sun, SunRasterFormat.Info, new SunRasterWriterOptions { Rle = true });
}

Properties

Default

Gets the default options.

public static SunRasterWriterOptions Default { get; }

Property Value

SunRasterWriterOptions

Rle

Gets whether to run-length code the pixels (type 2). Defaults to false: plain pixels (type 1), which every reader takes.

public bool Rle { get; init; }

Property Value

bool