ArcObjects Library Reference (Carto)  

IRasterLayer Interface

Provides access to members that create or modify a raster layer.

Product Availability

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

Members

Description
Read-only property AreaOfInterest The default area of interest for the layer.
Read-only property BandCount Number of bands in the layer.
Read/write property Cached Indicates if the layer needs its own display cache.
Read-only property ColumnCount Number of columns in the layer.
Method CreateFromDataset Creates a layer from a RasterDataset object.
Method CreateFromFilePath Creates a layer from a file path to raster data.
Method CreateFromRaster Creates a layer from a Raster object.
Read-only property DataFrameExtent Extent of the dataframe that contains the layer.
Read/write property DisplayResolutionFactor Display resolution factor. Factor value is expressed as a percentage between 0 and 100.
Method Draw Draws the layer to the specified display for the given draw phase.
Read-only property FilePath Filepath of the data source.
Read/write property MaximumScale Maximum scale (representative fraction) at which the layer will display.
Read/write property MinimumScale Minimum scale (representative fraction) at which the layer will display.
Read/write property Name Layer name.
Read/write property PrimaryField Layer's primary field.
Read/write property PyramidPresent Indicates if pyramids are present for the layer.
Read-only property Raster Layer's Raster object.
Read/write property Renderer Layer's renderer.
Read-only property RowCount Number of rows in the layer.
Read/write property ShowResolution Indicates if the raster resolution should be displayed in the Table of Contents.
Read/write property ShowTips Indicates if the layer shows map tips.
Write-only property SpatialReference Spatial reference for the layer.
Read-only property SupportedDrawPhases Supported draw phases.
Read-only property TipText Map tip text at the specified location.
Read-only property Valid Indicates if the layer is currently valid.
Read/write property Visible Indicates if the layer is currently visible.
Read/write property VisibleExtent Visible extent of the layer in the data frame.

Inherited Interfaces

Interfaces Description
ILayer Provides access to members that work with all layers.

CoClasses that implement IRasterLayer

CoClasses and Classes Description
ImageServerLayer Image server layer source and display options.
RasterLayer Raster layer source and display options.
WCSLayer WCS layer source and display options.

Remarks

The RasterLayer must be initialized with data before it can be used. When the layer is initialized, a default renderer is selected for the dataset based on the number of bands, statistics, and whether a colormap or other table exists for the data. Other internal properties of the layer are also set at this time.