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
SystemObject
  Atalasoft.Imaging.CodecImageDecoder
    More...

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

The ImageDecoder type exposes the following members.

Constructors
  NameDescription
Protected methodImageDecoder
Initializes a new instance of the ImageDecoder class.
Top
Properties
  NameDescription
Public propertySupportedImageType Obsolete.
Returns the ImageType that the implemented decoder class supports.
Top
Methods
  NameDescription
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
Retrieves 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.)
Top
Remarks
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
Examples

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
SystemObject
  Atalasoft.Imaging.CodecImageDecoder
    Atalasoft.Imaging.CodecBmpDecoder
    Atalasoft.Imaging.CodecEmfDecoder
    Atalasoft.Imaging.Codec.Jpeg2000Jp2Decoder
    Atalasoft.Imaging.CodecJpegDecoder
    Atalasoft.Imaging.CodecJpegXrDecoder
    Atalasoft.Imaging.CodecMultiFramedImageDecoder
    Atalasoft.Imaging.CodecPcdDecoder
    Atalasoft.Imaging.CodecPcxDecoder
    Atalasoft.Imaging.CodecPngDecoder
    Atalasoft.Imaging.CodecPnmDecoder
    Atalasoft.Imaging.CodecPsdDecoder
    Atalasoft.Imaging.CodecRawDecoder
    Atalasoft.Imaging.CodecTgaDecoder
    Atalasoft.Imaging.CodecTlaDecoder
    Atalasoft.Imaging.CodecWbmpDecoder
    Atalasoft.Imaging.CodecWmfDecoder