Click or drag to resize

ImageDecoder Class

An abstract (MustInherit in Visual Basic) base class that defines a file format decoder to read an image from a Stream. All image decoders used in dotImage must inherit this class.
Inheritance Hierarchy

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public abstract class ImageDecoder

The ImageDecoder type exposes the following members.

Protected methodImageDecoder
Initializes a new instance of the ImageDecoder class.
Public propertySupportedImageType Obsolete.
Returns the ImageType that the implemented decoder class supports.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImageInfo
Retreive information from an image stored in a file without decoding the image data.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValidFormat
Checks the stream to determine if the image can be read by the decoder that derives this class.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Decode an image in a specified image Stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
To load an image from a stream, the AtalaImage constructor may be used, and passing in a string filename, or a Stream. See the examples below

Load an image from a Stream

Load an image from a Stream (C#)
FileStream fs = System.IO.File.OpenRead(@"c:\test.tif");
AtalaImage image = new AtalaImage(fs);
Load an image from a Stream (Visual Basic)
Dim fs As FileStream = System.IO.File.OpenRead("c:\test.tif")
Dim image As AtalaImage = New AtalaImage(fs);

Load an image from a file

Load an image from a file (C#)
AtalaImage image = new AtalaImage(@"c:\test.tif");
Load an image from a file (Visual Basic)
Dim image As AtalaImage = New AtalaImage("c:\test.tif");
See Also
Inheritance Hierarchy