com.esri.arcgis.datasourcesraster
Interface IPixelResampler

All Superinterfaces:
Serializable
All Known Subinterfaces:
IRGB32PixelResampler, ISimplePixelResampler
All Known Implementing Classes:
RGB32PixelResampler, SimplePixelResampler

public interface IPixelResampler
extends Serializable

Provides access to members that control a pixel resampler.

Remarks

IPixelResampler is a generic interface that is supported by a pixel resampler, which is used for RasterXformer.

The concrete pixel resampler is SimplePixelResampler, user can create a custom pixel resampler by implementing IPixelResampler interface.

Product Availability

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


Method Summary
 int getWindowSize()
          The resampling window size in terms of number of source pixels.
 boolean isDownSampling()
          Indicates if this is a down sampling only type of resampler.
 boolean isLinearScaling()
          Indicates if only linear scaling is necessary.
 boolean isSupportLinearScaling()
          Indicates if this resampler can accept simplified point array for simple linear scaling.
 void resample(int iCol, int iRow, int nCols, int nRows, _WKSPoint points, double ulx, double uly, double dx, double dy, IPixelBlock pSrcPixelBlock, IPixelBlock pDstPixelBlock)
          Resamples an input pixel block into an output pixel block.
 void setLinearScaling(boolean pLinearScaling)
          Indicates if only linear scaling is necessary.
 

Method Detail

isSupportLinearScaling

boolean isSupportLinearScaling()
                               throws IOException,
                                      AutomationException
Indicates if this resampler can accept simplified point array for simple linear scaling.

Product Availability

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

Returns:
The pSupportLinearScaling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isLinearScaling

boolean isLinearScaling()
                        throws IOException,
                               AutomationException
Indicates if only linear scaling is necessary.

Product Availability

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

Returns:
The pLinearScaling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLinearScaling

void setLinearScaling(boolean pLinearScaling)
                      throws IOException,
                             AutomationException
Indicates if only linear scaling is necessary.

Product Availability

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

Parameters:
pLinearScaling - The pLinearScaling (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWindowSize

int getWindowSize()
                  throws IOException,
                         AutomationException
The resampling window size in terms of number of source pixels.

Product Availability

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

Returns:
The pNumPixels
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDownSampling

boolean isDownSampling()
                       throws IOException,
                              AutomationException
Indicates if this is a down sampling only type of resampler.

Product Availability

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

Returns:
The pDownSampling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

resample

void resample(int iCol,
              int iRow,
              int nCols,
              int nRows,
              _WKSPoint points,
              double ulx,
              double uly,
              double dx,
              double dy,
              IPixelBlock pSrcPixelBlock,
              IPixelBlock pDstPixelBlock)
              throws IOException,
                     AutomationException
Resamples an input pixel block into an output pixel block.

Product Availability

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

Parameters:
iCol - The iCol (in)
iRow - The iRow (in)
nCols - The nCols (in)
nRows - The nRows (in)
points - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
ulx - The ulx (in)
uly - The uly (in)
dx - The dx (in)
dy - The dy (in)
pSrcPixelBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
pDstPixelBlock - A reference to a com.esri.arcgis.geodatabase.IPixelBlock (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.