This documentation is for the old version. Go to the latest Graphics Mill docs

FormatReader.CheckForSupport Method (Stream)

Checks if the image can be loaded with this reader.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overridable Function CheckForSupport ( _
	stream As Stream _
) As Boolean
C#
public virtual bool CheckForSupport(
	Stream stream
)

Parameters

stream

Type: System.IO.Stream

The stream that contains the file to test.

Return Value

If image can be read with this reader, returns true, otherwise returns false.

Remarks

You can use this method to ensure if the file has necessary format. For example, to check if the image is a GIF file, you should create an instance of GifReader class and call this method. It will return true for all GIF files and false for other formats.

See Also

Reference