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

IFormatReader.CheckForSupport Method (Stream)

Checks if the image can be loaded with this reader.

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


Visual Basic
Function CheckForSupport ( _
	stream As Stream _
) As Boolean
                bool CheckForSupport(
	Stream stream



Type: System.IO.Stream

Stream that contains the image to test.

Return Value

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


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