ImageFormatInfo Class |
Namespace: Easymap.AddIn.Export
The ImageFormatInfo type exposes the following members.
| Name | Description | |
|---|---|---|
| ExportRoot |
The object which will be exported.
| |
| Filename |
The filename of the exported image
| |
| ImageDPI |
The DPI is used to calculate the size of the image in centimeter/inch. 72 dpi or 96 dpi is the screen resolution.
| |
| ImageFormat |
The image format used for the export
| |
| ImageHeight |
Height of the image in pixel. The width is calculated to preserve the aspect ratio.
|
var info = app.CurrentDocument.Export.CreateImageFormatInfo(ImageFormat.PNG); info.ExportRoot = app.CurrentDocument.CurrentSheet; info.ImageHeight = 1500; info.Filename = "c:\\image.png"; app.CurrentDocument.Export.ExportImage(info);
set app = CreateObject("EasyMap.Application") set doc = app.CurrentDocument set info = doc.Export.CreateImageFormatInfo(ImageFormat_PNG) set info.ExportRoot = doc.CurrentSheet.Window info.ImageHeight = 1500 info.Filename = "c:\image.png" doc.Export.ExportImage(info)