TgaOptions Class
Contents
[
Hide
]Summary: The TGA file format create options.
Module: aspose.imaging.imageoptions
Full Name: aspose.imaging.imageoptions.TgaOptions
Inheritance: IHasXmpData, IHasMetadata, ImageOptionsBase
Constructors
| Name | Description |
|---|---|
| TgaOptions() | Initializes a new instance of the TgaOptions class. |
| TgaOptions(tga_options) | Initializes a new instance of the TgaOptions class. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| buffer_size_hint | int | r/w | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
| disposed | bool | r | Gets a value indicating whether this instance is disposed. |
| full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. |
| keep_metadata | bool | r/w | Gets a value whether to keep original image metadata on export. |
| multi_page_options | MultiPageOptions | r/w | The multipage options |
| palette | IColorPalette | r/w | Gets or sets the color palette. |
| resolution_settings | ResolutionSetting | r/w | Gets or sets the resolution settings. |
| source | Source | r/w | Gets or sets the source to create image in. |
| vector_rasterization_options | VectorRasterizationOptions | r/w | Gets or sets the vector rasterization options. |
| xmp_data | XmpPacketWrapper | r/w | Gets or sets the XMP metadata container. |
Methods
| Name | Description |
|---|---|
| clone() | Creates a memberwise clone of this instance. |
Constructor: TgaOptions()
TgaOptions()
Initializes a new instance of the TgaOptions class.
See also:
Example # 1: Saving of the JPG image as a TGA image.
Constructor: TgaOptions(tga_options)
TgaOptions(tga_options)
Initializes a new instance of the TgaOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| tga_options | TgaOptions | The TGA options. |
Method: clone()
clone()
Creates a memberwise clone of this instance.
Returns
| Type | Description |
|---|---|
| ImageOptionsBase | A memberwise clone of this instance. |
Examples
Saving of the JPG image as a TGA image.
from aspose.imaging import Image
from aspose.imaging.imageoptions import TgaOptions
with Image.load("test.jpg") as image:
image.save("test.tga"", TgaOptions())