JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.awt.image
Ŭ·¡½º WritableRaster

java.lang.Object 
  |
  +--java.awt.image.Raster 
        |
        +--java.awt.image.WritableRaster

public class WritableRaster
extends Raster

ÀÌ Å¬·¡½º´Â Raster ¸¦ È®ÀåÇØ Çȼ¿ ±âÀÔ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. Raster °¡ ¾î¶»°Ô Çȼ¿À» ÀúÀåÇұ ´ëÇØ¼­´Â Raster Ŭ·¡½ºÀÇ ¼³¸íÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.

ÀÌ Å¬·¡½ºÀÇ constructor Àº 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 ÇüÀÇ ¿ø½ÃÀû ¹è¿­·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù.
 void setDataElements (int x, int y, Object  inData)
          1 °³ÀÇ Çȼ¿ÀÇ µ¥ÀÌÅ͸¦ transferType ÇüÀÇ ¿ø½ÃÀû ¹è¿­·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù.
 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 ÀÇ °æ°èÀÇ ±¸ÇüÀ» ÁöÁ¤ÇÕ´Ï´Ù. aRegion ´Â ±âÀú Raster ÀÇ ÁÂÇ¥ ü°è¿¡ º¯È¯µÇ¾úÀ» ¶§¿¡, ±âÀú Raster ¿¡ ÀÇÇØ Æ÷ÇÔ µÇÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù (±âÀú Raster ´Â Raster ÀÇ »óÀ§ ¿ÀºêÁ§Æ®À̸ç, ºÎ¸ð¸¦ °¡ÁöÁö ¾Ê´Â´Ù). sampleModelTranslate ¿¡´Â »õ·Î¿î Raster ÀÇ sampleModelTranslateX ¿Í sampleModelTranslateY ÀÇ °ªÀ» ÁöÁ¤ÇÕ´Ï´Ù. ÀÌ constructor Àº Åë»óº°ÀÇ constructor , ¶Ç´Â »ý¼º ¸Þ¼Òµå·ÎºÎÅÍ È£ÃâÇϵµ·Ï(µíÀÌ) ÇØ, Á÷Á¢ÀûÀÎ »ç¿ëÀº ÇÇÇØ ÁÖ¼¼¿ä.

ÆÄ¶ó¹ÌÅÍ:
sampleModel - ·¹À̾ƿôÀ» ÁöÁ¤ÇÏ´Â SampleModel
dataBuffer - À̹ÌÁö µ¥ÀÌÅ͸¦ ÀúÀåÇÏ´Â DataBuffer
aRegion - À̹ÌÁö area¸¦ ÁöÁ¤ÇÏ´Â Rectangle
sampleModelTranslate - SampleModel ·ÎºÎÅÍ Raster ÁÂÇ¥¿¡ÀÇ º¯È¯À» ÁöÁ¤ÇÏ´Â Point
parent - ÀÌ ¶ó½ºÅÍÀÇ ºÎ¸ð (Á¸ÀçÇÏ´Â °æ¿ì)
¿¹¿Ü:
RasterFormatException - aRegion ÀÇ ÆøÀ̳ª ³ôÀÌÀÇ ¾î´À ÂÊÀÎÁö°¡ Á¦·Î ÀÌÇÏÀÇ °æ¿ì, ¶Ç´Â aRegion.x + aRegion.width ³ª aRegion.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 °¡ Çü¼ºµÇ¾î °øÀ¯µÇ´Â Çȼ¿ area¸¦ ³ªÅ¸³À´Ï´Ù. ÀÌ Rectangle °¡ ÇöÀçÀÇ WritableRaster ÀÇ °æ°è³»¿¡ ¾ø´Â °æ¿ì´Â ¿¡·¯°¡ ½½·Î¿ì µË´Ï´Ù.

»õ·Î¿î WritableRaster ´Â °Ô´Ù°¡ °°Àº Æò¸é»óÀ¸·Î ÇöÀçÀÇ WritableRaster °¡ »ç¿ëÇÏ´Â ÁÂÇ¥ ü°è¿Í´Â ´Ù¸¥ ÁÂÇ¥ ü°è·Î º¯È¯ÇÒ ¼ö ÀÖ½À´Ï´Ù. childMinX ÆÄ¶ó¹ÌÅÍ¿Í childMinY ÆÄ¶ó¹ÌÅÍ¿¡ ÀÇÇØ, µ¹·ÁÁÖ¾îÁø WritableRaster ÀÇ Á»󱸼®¿¡ ÀÖ´Â Çȼ¿ÀÇ »õ·Î¿î ÁÂÇ¥ (x, y)°¡ ÁöÁ¤µË´Ï´Ù. »õ·Î¿î WritableRaster ³»ÀÇ ÁÂÇ¥ (childMinX, childMinY)´Â ÇöÀçÀÇ WritableRaster ³»ÀÇ ÁÂÇ¥ (parentX, parentY)¿Í °°Àº Çȼ¿¿¡ MAP µË´Ï´Ù.

bandList ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, ÇöÀçÀÇ WritableRaster ÀÇ ¹êµåÀÇ ºÎºÐÁýÇÕ¸¸À», °æ¿ì¿¡ µû¶ó¼­´Â ¼ø¼­¸¦ º¯°æÇØ ÀúÀåÇÏ´Â »õ·Î¿î WritableRaster ¸¦ Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. bandList °¡ null ÀÇ °æ¿ì´Â ÇöÀçÀÇ WritableRaster ÀÇ ¸ðµç ¹êµå°¡ ÇöÀç¿Í °°Àº ¼ø¼­·Î ÀúÀåµË´Ï´Ù.

ÇöÀçÀÇ WritableRaster ÀÇ ÀϺÎÀÇ area¸¦ Æ÷ÇÔÇØ, ÁÂÇ¥°è¿Í ¹êµå¸¦ °øÀ¯ÇÏ´Â »õ·Î¿î WritableRaster ¸¦ »ý¼ºÇÏ·Á¸é , childMinX ¸¦ parentX ¿Í °°Àº °ª¿¡, childMinY ¸¦ parentY ¿Í °°Àº °ª¿¡, bandList ¸¦ null ¿¡ °¢°¢ ÁöÁ¤ÇØ, ÀÌ ¸Þ¼Òµå¸¦ È£ÃâÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
parentX - ÀÌ WritableRaster ÀÇ ÁÂÇ¥¿¡¼­ÀÇ Á»󱸼®ÀÇ X ÁÂÇ¥
parentY - ÀÌ WritableRaster ÀÇ ÁÂÇ¥¿¡¼­ÀÇ Á»󱸼®ÀÇ Y ÁÂÇ¥
w - (parentX, parentY)·ÎºÎÅÍ ½ÃÀ۵Ǵ areaÀÇ Æø
h - (parentX, parentY)·ÎºÎÅÍ ½ÃÀ۵Ǵ areaÀÇ ³ôÀÌ
childMinX - µ¹·ÁÁÖ¾îÁö´Â WritableRaster ÀÇ Á»󱸼®ÀÇ X ÁÂÇ¥
childMinY - µ¹·ÁÁÖ¾îÁö´Â WritableRaster ÀÇ Á»󱸼®ÀÇ Y ÁÂÇ¥
bandList - ¹êµå À妽ºÀÇ ¹è¿­. ¸ðµç ¹êµå¸¦ »ç¿ëÇÏ´Â °æ¿ì´Â null
¹Ýȯ°ª:
ÀÌ WritableRaster ÀÇ ¸ðµÎ, ¶Ç´Â ÀϺÎÀÇ DataBuffer ¸¦ °øÀ¯ÇÏ´Â WritableRaster
¿¹¿Ü:
RasterFormatException - ºÎºÐ area°¡ ¶ó½ºÅÍÀÇ °æ°èÀÇ ¿ÜÃø¿¡ ÀÖ´Â °æ¿ì
RasterFormatException - w ³ª h °¡ Á¦·Î ÀÌÇÏÀÇ °æ¿ì, ¶Ç´Â parentX + w,parentY + h,childMinX + w, ¶Ç´Â childMinY + h ÀÇ °è»êÀÇ ¾î¶² °ÍÀΰ¡·Î Á¤¼öÇü ¿À¹öÇ÷ο찡 ¹ß»ýÇßÀ» °æ¿ì

setDataElements

public void setDataElements(int x,
                            int y,
                            Object  inData)
1 °³ÀÇ Çȼ¿ÀÇ µ¥ÀÌÅ͸¦ transferType ÇüÀÇ ¿ø½ÃÀû ¹è¿­·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù. Java 2D(tm) API ¿¡ ÀÇÇØ ¼­Æ÷Æ®µÇ°í ÀÖ´Â À̹ÌÁö µ¥ÀÌÅÍÀÇ °æ¿ì´Â DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, ¶Ç´Â DataBuffer.TYPE_DOUBLE ÀÇ ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù. ¹è¿­³»ÀÇ µ¥ÀÌÅÍ´Â ÆÑ µÈ Çü½Ä¿¡¼­ µ¹·ÁÁÖ¾îÁö´Â Àϵµ ÀÖ¾î, ±× °æ¿ì, µ¥ÀÌÅÍ Àü¼ÛÀÇ È¿À²ÀÌ ¿À¸¨´Ï´Ù. ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì, ¶Ç´Â inData °¡ Çȼ¿ µ¥ÀÌÅ͸¦ ÀúÀåÇϱâ À§Çؼ­ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì, ArrayIndexOutOfBoundsException °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°èÀÇ Ã¼Å©´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù. ÀÔ·Â ¿ÀºêÁ§Æ®°¡ null °¡ ¾Æ´Ï°í, TransferType ÀÇ ¹è¿­ ÀÌ¿ÜÀÇ °ÍÀ» ÂüÁ¶ÇÏ´Â °æ¿ì, ClassCastException °¡ ½½·Î¿ì µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°èÀÇ Ã¼Å©´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 ÇüÀÇ ¿ø½ÃÀû ¹è¿­·ÎºÎÅÍ ¼³Á¤ÇÕ´Ï´Ù. Java 2D API ¿¡ ÀÇÇØ ¼­Æ÷Æ®µÇ°í ÀÖ´Â À̹ÌÁö µ¥ÀÌÅÍÀÇ °æ¿ì´Â DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, ¶Ç´Â DataBuffer.TYPE_DOUBLE ÀÇ ¾î¶² °ÍÀΰ¡°¡ µË´Ï´Ù. ¹è¿­³»ÀÇ µ¥ÀÌÅÍ´Â ÆÑ µÈ Çü½Ä¿¡¼­ µ¹·ÁÁÖ¾îÁö´Â Àϵµ ÀÖ¾î, ±× °æ¿ì, µ¥ÀÌÅÍ Àü¼ÛÀÇ È¿À²ÀÌ ¿À¸¨´Ï´Ù. ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì, ¶Ç´Â inData °¡ Çȼ¿ µ¥ÀÌÅ͸¦ ÀúÀåÇϱâ À§Çؼ­ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì, ArrayIndexOutOfBoundsException °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°èÀÇ Ã¼Å©´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù. ÀÔ·Â ¿ÀºêÁ§Æ®°¡ null °¡ ¾Æ´Ï°í, TransferType ÀÇ ¹è¿­ ÀÌ¿ÜÀÇ °ÍÀ» ÂüÁ¶ÇÏ´Â °æ¿ì, ClassCastException °¡ ½½·Î¿ì µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 ÀÇ Àü¼Û¿øÀ¸·ÎºÎÅÍ Á¤¼öÇüÀÇ Àü¼Û ¸ÕÀú Ä«Çǰ¡ ½ÇÇàµÇ´Â °æ¿ì, Àü¼Û¿ø»ùÇÃÀÌ Àü¼ÛóÀÇ ÇüÅ¿¡ ij½ºÆ® µË´Ï´Ù. Á¤¼öÇüÀÇ Àü¼Û¿øÀ¸·ÎºÎÅÍ float ¶Ç´Â double ÀÇ Àü¼Û ¸ÕÀú Ä«ÇǵǴ °æ¿ì, Çʿ信 µû¶ó¼­, »ó±âÀÇ Á¤¼öÇü¿¡ °üÇÑ ±ÔÄ¢¿¡ ±Ù°ÅÇØ Àü¼Û¿øÀÌ ÃÖÃÊ·Î 32 ºñÆ®ÀÇ Á¤¼öÇü¿¡ º¯È¯µÇ¾î float ¶Ç´Â double ¿¡ ij½ºÆ® µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Çȼ¿ À§Ä¡ÀÇ X ÁÂÇ¥
y - Çȼ¿ À§Ä¡ÀÇ Y ÁÂÇ¥
iArray - int ¹è¿­ÀÇ ÀÔ·Â »ùÇÃ
¿¹¿Ü:
NullPointerException - iArray °¡ null ÀÇ °æ¿ì
ArrayIndexOutOfBoundsException - ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì, ¶Ç´Â iArray °¡ ³Ê¹« ÀÛ¾Æ ÀÔ·ÂÀ» º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì

setPixel

public void setPixel(int x,
                     int y,
                     float[] fArray)
»ùÇÃÀÇ float ¹è¿­À» ÀÔ·ÂÀ¸·Î¼­ »ç¿ëÇØ DataBuffer ³»ÀÇ Çȼ¿À» ¼³Á¤ÇÕ´Ï´Ù. ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì´Â ArrayIndexOutOfBoundsException °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Çȼ¿ À§Ä¡ÀÇ X ÁÂÇ¥
y - Çȼ¿ À§Ä¡ÀÇ Y ÁÂÇ¥
fArray - float ¹è¿­ÀÇ ÀÔ·Â »ùÇÃ
¿¹¿Ü:
NullPointerException - fArray °¡ null ÀÇ °æ¿ì
ArrayIndexOutOfBoundsException - ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì, ¶Ç´Â fArray °¡ ³Ê¹« ÀÛ¾Æ ÀÔ·ÂÀ» º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì

setPixel

public void setPixel(int x,
                     int y,
                     double[] dArray)
»ùÇÃÀÇ double ¹è¿­À» ÀÔ·ÂÀ¸·Î¼­ »ç¿ëÇØ DataBuffer ³»ÀÇ Çȼ¿À» ¼³Á¤ÇÕ´Ï´Ù. ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì´Â ArrayIndexOutOfBoundsException °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀΠüũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Çȼ¿ À§Ä¡ÀÇ X ÁÂÇ¥
y - Çȼ¿ À§Ä¡ÀÇ Y ÁÂÇ¥
b - ¼³Á¤µÇ´Â ¹êµå
s - ÀÔ·Â »ùÇÃ
¿¹¿Ü:
ArrayIndexOutOfBoundsException - ÁÂÇ¥ ¶Ç´Â ¹êµå À妽º°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì

setSample

public void setSample(int x,
                      int y,
                      int b,
                      float s)
float ¸¦ ÀÔ·ÂÀ¸·Î¼­ »ç¿ëÇØ, DataBuffer ³»ÀÇ °Í (x, y)¿¡ À§Ä¡ÇÏ´Â Çȼ¿ÀÇ, ÁöÁ¤µÈ ¹êµå³»ÀÇ »ùÇÃÀ» ¼³Á¤ÇÕ´Ï´Ù. ÁÂÇ¥°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì´Â ArrayIndexOutOfBoundsException °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀΠüũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀΠüũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
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 °¡ ½½·Î¿ì µË´Ï´Ù. ´Ù¸¸, ¸í½ÃÀûÀÎ °æ°è üũ´Â ¹Ýµå½Ã ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
x - Á»óÀÇ Çȼ¿ À§Ä¡ÀÇ X ÁÂÇ¥
y - Á»óÀÇ Çȼ¿ À§Ä¡ÀÇ Y ÁÂÇ¥
w - Çȼ¿ ±¸ÇüÀÇ Æø
h - Çȼ¿ ±¸ÇüÀÇ ³ôÀÌ
b - ¼³Á¤µÇ´Â ¹êµå
dArray - ÀÔ·Â double »ùÇà ¹è¿­
¿¹¿Ü:
NullPointerException - dArray °¡ null ÀÇ °æ¿ì
ArrayIndexOutOfBoundsException - ÁÂÇ¥ ¶Ç´Â ¹êµå À妽º°¡ °æ°è³»¿¡ ¾ø´Â °æ¿ì, ¶Ç´Â dArray °¡ ³Ê¹« ÀÛ¾Æ ÀÔ·ÂÀ» º¸°ü À¯ÁöÇÒ ¼ö ¾ø´Â °æ¿ì

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.