JavaTM Platform
Standard Ed. 6

java.awt.image
클래스 WritableRaster

java.lang.Object 
  상위를 확장 java.awt.image.Raster 
      상위를 확장 java.awt.image.WritableRaster


public class WritableRaster
extends Raster

이 클래스는, Raster 를 확장해 픽셀 기입 기능을 제공합니다. Raster 가 어떻게 픽셀을 포함할까에 대해서는, Raster 클래스의 설명을 참조해 주세요.  

이 클래스의 생성자 은 protected 입니다. WritableRaster 의 인스턴스를 생성하려면 , Raster 클래스의 createWritableRaster 팩토리 메소드의 어느쪽이든을 사용합니다.


필드의 개요
 
클래스 java.awt.image. Raster 로부터 상속된 필드
dataBuffer , height , minX , minY , numBands , numDataElements , parent , sampleModel , sampleModelTranslateX , sampleModelTranslateY , width
 
생성자 의 개요
protected WritableRaster (SampleModel  sampleModel, DataBuffer  dataBuffer, Point  origin)
          지정된 SampleModel 및 DataBuffer 를 가지는 WritableRaster 를 구축합니다.
protected WritableRaster (SampleModel  sampleModel, DataBuffer  dataBuffer, Rectangle  aRegion, Point  sampleModelTranslate, WritableRaster  parent)
          지정된 SampleModel, DataBuffer, 및 부모를 사용해 WritableRaster 를 구축합니다.
protected WritableRaster (SampleModel  sampleModel, Point  origin)
          지정된 SampleModel 를 가지는 WritableRaster 를 구축합니다.
 
메소드의 개요
 WritableRaster createWritableChild (int parentX, int parentY, int w, int h, int childMinX, int childMinY, int[] bandList)
          이 WritableRaster 의 DataBuffer 의 전부 또는 일부를 공유하는 새로운 WritableRaster 를 돌려줍니다.
 WritableRaster createWritableTranslatedChild (int childMinX, int childMinY)
          이 WritableRaster 와 같은 사이즈, SampleModel, 및 DataBuffer 로, 위치가 다른 WritableRaster 를 생성합니다.
 WritableRaster getWritableParent ()
          이 WritableRaster 의 부모의 WritableRaster (존재하는 경우), 또는 null 를 돌려줍니다.
 void setDataElements (int x, int y, int w, int h, Object  inData)
          픽셀 구형의 데이터를 TransferType 형의 프리미티브(primitive) 배열로부터 설정합니다.
 void setDataElements (int x, int y, Object  inData)
          1 개의 픽셀의 데이터를 transferType 형의 프리미티브(primitive) 배열로부터 설정합니다.
 void setDataElements (int x, int y, Raster  inRaster)
          픽셀의 구형의 데이터를 입력 Raster 로부터 설정합니다.
 void setPixel (int x, int y, double[] dArray)
          샘플의 double 배열을 입력으로서 DataBuffer 내의 픽셀을 설정합니다.
 void setPixel (int x, int y, float[] fArray)
          샘플의 float 배열을 입력으로서 사용해 DataBuffer 내의 픽셀을 설정합니다.
 void setPixel (int x, int y, int[] iArray)
          샘플의 int 배열을 입력으로서 사용해 DataBuffer 내의 픽셀을 설정합니다.
 void setPixels (int x, int y, int w, int h, double[] dArray)
          구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 double 배열로부터 설정합니다.
 void setPixels (int x, int y, int w, int h, float[] fArray)
          구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 float 배열로부터 설정합니다.
 void setPixels (int x, int y, int w, int h, int[] iArray)
          구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 int 배열로부터 설정합니다.
 void setRect (int dx, int dy, Raster  srcRaster)
          이 WritableRaster 에 Raster srcRaster 로부터 픽셀을 카피합니다.
 void setRect (Raster  srcRaster)
          이 WritableRaster 에 Raster srcRaster 로부터 픽셀을 카피합니다.
 void setSample (int x, int y, int b, double s)
          double 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다.
 void setSample (int x, int y, int b, float s)
          float 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다.
 void setSample (int x, int y, int b, int s)
          int 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다.
 void setSamples (int x, int y, int w, int h, int b, double[] dArray)
          지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 double 배열로부터 설정합니다.
 void setSamples (int x, int y, int w, int h, int b, float[] fArray)
          지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 float 배열로부터 설정합니다.
 void setSamples (int x, int y, int w, int h, int b, int[] iArray)
          지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 int 배열로부터 설정합니다.
 
클래스 java.awt.image. Raster 로부터 상속된 메소드
createBandedRaster , createBandedRaster , createBandedRaster , createChild , createCompatibleWritableRaster , createCompatibleWritableRaster , createCompatibleWritableRaster , createCompatibleWritableRaster , createInterleavedRaster , createInterleavedRaster , createInterleavedRaster , createPackedRaster , createPackedRaster , createPackedRaster , createPackedRaster , createRaster , createTranslatedChild , createWritableRaster , createWritableRaster , getBounds , getDataBuffer , getDataElements , getDataElements , getHeight , getMinX , getMinY , getNumBands , getNumDataElements , getParent , getPixel , getPixel , getPixel , getPixels , getPixels , getPixels , getSample , getSampleDouble , getSampleFloat , getSampleModel , getSampleModelTranslateX , getSampleModelTranslateY , getSamples , getSamples , getSamples , getTransferType , getWidth
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

WritableRaster

protected WritableRaster(SampleModel  sampleModel,
                         Point  origin)
지정된 SampleModel 를 가지는 WritableRaster 를 구축합니다. WritableRaster 는 좌상구석이 원점에서, 사이즈는 SampleModel 와 같습니다. WritableRaster 를 기술하기 위해서 충분한 크기의 DataBuffer 가 자동적으로 생성됩니다.

파라미터:
sampleModel - 레이아웃을 지정하는 SampleModel
origin - 원점을 지정하는 Point
예외:
RasterFormatException - origin.x + sampleModel.getWidth()origin.y + sampleModel.getHeight() 의 몇개의 계산으로, 정수형 오버플로우가 발생했다 경우

WritableRaster

protected WritableRaster(SampleModel  sampleModel,
                         DataBuffer  dataBuffer,
                         Point  origin)
지정된 SampleModel 및 DataBuffer 를 가지는 WritableRaster 를 구축합니다. WritableRaster 는 좌상구석이 원점에서, 사이즈는 SampleModel 와 같습니다. DataBuffer 는 초기화되지 않고, SampleModel 에 준거하고 있을 필요가 있습니다.

파라미터:
sampleModel - 레이아웃을 지정하는 SampleModel
dataBuffer - 이미지 데이터를 포함하는 DataBuffer
origin - 원점을 지정하는 Point
예외:
RasterFormatException - origin.x + sampleModel.getWidth()origin.y + sampleModel.getHeight() 의 몇개의 계산으로, 정수형 오버플로우가 발생했다 경우

WritableRaster

protected WritableRaster(SampleModel  sampleModel,
                         DataBuffer  dataBuffer,
                         Rectangle  aRegion,
                         Point  sampleModelTranslate,
                         WritableRaster  parent)
지정된 SampleModel, DataBuffer, 및 부모를 사용해 WritableRaster 를 구축합니다. aRegion 는 새로운 Raster 의 경계의 구형을 지정합니다. 기저 Raster 의 좌표계에 변환될 때, aRegion 는 기저 Raster 에 의해 포함 되고 있을 필요가 있습니다. 기저 Raster 는 Raster 의 상위 객체이며, 부모를 가지지 않습니다. sampleModelTranslate 은 새로운 Raster 의 sampleModelTranslateX 치 및 sampleModelTranslateY 치를 지정합니다. 이 생성자 은, 일반적으로, 다른 생성자 또는 create 메소드에 의해 불려 갑니다. 직접은 사용하지 않게 해 주세요.

파라미터:
sampleModel - 레이아웃을 지정하는 SampleModel
dataBuffer - 이미지 데이터를 포함하는 DataBuffer
aRegion - 이미지 영역을 지정하는 Rectangle
sampleModelTranslate - SampleModel 로부터 Raster 좌표에의 변환을 지정하는 Point
parent - 이 라스터의 부모 (존재하는 경우)
예외:
RasterFormatException - aRegion 의 폭 또는 높이가 제로 이하의 경우, 또는 aRegion.x + aRegion.widthaRegion.y + aRegion.height 의 몇개의 계산으로 정수형 오버플로우가 발생했을 경우
메소드의 상세

getWritableParent

public WritableRaster  getWritableParent()
이 WritableRaster 의 부모의 WritableRaster (존재하는 경우), 또는 null 를 돌려줍니다.

반환값:
WritableRaster 의 부모, 또는 null

createWritableTranslatedChild

public WritableRaster  createWritableTranslatedChild(int childMinX,
                                                    int childMinY)
이 WritableRaster 와 같은 사이즈, SampleModel, 및 DataBuffer 로, 위치가 다른 WritableRaster 를 생성합니다. 새로운 WritableRaster 는, getParent() 메소드 및 getWritableParent() 메소드로 액세스 가능한, 현재의 WritableRaster 에의 참조를 가집니다.

파라미터:
childMinX - 새로운 Raster 의 좌상구석의 X 좌표
childMinY - 새로운 Raster 의 좌상구석의 Y 좌표
반환값:
지정된 위치 이외는 이 WritableRaster 와 같다 WritableRaster
예외:
RasterFormatException - childMinX + this.getWidth()childMinY + this.getHeight() 의 몇개의 계산으로 정수형 오버플로우가 발생했을 경우

createWritableChild

public WritableRaster  createWritableChild(int parentX,
                                          int parentY,
                                          int w,
                                          int h,
                                          int childMinX,
                                          int childMinY,
                                          int[] bandList)
이 WritableRaster 의 DataBuffer 의 전부 또는 일부를 공유하는 새로운 WritableRaster 를 돌려줍니다. 새로운 WritableRaster 는, getParent() 메소드 및 getWritableParent() 메소드로 액세스 가능한, 현재의 WritableRaster 에의 참조를 가집니다.  

이 WritableRaster 의 좌표 공간에, parentX, parentY, width, height 의 각 파라미터에 의해 Rectangle 가 형성되어 공유되는 픽셀 영역을 나타냅니다. 이 Rectangle 가 현재의 WritableRaster 의 경계내에 없는 경우는, 에러가 throw 됩니다.  

새로운 WritableRaster 는 게다가 같은 평면상으로 현재의 WritableRaster 가 사용하는 좌표 체계와는 다른 좌표 체계로 변환할 수 있습니다. childMinX 파라미터와 childMinY 파라미터에 의해, 반환된 WritableRaster 의 좌상구석에 있는 픽셀의 새로운 좌표 (x, y)가 지정됩니다. 새로운 WritableRaster 내의 좌표 (childMinX, childMinY)는, 현재의 WritableRaster 내의 좌표 (parentX, parentY)와 같은 픽셀에 맵 됩니다.  

bandList 파라미터를 사용해, 현재의 WritableRaster 의 밴드의 부분집합만을, 경우에 따라서는 순서를 변경해 포함하는 새로운 WritableRaster 를 정의할 수 있습니다. bandList 가 null 의 경우는, 현재의 WritableRaster 의 모든 밴드가 현재와 같은 순서로 포함됩니다.  

현재의 WritableRaster 의 일부의 영역을 포함해, 좌표계와 밴드를 공유하는 새로운 WritableRaster 를 생성하려면 , childMinX 를 parentX 와 같은 값에, childMinY 를 parentY 와 같은 값에, bandList 를 null 에 각각 지정해, 이 메소드를 호출합니다.

파라미터:
parentX - 이 WritableRaster 의 좌표에서의 좌상구석의 X 좌표
parentY - 이 WritableRaster 의 좌표에서의 좌상구석의 Y 좌표
w - (parentX, parentY)로부터 시작되는 영역의 폭
h - (parentX, parentY)로부터 시작되는 영역의 높이
childMinX - 반환되는 WritableRaster 의 좌상구석의 X 좌표
childMinY - 반환되는 WritableRaster 의 좌상구석의 Y 좌표
bandList - 밴드 인덱스의 배열. 모든 밴드를 사용하는 경우는 null
반환값:
WritableRaster 의 모두, 또는 일부의 DataBuffer 를 공유하는 WritableRaster
예외:
RasterFormatException - 부분 영역이 라스터의 경계의 외측에 있는 경우
RasterFormatException - w 또는 h 의 어느쪽이든가 제로 이하의 경우, 또는 parentX + w,parentY + h, childMinX + w, childMinY + h 의 몇개의 계산으로 정수형 오버플로우가 발생했을 경우

setDataElements

public void setDataElements(int x,
                            int y,
                            Object  inData)
1 개의 픽셀의 데이터를 transferType 형의 프리미티브(primitive) 배열로부터 설정합니다. Java 2D(tm) API 에 의해 지원되고 있는 이미지 데이터의 경우는, DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, 또는 DataBuffer.TYPE_DOUBLE 의 어느 쪽인가에 됩니다. 배열내의 데이터는 팩 된 형식에서 반환되는 일도 있어, 그 경우, 데이터 전송의 효율이 오릅니다. 좌표가 경계내에 없는 경우, 또는 inData 가 픽셀 데이터를 포함하기 위해서 충분한 크기가 아닌 경우, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다. 입력 객체가 null 가 아니고, TransferType 의 배열 이외의 것을 참조하는 경우, ClassCastException 가 throw 됩니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
inData - getTransferType()에 의해 정의된 형태와 getNumDataElements()에 의해 정의된 길이를 가져, x, y 에 배치하는 픽셀 데이터를 포함하는 배열에의 객체 참조
예외:
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 inData 가 너무 작아 입력을 보관 유지할 수 없는 경우
관련 항목:
SampleModel.setDataElements(int, int, Object, DataBuffer)

setDataElements

public void setDataElements(int x,
                            int y,
                            Raster  inRaster)
픽셀의 구형의 데이터를 입력 Raster 로부터 설정합니다. 입력 Raster 는 이 WritableRaster 에 준거하고 있을 필요가 있습니다. 즉, 같은 수의 밴드를 가져, 대응하는 밴드의 샘플 있는 비트수가 같아, TransferType 및 NumDataElements 도 같아, 게다가 getDataElements/setDataElements 에 의해 사용되는 팩 방식이 같은 필요가 있습니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
inRaster - x, y 에 배치하는 데이터가 포함되고 있는 Raster
예외:
NullPointerException - inRaster 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우

setDataElements

public void setDataElements(int x,
                            int y,
                            int w,
                            int h,
                            Object  inData)
픽셀 구형의 데이터를 TransferType 형의 프리미티브(primitive) 배열로부터 설정합니다. Java 2D API 에 의해 지원되고 있는 이미지 데이터의 경우는, DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, 또는 DataBuffer.TYPE_DOUBLE 의 어느 쪽인가에 됩니다. 배열내의 데이터는 팩 된 형식에서 반환되는 일도 있어, 그 경우, 데이터 전송의 효율이 오릅니다. 좌표가 경계내에 없는 경우, 또는 inData 가 픽셀 데이터를 포함하기 위해서 충분한 크기가 아닌 경우, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다. 입력 객체가 null 가 아니고, TransferType 의 배열 이외의 것을 참조하는 경우, ClassCastException 가 throw 됩니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
inData - getTransferType()에 의해 정의된 형태를 가져, 길이가 w*h*getNumDataElements()로, x, y 와 x+w-1, y+h-1 의 사이에 배치하는 픽셀 데이터가 포함되고 있는 배열에의 객체 참조
예외:
NullPointerException - inData 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 inData 가 너무 작아 입력을 보관 유지할 수 없는 경우
관련 항목:
SampleModel.setDataElements(int, int, int, int, Object, DataBuffer)

setRect

public void setRect(Raster  srcRaster)
이 WritableRaster 에 Raster srcRaster 로부터 픽셀을 카피합니다. 주소가 이 라스터의 경계외가 되는 경우를 제외해, srcRaster 내의 각 픽셀은, 이 Raster 내의 같은 x, y 주소에 카피됩니다. srcRaster 는 이 WritableRaster 와 같은 수의 밴드를 가질 필요가 있습니다. 대응하는 전송처 샘플에, 전송원샘플이 단순하게 카피됩니다.  

전송원 및 전송처의 Raster 의 모든 샘플이 정수형으로, 사이즈가 32 비트 이하의 경우, 이 메소드의 호출은, 양쪽 모두의 Raster 로 유효한 모든 x, y 주소로 다음의 코드를 실행하는 것과 같은 결과가 됩니다.

       Raster srcRaster;
       WritableRaster dstRaster;
       for (int b = 0; b < srcRaster.getNumBands(); b++) {
           dstRaster.setSample(x, y, b, srcRaster.getSample(x, y, b));
       }
 
정수형의 전송원으로부터 정수형의 전송 먼저 카피가 실행되는 경우, 전송원샘플의 사이즈가 전송처 샘플의 사이즈보다 큰 밴드가 있으면(자), 전송원샘플의 상위 비트를 절약할 수 있습니다. 전송원샘플의 사이즈가 전송처 샘플의 사이즈보다 작은 밴드가 있으면(자), 전송처 샘플의 상위 비트에는, srcRaster 의 SampleModel 가 샘플을 부호 첨부의 수량으로서 취급할 때는 부호가 설정되어 부호 없음의 수량으로서 취급할 때는 제로가 설정됩니다.  

float 또는 double 의 전송원으로부터 정수형의 전송 먼저 카피가 실행되는 경우, 전송원샘플이 전송처의 형태에 캐스트 됩니다. 정수형의 전송원으로부터 float 또는 double 의 전송 먼저 카피되는 경우, 필요에 따라서, 상기의 정수형에 관한 규칙에 근거해 전송원이 최초로 32 비트의 정수형에 변환되어 float 또는 double 에 캐스트 됩니다.  

파라미터:
srcRaster - 픽셀의 카피원의 Raster
예외:
NullPointerException - srcRaster 가 null 의 경우

setRect

public void setRect(int dx,
                    int dy,
                    Raster  srcRaster)
이 WritableRaster 에 Raster srcRaster 로부터 픽셀을 카피합니다. (x+dx, y+dy)(이)가 이 라스터의 경계외가 되는 경우를 제외해, srcRaster 내의 각 주소 (x, y)에 대해, 대응하는 픽셀이 이 WritableRaster 내의 주소 (x+dx, y+dy)에 카피됩니다. srcRaster 는 이 WritableRaster 와 같은 수의 밴드를 가질 필요가 있습니다. 대응하는 전송처 샘플에, 전송원샘플이 단순하게 카피됩니다. 자세한 것은 setRect(Raster) 를 참조해 주세요.

파라미터:
dx - 카피의 src 공간으로부터 dst 공간에의 X 의 변환계수
dy - 카피의 src 공간으로부터 dst 공간에의 Y 의 변환계수
srcRaster - 픽셀의 카피원의 Raster
예외:
NullPointerException - srcRaster 가 null 의 경우

setPixel

public void setPixel(int x,
                     int y,
                     int[] iArray)
샘플의 int 배열을 입력으로서 사용해 DataBuffer 내의 픽셀을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
iArray - int 배열의 입력 샘플
예외:
NullPointerException - iArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 iArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setPixel

public void setPixel(int x,
                     int y,
                     float[] fArray)
샘플의 float 배열을 입력으로서 사용해 DataBuffer 내의 픽셀을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
fArray - float 배열의 입력 샘플
예외:
NullPointerException - fArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 fArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setPixel

public void setPixel(int x,
                     int y,
                     double[] dArray)
샘플의 double 배열을 입력으로서 DataBuffer 내의 픽셀을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
dArray - double 배열의 입력 샘플
예외:
NullPointerException - dArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 dArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      int[] iArray)
구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 int 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
iArray - 입력 int 픽셀 배열
예외:
NullPointerException - iArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 iArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      float[] fArray)
구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 float 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
fArray - 입력 float 픽셀 배열
예외:
NullPointerException - fArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 fArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      double[] dArray)
구형의 픽셀의 샘플 모든 것을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 double 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
dArray - 입력 double 픽셀 배열
예외:
NullPointerException - dArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표가 경계내에 존재하지 않는 경우, 또는 dArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setSample

public void setSample(int x,
                      int y,
                      int b,
                      int s)
int 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
b - 설정되는 밴드
s - 입력 샘플
예외:
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우

setSample

public void setSample(int x,
                      int y,
                      int b,
                      float s)
float 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
b - 설정되는 밴드
s - float 의 입력 샘플
예외:
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우

setSample

public void setSample(int x,
                      int y,
                      int b,
                      double s)
double 를 입력으로서 사용해, DataBuffer 내의 것 (x, y)에 위치하는 픽셀의, 지정된 밴드내의 샘플을 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 픽셀 위치의 X 좌표
y - 픽셀 위치의 Y 좌표
b - 설정되는 밴드
s - double 의 입력 샘플
예외:
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우

setSamples

public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       int[] iArray)
지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 int 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
b - 설정되는 밴드
iArray - 입력 int 의 샘플 배열
예외:
NullPointerException - iArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우, 또는 iArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setSamples

public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       float[] fArray)
지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 float 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
b - 설정되는 밴드
fArray - 입력 float 샘플 배열
예외:
NullPointerException - fArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우, 또는 fArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

setSamples

public void setSamples(int x,
                       int y,
                       int w,
                       int h,
                       int b,
                       double[] dArray)
지정된 구형 픽셀의 지정된 밴드의 샘플을, 배열 요소 마다 1 개의 샘플이 포함되고 있는 double 배열로부터 설정합니다. 좌표가 경계내에 없는 경우는, ArrayIndexOutOfBoundsException 가 throw 됩니다. 다만, 명시적인 경계 체크는 반드시 실행되지 않습니다.

파라미터:
x - 좌상의 픽셀 위치의 X 좌표
y - 좌상의 픽셀 위치의 Y 좌표
w - 픽셀 구형의 폭
h - 픽셀 구형의 높이
b - 설정되는 밴드
dArray - 입력 double 샘플 배열
예외:
NullPointerException - dArray 가 null 의 경우
ArrayIndexOutOfBoundsException - 좌표 또는 밴드 인덱스가 경계내에 없는 경우, 또는 dArray 가 너무 작아 입력을 보관 유지할 수 없는 경우

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.