Skip to content

ImageFormat<TFile> Class ​

Definition ​

Base class for image formats with a strongly typed file type.

c#
public abstract class ImageFormat<TFile> : ImageFormat
   where TFile : ImageFile

View source

Type Parameters ​

NameDescription
TFileThe concrete file type.

Constructors ​

NameDescription
ImageFormat(String, String)Base class for image formats with a strongly typed file type.

Methods ​

NameDescription
Read(Byte[])Reads a image file from a byte array.
Read(Stream)Reads a image file from a stream.
ReadAsync(Stream, CancellationToken)Reads a image file asynchronously.
WriteAsync(IOFile, IBinaryWriter)Writes a file to a IBinaryWriter asynchronously.
WriteAsync(TFile, IBinaryWriter)Writes a strongly typed resource file.