ArcObjects Library Reference (DataSourcesRaster)  

IRasterBand Interface

Provides access to members that control a raster band object.

Product Availability

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

Members

Description
Read-only property AttributeTable The attribute table of this raster band.
Read-only property Bandname The name of this raster band.
Method CanCopy Returns true if this dataset can be copied.
Read-only property ClassNames The class names (titles).
Read-only property Colormap The colormap of this raster band.
Method ComputeStatsAndHist Calculates statistics and histogram if not previously stored.
Read/write property ContrastTable The contrast look-up table of this band.
Method Copy Copies this raster band to a new dataset with the specified name.
Read-only property DirectlyOpened Indicates if the band was opened directly.
Method HasColormap Indicates if this band has a colormap.
Method HasStatistics Indicates if this band has statistics.
Method HasTable Indicates if this band has an attribute table.
Read-only property Histogram The histogram of this raster band.
Read-only property RasterDataset The RasterDataset associated with this raster band.
Read/write property RepresentationType The suggested representation type.
Read-only property Statistics The statistics of this raster band.

CoClasses that implement IRasterBand

CoClasses and Classes Description
RasterBand A representation of a single band of a raster dataset on disk.

Remarks

IRasterBand interface provides access to statistics, histogram, raster attribute table, and colormap of the raster band.

The RasterDataset method returns a reference to the RasterDataset that contains this band.

The AttributeTable method returns a table if the raster band contains, or calculates a virtual table if the number of unique values of the raster band is less than 2048. The raster table can not be modified using ITable interface.

The ComputeStatsAndHist method calculates statistics and a histogram for the band.

The HasStatistics, HasHistogram, and HasColormap methods set the output parameter to True if the band contains a histogram, colormap, or statistics and False if the band does not.

 

See Also

IRasterPyramid3 Interface

.NET Snippets

Create TrigOp Tan Raster | Create DistanceOp Cost Back Link Raster | Create DistanceOp Cost Distance Raster | Create TrigOp CosH Raster | Create DistanceOp EucDistanceFull Direction Raster | Create NeighborhoodOp Block Statistics Raster | Create DistanceOp EucAllocation Raster | Create LogicalOp Combinatorial OR Raster | Create MathOp Round Down Raster | Create MathOp Square Root Raster | Create DistanceOp Cost Path Raster | Create MathOp Round Up Raster | Create TrigOp Cos Raster | Create DistanceOp CostDistanceFull Cost Allocation Raster | Create BitwiseOp Left Shift Raster | Create ExtractOp Circle Raster | Create HydrologyOp Basin Raster | Create MathOp ABS Raster | Create ExtractionOp Attribute Raster | Create TrigOp Sin Raster | Create TrigOp ATanH Raster | Create LogicalOp Boolean XOR Raster | Create TrigOp ACosH Raster | Create TrigOp TanH Raster | Create TrigOp ATan2 Raster | Create BitwiseOp NOT Raster | Create GeneralizeOp Boundary Clean Raster | Create DistanceOp CostDistanceFull Least Accumulative Cost Raster | Create TrigOp ATan Raster | Create TrigOp ASin Raster | Create BitwiseOp AND Raster | Create LogicalOp Boolean OR Raster | Create DistanceOp Corridor Raster | Create DistanceOp EucDirection Raster | Create LogicalOp Combinatorial XOR Raster | Create LogicalOp Combinatorial AND Raster | Create DistanceOp EucDistanceFull Distance Raster | Create LogicalOp Boolean AND Raster | Create TrigOp ACos Raster | Create LocalOp Combine Raster | Create LogicalOp Boolean NOT Raster | Create DistanceOp CostDistanceFull Backlink Raster | Create ConditionalOp Con Raster | Create BitwiseOp Right Shift Raster | Create DistanceOp Cost Allocation Raster | Create TrigOp ASinH Raster | Create MathOp Times Raster | Create DistanceOp EucDistanceFull Allocation Raster | Create GeneralizeOp Aggregate Raster | Create MathOp Square Raster | Create TrigOp SinH Raster | Create BitwiseOp OR Raster |

.NET Samples

Create a custom default raster catalog renderer (Code Files: CustomRasterCatalogRenderer_VBNET) | Create a custom default raster renderer (Code Files: RasterRendererMaker_1bit_TIFF_VBNET) |

.NET Related Topics

DataSourcesRaster | Geodatabase | Handling multiband output | How to add or remove a color map from a raster dataset | How to create a raster dataset | How to save and load color maps | Performing a spatial analysis operation using objects |