TgaDecoder Class |
An ImageDecoder used to read Truevision Targa (TGA) images from a Stream.
Namespace: Atalasoft.Imaging.Codec
The TgaDecoder type exposes the following members.
Name | Description | |
---|---|---|
TgaDecoder | Initializes a new instance of a TgaDecoder. |
Name | Description | |
---|---|---|
SupportedImageType | Obsolete. Returns a Tga ImageType enumeration value. (Overrides ImageDecoderSupportedImageType.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetImageInfo | Retreive information from a Targa image stored in a Stream without decoding the image data. (Overrides ImageDecoderGetImageInfo(Stream).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValidFormat | Returns true if the specified Stream contains an Targa image. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Read | Returns an AtalaImage from a Stream containing a Targa encoded image. (Overrides ImageDecoderRead(Stream, ProgressEventHandler).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
By default, when opening a Targa image using the AtalaImage or Workspace objects, this decoder will automatically be selected from the RegisteredDecoders and does not have to be explicitly set.
Because there is no identifier when reading Tga images, it is up to the developer to detect the file extension, and if "tga" then specify this decoder directly. In many cases, dotImage cannot guess an image is encoded as a TGA.