|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IExport
Provides access to members that control the Export.
This interface contains the essential properties and methods for controlling an export object.
At ArcGIS 9, this interface is the replacement for the IExporter and IArcPressExporter interfaces.
IExport should be used in conjuction with one of the ten export CoClasses: ExportAI, ExportBMP, ExportEMF, ExportGIF, ExportJPEG, ExportPDF, ExportPNG, ExportPS, ExportSVG, and ExportTIFF.
The Export Active View sample demonstrates the basic use of this interface.
Exporting a map to a graphics export file involves a few basic steps:
Method Summary | |
---|---|
void |
cleanup()
Cleanup should clean all temporary files, free used memory, etc... |
void |
finishExporting()
Shuts down the Exporter. |
String |
getExportFileName()
The Export File Name. |
String |
getFilter()
Filter String used in the CFileDialog class. |
String |
getName()
The Name of the Exporter. |
IEnvelope |
getPixelBounds()
The Export Bounds in Pixels (The Pixel Bounds of the Export surface). |
int |
getPriority()
Exporter's priority - the order of appearance in the user interface. |
double |
getResolution()
The Export Resolution. |
void |
setExportFileName(String fileName)
The Export File Name. |
void |
setPixelBounds(IEnvelope pixelBounds)
The Export Bounds in Pixels (The Pixel Bounds of the Export surface). |
void |
setResolution(double res)
The Export Resolution. |
void |
setStepProgressorByRef(IStepProgressor rhs1)
Export will update a Progress Bar if StepProgressor is not NULL. |
void |
setTrackCancelByRef(ITrackCancel rhs1)
Export will react on Cancel if TrackCancel is not NULL. |
int |
startExporting()
Initializes the Exporter. |
Method Detail |
---|
String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFilter() throws IOException, AutomationException
This method is primarily used for defining the extension of the export file name within the Export Map dialog. The string contained in this value is a null-terminated pattern string that follows the standard for a Windows Open and Save As dialog filter. The value of this property can change according to the state of the export object. An ExportSVG object, for example, returns "SVG (*.svg)|*.svg" when its compression property is False, and "Compressed SVG (*.svgz)|*.svgz" when the compression property is True. This makes the Filter ideal for automatically assigning the appropriate file name extension for an export file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPriority() throws IOException, AutomationException
Primarily used by export dialogs for ordering the appearance of export formats in the 'Save As...' pulldown list. By ordering through this property, the export dialog can group similar formats together. For example, all raster export formats are grouped together in the 'Save As...' list.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStepProgressorByRef(IStepProgressor rhs1) throws IOException, AutomationException
rhs1
- A reference to a com.esri.arcgis.system.IStepProgressor (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setTrackCancelByRef(ITrackCancel rhs1) throws IOException, AutomationException
rhs1
- A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPixelBounds(IEnvelope pixelBounds) throws IOException, AutomationException
pixelBounds
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getPixelBounds() throws IOException, AutomationException
The PixelBounds represents the height and width of the export image in device units (usually pixels for a export file). To set up values to use in this property, get the height and width of the image draw to screen. Then multiply each dimension by the ratio of the output resolution to screen resolution.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExportFileName(String fileName) throws IOException, AutomationException
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getExportFileName() throws IOException, AutomationException
You must assign a value to the ExportFileName property before calling the IExport::StartExporting() method. There are two exceptions to this. If IExport is controlling a ExportBMP or ExportEMF object, you can assign an empty string to the ExportFileName property without an error being raised on StartExporting(). This is to allow cases where the application will use the export object as a intermediate container for a drawing, and won't be written to an export file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setResolution(double res) throws IOException, AutomationException
res
- The res (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getResolution() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int startExporting() throws IOException, AutomationException
The StartExporting method causes the export object to allocate memory for the export based on resolution, bit depth, and pixel bounds. The method returns a long that represents the hDC (Windows GDI Device Context handle) of the export object. After this method is called, the export object is ready to receive GDI draw instructions directed to its hDC.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void finishExporting() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void cleanup() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |