IRasterEdit Interface

Provides access to members that control pixel block level editing operations.

Description

IRasterEdit allows you to modify the pixel values in a Raster usingPixelBlocks. Refresh after you call Write to flush the changes.

When editing raster in Enterprise geodatabase or File geodatabase, the NoData is mask based, not pixel value based, if you want to edit NoData pixels (either set a value pixel to a NoData pixel or a NoData pixel to be a value pixel), IPixelBlock3.NoDataMask should be used to flag the NoData pixels.

Members

Name Description
Method CanEdit Checks if this Raster can be edited.
Method Erase Erases a PixelBlock starting at a given Top-Left corner.
Method Refresh Refreshes the associated RasterDataset.
Method Write Writes a PixelBlock starting at a given Top-Left corner.

IRasterEdit.CanEdit Method

Checks if this Raster can be edited.

Public Function CanEdit ( _
) As Boolean
public bool CanEdit (
);

IRasterEdit.Erase Method

Erases a PixelBlock starting at a given Top-Left corner.

Public Sub Erase ( _
    ByVal pTlc As IPnt, _
    ByVal pPixelBlock As IPixelBlock _
)
public void Erase (
    IPnt pTlc,
    IPixelBlock pPixelBlock
);

IRasterEdit.Refresh Method

Refreshes the associated RasterDataset.

Public Sub Refresh ( _
)
public void Refresh (
);

IRasterEdit.Write Method

Writes a PixelBlock starting at a given Top-Left corner.

Public Sub Write ( _
    ByVal pTlc As IPnt, _
    ByVal pPixelBlock As IPixelBlock _
)
public void Write (
    IPnt pTlc,
    IPixelBlock pPixelBlock
);

Classes that implement IRasterEdit

Classes Description
Raster An in-memory representation of a dynamic raster that can perform resampling and reprojection.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.