TgaImage
Contents
[
Hide
]TgaImage constructor (1 of 3)
Initializes a new instance of the TgaImage
class.
public TgaImage(string path)
Parameter | Type | Description |
---|---|---|
path | String | The path to load an image. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Specified path is null. |
See Also
- class TgaImage
- namespace Aspose.Imaging.FileFormats.Tga
- assembly Aspose.Imaging
TgaImage constructor (2 of 3)
Initializes a new instance of the TgaImage
class.
public TgaImage(RasterImage rasterImage)
Parameter | Type | Description |
---|---|---|
rasterImage | RasterImage | The raster image. |
Examples
Loading of the PNG image, conversion of it to the TgaImage and saving as a TGA image.
[C#]
using (RasterImage image = (RasterImage)Image.Load("test.png"))
{
using (TgaImage tgaImage = new TgaImage(image))
{
tgaImage.Save("test.tga");
}
}
See Also
- class RasterImage
- class TgaImage
- namespace Aspose.Imaging.FileFormats.Tga
- assembly Aspose.Imaging
TgaImage constructor (3 of 3)
Initializes a new instance of the TgaImage
class.
public TgaImage(Stream stream)
Parameter | Type | Description |
---|---|---|
stream | Stream | The stream to load an image. |
See Also
- class TgaImage
- namespace Aspose.Imaging.FileFormats.Tga
- assembly Aspose.Imaging