|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.IPixelBlockProxy
public class IPixelBlockProxy
Provides access to members that control a PixelBlock.
The Height and Width properties return the number of rows and columns in the PixelBlock.
The Planes argument returns the number of bands in the PixelBlock.
The PixelType property specifies the data type and bit depth of the pixels in the specified band.The SafeArray property specifies the variant SafeArray for the specified band. At ArcGIS 9.0 and later, this property returns SafeArray by value, not by reference like it does in ArcGIS 8.x. Your application, if only reads pixel values from SafeArray, will not be affected by this change. However, if your application involves modifying and writing pixel block to the band, you might experience a different behavior. The recommended fix is to use IPixelBlock3::PixelDataByRef method.
The GetVal method returns an individual value for the pixel specified by the band and pixel location input.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IPixelBlockProxy()
|
|
IPixelBlockProxy(Object obj)
|
protected |
IPixelBlockProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
int |
getBytesPerPixel()
The number of bytes per pixel for the PixelBlock. |
int |
getHeight()
The height of the PixelBlock in pixels. |
int |
getPixelType(int plane)
The pixel type of the PixelBlock. |
int |
getPlanes()
The number of pixel arrays contained in the PixelBlock. |
Object |
getSafeArray(int plane)
A variant SafeArray of pixels for a specified plane. |
Object |
getVal(int plane,
int x,
int y)
The value for a specified pixel. |
int |
getWidth()
The width of the PixelBlock in pixels. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
setPixelType(int plane,
int val)
The pixel type of the PixelBlock. |
void |
setSafeArray(int plane,
Object val)
A variant SafeArray of pixels for a specified plane. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IPixelBlockProxy()
public IPixelBlockProxy(Object obj) throws IOException
IOException
protected IPixelBlockProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public int getPlanes() throws IOException, AutomationException
getPlanes
in interface IPixelBlock
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
getWidth
in interface IPixelBlock
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
getHeight
in interface IPixelBlock
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPixelType(int plane) throws IOException, AutomationException
getPixelType
in interface IPixelBlock
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPixelType(int plane, int val) throws IOException, AutomationException
setPixelType
in interface IPixelBlock
plane
- The plane (in)val
- A com.esri.arcgis.geodatabase.rstPixelType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBytesPerPixel() throws IOException, AutomationException
getBytesPerPixel
in interface IPixelBlock
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getSafeArray(int plane) throws IOException, AutomationException
getSafeArray
in interface IPixelBlock
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSafeArray(int plane, Object val) throws IOException, AutomationException
setSafeArray
in interface IPixelBlock
plane
- The plane (in)val
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getVal(int plane, int x, int y) throws IOException, AutomationException
getVal
in interface IPixelBlock
plane
- The plane (in)x
- The x (in)y
- The y (in)
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 |