Skip to content

SprFormat Class ​

Definition ​

Reads and writes headerless 16 by 16 sprite patterns without guessing their bit depth.

c#
public sealed class SprFormat : TilesFormat<SprFile>

View source

Fields ​

NameDescription
EightBitThe 8-bit format; callers must select the intended interpretation explicitly.
FourBitThe 4-bit format; callers must select the intended interpretation explicitly.

Properties ​

NameDescription
BitsPerPixelGets the bit depth used to interpret the headerless file.

Methods ​

NameDescription
ForBitsPerPixel(Int32)Gets the singleton for the specified bit depth.
ReadAsync(IBinaryReader)Reads a file from an IBinaryReader.
WriteAsync(SprFile, IBinaryWriter)Writes a strongly typed resource file.