프로퍼티 | 타입 | 설명 | |
---|---|---|---|
ImageData | byte[] | ||
Palette | System.Drawing.Imaging.ColorPalette |
메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Disposes all resources used by this instance of the TargaImage class.
|
|
LoadTGAHeaderInfo ( |
Loads the Targa Header information from the file.
|
|
Save ( |
||
TargaImage ( Stream stream, |
Creates TGA image from stream.
|
|
TargaImage ( |
Creates a new instance of the TargaImage object.
|
|
TargaImage ( string strFileName ) : System |
Creates a new instance of the TargaImage object with strFileName as the image loaded.
|
메소드 | 설명 | |
---|---|---|
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
|
|
LoadFromStream ( byte filebytes ) : |
||
LoadImageBytes ( |
Reads the image data bytes from the file. Handles Uncompressed and RLE Compressed image data. Uses FirstPixelDestination to properly align the image.
|
|
LoadTGAExtensionArea ( |
Loads the Targa Extension Area from the file, if it exists.
|
|
LoadTGAFooterInfo ( |
Loads the Targa Footer information from the file.
|
|
LoadTGAImage ( |
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 ( |
Loads the thumbnail of the loaded image file, if any.
|
|
ToWPF ( ) : System.Windows.Media.Imaging.BitmapSource |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If true dispose all resources, else dispose only release unmanaged resources. |
리턴 | void |
public static LoadTGAHeaderInfo ( |
||
binReader | A BinaryReader that points the loaded file byte stream. | |
objTargaHeader | ||
리턴 | void |
public Save ( |
||
ms | ||
img | System.Windows.Media.Imaging.WriteableBitmap | |
리턴 | void |
public TargaImage ( Stream stream, |
||
stream | Stream | Stream containing image. |
prevHeader | TargaHeader if previously loaded. | |
리턴 | System |
public TargaImage ( |
||
prevHeader | ||
리턴 | System |