asposewordscloud
Version:
Aspose.Words Cloud SDK for Node.js
63 lines (62 loc) • 3.07 kB
TypeScript
import { AttributeInfo } from '../internal/attributeInfo';
import { ModelInterface } from './modelInterface';
export declare const importsMapMetafileRenderingOptionsData: {};
/**
* Container class for options of metafile rendering.
*/
export declare class MetafileRenderingOptionsData implements ModelInterface {
/**
* Attribute type map
*/
static attributeTypeMap: Array<AttributeInfo>;
/**
* Returns attribute type map
*/
static getAttributeTypeMap(): AttributeInfo[];
/**
* Gets or sets the option that controls how EMF+ Dual metafiles should be rendered.
*/
emfPlusDualRenderingMode: MetafileRenderingOptionsData.EmfPlusDualRenderingModeEnum;
/**
* Gets or sets a value indicating whether the raster operations should be emulated.
* Specific raster operations could be used in metafiles. They can not be rendered directly to vector graphics. Emulating raster operations requires partial rasterization of the resulting vector graphics which may affect the metafile rendering performance. When this value is set to true, Aspose.Words emulates the raster operations. The resulting output maybe partially rasterized and performance might be slower. When this value is set to false, Aspose.Words does not emulate the raster operations. When Aspose.Words encounters a raster operation in a metafile it fallbacks to rendering the metafile into a bitmap by using the operating system. This option is used only when metafile is rendered as vector graphics. The default value is true.
*/
emulateRasterOperations: boolean;
/**
* Gets or sets a value determining whether metafile rendering emulates the display of the metafile according to the size on page
* or the display of the metafile in its default size.
*/
emulateRenderingToSizeOnPage: boolean;
/**
* Gets or sets the resolution in pixels per inch for the emulation of metafile rendering to the size on page.
* This option is used only when EmulateRenderingToSizeOnPage is set to true.The default value is 96. This is a default display resolution. I.e. metafile rendering will emulate the display of
* the metafile in MS Word with a 100% zoom factor.
*/
emulateRenderingToSizeOnPageResolution: number;
/**
* Gets or sets the option that controls how metafile images should be rendered.
*/
renderingMode: MetafileRenderingOptionsData.RenderingModeEnum;
/**
* Gets or sets the flag, that controls how WMF metafiles with embedded EMF metafiles should be rendered.
*/
useEmfEmbeddedToWmf: boolean;
constructor(init?: Partial<MetafileRenderingOptionsData>);
collectFilesContent(_resultFilesContent: Array<any>): void;
validate(): void;
}
/**
* Enums for MetafileRenderingOptionsData
*/
export declare namespace MetafileRenderingOptionsData {
enum EmfPlusDualRenderingModeEnum {
EmfPlusWithFallback,
EmfPlus,
Emf
}
enum RenderingModeEnum {
VectorWithFallback,
Vector,
Bitmap
}
}