com.esri.arcgis.datasourcesraster
Class RGB32PixelResampler

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.RGB32PixelResampler
All Implemented Interfaces:
IPixelResampler, IRGB32PixelResampler, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class RGB32PixelResampler
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IPixelResampler, IRGB32PixelResampler

A 32-bit RGB(A) pixel resampler class.

Product Availability

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

See Also:
Serialized Form

Constructor Summary
RGB32PixelResampler()
          Constructs a RGB32PixelResampler using ArcGIS Engine.
RGB32PixelResampler(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RGB32PixelResampler theRGB32PixelResampler = (RGB32PixelResampler) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 Object getBackground()
          The background value.
static String getClsid()
          getClsid.
 int getResamplingMethod()
          The resampling method.
 int getWindowSize()
          The resampling window size in terms of number of source pixels.
 int hashCode()
          the hashcode for this object
 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 setBackground(Object pBackground)
          The background value.
 void setLinearScaling(boolean pLinearScaling)
          Indicates if only linear scaling is necessary.
 void setResamplingMethod(int pMethod)
          The resampling method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

RGB32PixelResampler

public RGB32PixelResampler()
                    throws IOException,
                           UnknownHostException
Constructs a RGB32PixelResampler using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

RGB32PixelResampler

public RGB32PixelResampler(Object obj)
                    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
RGB32PixelResampler theRGB32PixelResampler = (RGB32PixelResampler) obj;

Construct a RGB32PixelResampler using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to RGB32PixelResampler.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

isSupportLinearScaling

public 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.

Specified by:
isSupportLinearScaling in interface IPixelResampler
Returns:
The pSupportLinearScaling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isLinearScaling

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

Product Availability

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

Specified by:
isLinearScaling in interface IPixelResampler
Returns:
The pLinearScaling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLinearScaling

public 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.

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

getWindowSize

public 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.

Specified by:
getWindowSize in interface IPixelResampler
Returns:
The pNumPixels
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDownSampling

public 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.

Specified by:
isDownSampling in interface IPixelResampler
Returns:
The pDownSampling
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

resample

public 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.

Specified by:
resample in interface IPixelResampler
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.

getResamplingMethod

public int getResamplingMethod()
                        throws IOException,
                               AutomationException
The resampling method.

Product Availability

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

Specified by:
getResamplingMethod in interface IRGB32PixelResampler
Returns:
A com.esri.arcgis.geodatabase.rstResamplingTypes constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setResamplingMethod

public void setResamplingMethod(int pMethod)
                         throws IOException,
                                AutomationException
The resampling method.

Product Availability

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

Specified by:
setResamplingMethod in interface IRGB32PixelResampler
Parameters:
pMethod - A com.esri.arcgis.geodatabase.rstResamplingTypes constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getBackground

public Object getBackground()
                     throws IOException,
                            AutomationException
The background value.

Product Availability

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

Specified by:
getBackground in interface IRGB32PixelResampler
Returns:
A Variant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBackground

public void setBackground(Object pBackground)
                   throws IOException,
                          AutomationException
The background value.

Product Availability

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

Specified by:
setBackground in interface IRGB32PixelResampler
Parameters:
pBackground - A Variant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.