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

FormatReader.CheckForSupport Method (String)

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 ( _
	fileName As String _
) As Boolean
C#
public virtual bool CheckForSupport(
	string fileName
)

Parameters

fileName

Type: System.String

The name of 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