com.esri.arcgis.datasourcesraster
Class RasterPicture

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RasterPicture
All Implemented Interfaces:
IRasterPicture, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RasterPicture
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IRasterPicture

A lightweight object for displaying some raster formats in a simple manner.

Remarks

The RasterPicture object can load a raster into a Picture object, such as that exposed by a PictureBox control.

The RasterPicture object supports these formats: JPEG, GIF, TIFF, EMF, and PNG. The picture can only be displayed at its true resolution, with each raster pixel mapping to a single pixel on the display.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
RasterPicture()
          Constructs a RasterPicture using ArcGIS Engine.
RasterPicture(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterPicture theRasterPicture = (RasterPicture) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 IColor getTransparentColor()
          The transparent color if there is any.
 int hashCode()
          the hashcode for this object
 IPicture loadPicture(String fileName)
          Loads the picture.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RasterPicture

public RasterPicture()
              throws IOException,
                     UnknownHostException
Constructs a RasterPicture using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RasterPicture

public RasterPicture(Object obj)
              throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RasterPicture theRasterPicture = (RasterPicture) obj;

Construct a RasterPicture using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RasterPicture.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

loadPicture

public IPicture loadPicture(String fileName)
                     throws IOException,
                            AutomationException
Loads the picture.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
loadPicture in interface IRasterPicture
Parameters:
fileName - The fileName (in)
Returns:
A reference to a com.esri.arcgis.support.ms.stdole.IPicture
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTransparentColor

public IColor getTransparentColor()
                           throws IOException,
                                  AutomationException
The transparent color if there is any.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getTransparentColor in interface IRasterPicture
Returns:
A reference to a com.esri.arcgis.display.IColor
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.