|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPixelBlock3
Provides access to members that control a PixelBlock.
The IPixelBlock3 interface provides all the functionality of IPixelBlock interface, plus more properties on mask based NoData and SafeArray handling.
Basically, there are two ways to work with NoData mask and pixel values. They are by value (PixelData and NoDataMask properties) and by reference (PixelDataByRef and NoDataMaskByRef). Normally passing pixel values by reference is recommented since it saves memory. However for Java and .Net, passing by value (PixelData) should be used.
Method Summary | |
---|---|
void |
clear(int plane)
Clears a given plane (sets to NoData). |
int |
getBytesPerPixel()
The number of bytes per pixel for the PixelBlock. |
int |
getHeight()
The height of the PixelBlock in pixels. |
Object |
getNoDataMask(int plane)
The NoData mask for a specified plane. |
Object |
getNoDataMaskByRef(int plane)
The NoData mask for a specified plane. |
Object |
getNoDataMaskVal(int plane,
int x,
int y)
Gets the NoData mask value for a specified pixel. |
Object |
getPixelData(int plane)
An array of pixels for a specified plane. |
Object |
getPixelDataByRef(int plane)
A pointer to an array of pixels for a specified plane. |
int |
getPixelType(int plane)
The pixel type of the PixelBlock. |
int |
getPlanes()
The number of pixel arrays contained in the PixelBlock. |
Object |
getVal(int plane,
int x,
int y)
The value for a specified pixel. |
int |
getWidth()
The width of the PixelBlock in pixels. |
boolean |
hasNoData(int plane)
Checks if this PixelBlock contains NoData. |
void |
mask(Object noData)
Generates NoData Mask using a given NoData value. |
void |
setNoDataMask(int plane,
Object pVal)
The NoData mask for a specified plane. |
void |
setPixelData(int plane,
Object pVal)
An array of pixels for a specified plane. |
void |
setPixelType(int plane,
int pVal)
The pixel type of the PixelBlock. |
Method Detail |
---|
int getPlanes() throws IOException, AutomationException
The Planes property returns the number of bands in the PixelBlock.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getWidth() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHeight() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPixelType(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPixelType(int plane, int pVal) throws IOException, AutomationException
plane
- The plane (in)pVal
- A com.esri.arcgis.geodatabase.rstPixelType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getBytesPerPixel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getPixelData(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPixelData(int plane, Object pVal) throws IOException, AutomationException
plane
- The plane (in)pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getPixelDataByRef(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getVal(int plane, int x, int y) throws IOException, AutomationException
The GetVal method returns an individual value for the pixel specified by the band and pixel location input.
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.void setNoDataMask(int plane, Object pVal) throws IOException, AutomationException
plane
- The plane (in)pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getNoDataMask(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getNoDataMaskByRef(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getNoDataMaskVal(int plane, int x, int y) throws IOException, AutomationException
The GetNoDataMaskVal property allows you to identify whether a specific pixel is NoData or not. Value 1 means this corresponding pixel has a value and 0 means this corresponding pixel is NoData
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.boolean hasNoData(int plane) throws IOException, AutomationException
The HasNoData property indicates whether the PixelBlock has NoData or not. True means it has NoData.
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clear(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void mask(Object noData) throws IOException, AutomationException
noData
- A Variant (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 |