|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPixelBlock
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.
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
int getPlanes() throws IOException, AutomationException
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 val) throws IOException, AutomationException
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.int getBytesPerPixel() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getSafeArray(int plane) throws IOException, AutomationException
plane
- The plane (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSafeArray(int plane, Object val) throws IOException, AutomationException
plane
- The plane (in)val
- A Variant (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
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 |