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
System.Object
  Atalasoft.Imaging.Codec.ImageDecoder
    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
System.Object
  Atalasoft.Imaging.Codec.ImageDecoder
    Atalasoft.Imaging.Codec.BmpDecoder
    Atalasoft.Imaging.Codec.EmfDecoder
    Atalasoft.Imaging.Codec.Jpeg2000.Jp2Decoder
    Atalasoft.Imaging.Codec.JpegDecoder
    Atalasoft.Imaging.Codec.JpegXrDecoder
    Atalasoft.Imaging.Codec.MultiFramedImageDecoder
    Atalasoft.Imaging.Codec.PcdDecoder
    Atalasoft.Imaging.Codec.PcxDecoder
    Atalasoft.Imaging.Codec.PngDecoder
    Atalasoft.Imaging.Codec.PnmDecoder
    Atalasoft.Imaging.Codec.PsdDecoder
    Atalasoft.Imaging.Codec.RawDecoder
    Atalasoft.Imaging.Codec.TgaDecoder
    Atalasoft.Imaging.Codec.TlaDecoder
    Atalasoft.Imaging.Codec.WbmpDecoder
    Atalasoft.Imaging.Codec.WmfDecoder