KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > awt > image > SampleModel

java.awt.image
Class SampleModel

java.lang.Object
  extended by java.awt.image.SampleModel
Direct Known Subclasses:
ComponentSampleModel, MultiPixelPackedSampleModel, SinglePixelPackedSampleModel
See Also:
Top Examples, Source Code, DataBuffer, Raster, PixelInterleavedSampleModel, BandedSampleModel

public abstract SampleModel createCompatibleSampleModel(int w,
                                                        int h)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract DataBuffer createDataBuffer()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract SampleModel createSubsetSampleModel(int[] bands)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int dataType
See Also:
DataBuffer
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public Object getDataElements(int x,
                              int y,
                              int w,
                              int h,
                              Object obj,
                              DataBuffer data)
See Also:
setDataElements(int, int, int, int, Object, DataBuffer), getTransferType(), getNumDataElements(), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract Object getDataElements(int x,
                                       int y,
                                       Object obj,
                                       DataBuffer data)
See Also:
setDataElements(int, int, Object, DataBuffer), getTransferType(), getNumDataElements(), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getDataType()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getHeight()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getNumBands()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[736]_
By mccarthyrm { at } mcom { dot } cit { dot } ie on 2005/05/12 23:55:23  Rate
int [  ]  pxValue = new int [ wr.getNumBands (  )  ] ;

public abstract int getNumDataElements()
See Also:
getTransferType(), setDataElements(int, int, int, int, Object, DataBuffer), setDataElements(int, int, Object, DataBuffer), getDataElements(int, int, int, int, Object, DataBuffer), getDataElements(int, int, Object, DataBuffer)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double[] getPixel(int x,
                         int y,
                         double[] dArray,
                         DataBuffer data)
See Also:
setPixel(int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  




public float[] getPixel(int x,
                        int y,
                        float[] fArray,
                        DataBuffer data)
See Also:
setPixel(int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getPixel(int x,
                      int y,
                      int[] iArray,
                      DataBuffer data)
See Also:
setPixel(int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double[] getPixels(int x,
                          int y,
                          int w,
                          int h,
                          double[] dArray,
                          DataBuffer data)
See Also:
setPixels(int, int, int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float[] getPixels(int x,
                         int y,
                         int w,
                         int h,
                         float[] fArray,
                         DataBuffer data)
See Also:
setPixels(int, int, int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getPixels(int x,
                       int y,
                       int w,
                       int h,
                       int[] iArray,
                       DataBuffer data)
See Also:
setPixels(int, int, int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getSample(int x,
                              int y,
                              int b,
                              DataBuffer data)
See Also:
setSample(int, int, int, int, DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double getSampleDouble(int x,
                              int y,
                              int b,
                              DataBuffer data)
See Also:
ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float getSampleFloat(int x,
                            int y,
                            int b,
                            DataBuffer data)
See Also:
ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public double[] getSamples(int x,
                           int y,
                           int w,
                           int h,
                           int b,
                           double[] dArray,
                           DataBuffer data)
See Also:
setSamples(int, int, int, int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public float[] getSamples(int x,
                          int y,
                          int w,
                          int h,
                          int b,
                          float[] fArray,
                          DataBuffer data)
See Also:
setSamples(int, int, int, int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int[] getSamples(int x,
                        int y,
                        int w,
                        int h,
                        int b,
                        int[] iArray,
                        DataBuffer data)
See Also:
setSamples(int, int, int, int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int[] getSampleSize()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract int getSampleSize(int band)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int getTransferType()
See Also:
DataBuffer, getNumDataElements(), setDataElements(int, int, int, int, Object, DataBuffer), setDataElements(int, int, Object, DataBuffer), getDataElements(int, int, int, int, Object, DataBuffer), getDataElements(int, int, Object, DataBuffer)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public final int getWidth()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int height
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int numBands
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public SampleModel(int dataType,
                   int w,
                   int h,
                   int numBands)
See Also:
IllegalArgumentException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setDataElements(int x,
                            int y,
                            int w,
                            int h,
                            Object obj,
                            DataBuffer data)
See Also:
getDataElements(int, int, int, int, Object, DataBuffer), getTransferType(), getNumDataElements(), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void setDataElements(int x,
                                     int y,
                                     Object obj,
                                     DataBuffer data)
See Also:
getDataElements(int, int, Object, DataBuffer), getTransferType(), getNumDataElements(), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixel(int x,
                     int y,
                     double[] dArray,
                     DataBuffer data)
See Also:
getPixel(int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixel(int x,
                     int y,
                     float[] fArray,
                     DataBuffer data)
See Also:
getPixel(int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixel(int x,
                     int y,
                     int[] iArray,
                     DataBuffer data)
See Also:
getPixel(int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      double[] dArray,
                      DataBuffer data)
See Also:
getPixels(int, int, int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      float[] fArray,
                      DataBuffer data)
See Also:
getPixels(int, int, int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      int[] iArray,
                      DataBuffer data)
See Also:
getPixels(int, int, int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSample(int x,
                      int y,
                      int b,
                      double s,
                      DataBuffer data)
See Also:
getSample(int, int, int, DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSample(int x,
                      int y,
                      int b,
                      float s,
                      DataBuffer data)
See Also:
getSample(int, int, int, DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public abstract void setSample(int x,
                               int y,
                               int b,
                               int s,
                               DataBuffer data)
See Also:
getSample(int, int, int, DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       double[] dArray,
                       DataBuffer data)
See Also:
getSamples(int, int, int, int, int, double[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       float[] fArray,
                       DataBuffer data)
See Also:
getSamples(int, int, int, int, int, float[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       int[] iArray,
                       DataBuffer data)
See Also:
getSamples(int, int, int, int, int, int[], DataBuffer), ArrayIndexOutOfBoundsException, NullPointerException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


protected int width
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags