C# Класс AdvancedLauncher.Tools.Imaging.TargaImage

Reads and loads a Truevision TGA Format image file.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes all resources used by this instance of the TargaImage class.

LoadTargaImage ( byte bytes ) : Bitmap

Loads a Targa image file into a Bitmap object.

LoadTargaImage ( string sFileName ) : Bitmap

Loads a Targa image file into a Bitmap object.

TargaImage ( ) : System

Creates a new instance of the TargaImage object.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.

Приватные методы

Метод Описание
ClearAll ( ) : void

Clears out all objects and resources.

GetPixelFormat ( ) : PixelFormat

Gets the PixelFormat to be used by the Image based on the Targa file's attributes

LoadImageBytes ( BinaryReader binReader ) : byte[]

Reads the image data bytes from the file. Handles Uncompressed and RLE Compressed image data. Uses FirstPixelDestination to properly align the image.

LoadTGAExtensionArea ( BinaryReader binReader ) : void

Loads the Targa Extension Area from the file, if it exists.

LoadTGAFooterInfo ( BinaryReader binReader ) : void

Loads the Targa Footer information from the file.

LoadTGAHeaderInfo ( BinaryReader binReader ) : void

Loads the Targa Header information from the file.

LoadTGAImage ( BinaryReader binReader ) : void

Reads the image data bytes from the file and loads them into the Image Bitmap object. Also loads the color map, if any, into the Image Bitmap.

LoadThumbnail ( BinaryReader binReader, PixelFormat pfPixelFormat ) : void

Loads the thumbnail of the loaded image file, if any.

TargaImage ( byte filebytes ) : System
TargaImage ( string strFileName ) : System

Описание методов

Dispose() публичный Метод

Disposes all resources used by this instance of the TargaImage class.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
protected Dispose ( bool disposing ) : void
disposing bool If true dispose all resources, else dispose only release unmanaged resources.
Результат void

LoadTargaImage() публичный статический Метод

Loads a Targa image file into a Bitmap object.
public static LoadTargaImage ( byte bytes ) : Bitmap
bytes byte The Targa image byte array
Результат System.Drawing.Bitmap

LoadTargaImage() публичный статический Метод

Loads a Targa image file into a Bitmap object.
public static LoadTargaImage ( string sFileName ) : Bitmap
sFileName string The Targa image filename
Результат System.Drawing.Bitmap

TargaImage() публичный Метод

Creates a new instance of the TargaImage object.
public TargaImage ( ) : System
Результат System