|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IImageResult
Provides access to the Image Result Interface.
MapServer output is created using ExportMapImage on IMapServer and the following methods on IMapServerLayout: ExportLayout, ExportLegend, ExportNorthArrow and ExportScaleBar. SymbolImage on MapServerLegendClass is also an ImageResult. In order to control the size of an exported map image, IMapServerInit contains two properties: MaxImageHeight and MaxImageWidth . The default value for these properties is 2048 pixels.
Use IImageResult to access properties of MapServer output images.
Method Summary | |
---|---|
int |
getHeight()
The height of the image in pixels. |
byte[] |
getMimeData()
Binary data representing the generated image. |
double |
getReferenceDPI()
The device resolution of the image specified in the request (dots per inch). |
String |
getURL()
The URL of the generated image. |
int |
getWidth()
The width of the image in pixels. |
Method Detail |
---|
byte[] getMimeData() throws IOException, AutomationException
If MIME is specified a stream of bytes is returned to the client.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getURL() throws IOException, AutomationException
If URL is specified the image is stored as a file at the specified location (Physical Output Directory) and can be accessed by internet clients through the Virtual Output Directory.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHeight() throws IOException, AutomationException
In order to control the size of an exported map image, IMapServerInit contains two properties: MaxImageHeight and MaxImageWidth . The default value for these properties is 2048 pixels.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getWidth() throws IOException, AutomationException
In order to control the size of an exported map image, IMapServerInit contains two properties: MaxImageHeight and MaxImageWidth . The default value for these properties is 2048 pixels.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getReferenceDPI() 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 |