public class StdPicture extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, Picture, IPicture
Constructor and Description |
---|
StdPicture()
Constructs a StdPicture using ArcGIS Engine.
|
StdPicture(java.lang.Object obj)
Construct a StdPicture using a reference to such an object returned from ArcGIS Engine or Server.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
int |
getAttributes()
getAttributes
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getCurDC()
getCurDC
|
int |
getHandle()
getHandle
|
int |
getHeight()
getHeight
|
int |
getHPal()
getHPal
|
short |
getType()
getType
|
int |
getWidth()
getWidth
|
int |
hashCode()
the hashcode for this object
|
boolean |
isKeepOriginalFormat()
isKeepOriginalFormat
|
void |
pictureChanged()
pictureChanged
|
void |
render(int hdc,
int x,
int y,
int cx,
int cy,
int xSrc,
int ySrc,
int cxSrc,
int cySrc,
int prcWBounds)
render
|
void |
saveAsFile(int pstm,
boolean fSaveMemCopy,
int[] pcbSize)
saveAsFile
|
void |
selectPicture(int hdcIn,
int[] phdcOut,
int[] phbmpOut)
selectPicture
|
void |
setHandle(int rhs)
setHandle
|
void |
setHdc(int hdc)
setHdc
|
void |
setHeight(int rhs)
setHeight
|
void |
setHPal(int rhs)
setHPal
|
void |
setKeepOriginalFormat(boolean pfkeep)
setKeepOriginalFormat
|
void |
setType(short rhs)
setType
|
void |
setWidth(int rhs)
setWidth
|
java.awt.Image |
toImage()
Converts this Picture to a Java Image
|
public StdPicture() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic StdPicture(java.lang.Object obj) throws java.io.IOException
obj
to StdPicture
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problems
StdPicture theStdPicture = (StdPicture) obj;
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getHandle() throws java.io.IOException, AutomationException
getHandle
in interface IPicture
getHandle
in interface Picture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setHandle(int rhs) throws java.io.IOException, AutomationException
setHandle
in interface Picture
rhs
- The rhs (A COM typedef) )java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getHPal() throws java.io.IOException, AutomationException
getHPal
in interface IPicture
getHPal
in interface Picture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setHPal(int rhs) throws java.io.IOException, AutomationException
setHPal
in interface IPicture
setHPal
in interface Picture
rhs
- The rhs (A COM typedef) )java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public short getType() throws java.io.IOException, AutomationException
getType
in interface IPicture
getType
in interface Picture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setType(short rhs) throws java.io.IOException, AutomationException
setType
in interface Picture
rhs
- The rhs )java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws java.io.IOException, AutomationException
getWidth
in interface IPicture
getWidth
in interface Picture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setWidth(int rhs) throws java.io.IOException, AutomationException
setWidth
in interface Picture
rhs
- The rhs (A COM typedef) )java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws java.io.IOException, AutomationException
getHeight
in interface IPicture
getHeight
in interface Picture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setHeight(int rhs) throws java.io.IOException, AutomationException
setHeight
in interface Picture
rhs
- The rhs (A COM typedef) )java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void render(int hdc, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, int prcWBounds) throws java.io.IOException, AutomationException
render
in interface IPicture
render
in interface Picture
hdc
- The hdc (in)x
- The x (in)y
- The y (in)cx
- The cx (in)cy
- The cy (in)xSrc
- The xSrc (A COM typedef) (in)ySrc
- The ySrc (A COM typedef) (in)cxSrc
- The cxSrc (A COM typedef) (in)cySrc
- The cySrc (A COM typedef) (in)prcWBounds
- A COM void* (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getCurDC() throws java.io.IOException, AutomationException
getCurDC
in interface IPicture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void selectPicture(int hdcIn, int[] phdcOut, int[] phbmpOut) throws java.io.IOException, AutomationException
selectPicture
in interface IPicture
hdcIn
- The hdcIn (in)phdcOut
- The phdcOut (out: use single element array)phbmpOut
- The phbmpOut (A COM typedef) (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isKeepOriginalFormat() throws java.io.IOException, AutomationException
isKeepOriginalFormat
in interface IPicture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setKeepOriginalFormat(boolean pfkeep) throws java.io.IOException, AutomationException
setKeepOriginalFormat
in interface IPicture
pfkeep
- The pfkeep (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void pictureChanged() throws java.io.IOException, AutomationException
pictureChanged
in interface IPicture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void saveAsFile(int pstm, boolean fSaveMemCopy, int[] pcbSize) throws java.io.IOException, AutomationException
saveAsFile
in interface IPicture
pstm
- A COM void* (in)fSaveMemCopy
- The fSaveMemCopy (in)pcbSize
- The pcbSize (out: use single element array)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getAttributes() throws java.io.IOException, AutomationException
getAttributes
in interface IPicture
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setHdc(int hdc) throws java.io.IOException, AutomationException
setHdc
in interface IPicture
hdc
- The hdc (A COM typedef) (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.