Class SgiWriterOptions
Options for writing SGI.
public sealed class SgiWriterOptions : WriterOptions
- Inheritance
-
SgiWriterOptions
- 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 SgiWriterOptions Default { get; }
Property Value
Rle
Gets whether to run-length code the rows. Defaults to true.
public bool Rle { get; init; }