WmfOptions Class
Contents
[
Hide
]Summary: The wmf options.
Module: aspose.imaging.imageoptions
Full Name: aspose.imaging.imageoptions.WmfOptions
Inheritance: IHasXmpData, IHasMetadata, MetafileOptions
Constructors
Name | Description |
---|---|
WmfOptions() | Initializes a new instance of the WmfOptions 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. |
compress | bool | r/w | Gets or sets a value indicating whether this ICompressedOptions is compressed. |
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 Xmp data. |
Methods
Name | Description |
---|---|
clone() | Creates a memberwise clone of this instance. |
Constructor: WmfOptions()
WmfOptions()
Initializes a new instance of the WmfOptions class
Method: clone()
clone()
Creates a memberwise clone of this instance.
Returns
Type | Description |
---|---|
ImageOptionsBase | A memberwise clone of this instance. |
Examples
The following example shows how to convert a wmz images to wmf fromat
import aspose.pycore as aspycore
from aspose.imaging import Image, SizeF
from aspose.imaging.imageoptions import WmfRasterizationOptions, WmfOptions
from os.path import join
file: str = "example.wmz"
base_folder: str = join("D:", "Compressed")
input_file: str = join(base_folder, file)
out_file: str = input_file + ".wmf"
with Image.load(input_file) as image:
obj_init = WmfRasterizationOptions()
obj_init.page_size = aspycore.cast(SizeF, image.size)
obj_init2 = WmfOptions()
obj_init2.vector_rasterization_options = obj_init
image.save(out_file, obj_init2)