http://www.eteks.com

com.eteks.awt
クラス PJAImage

java.lang.Object
  |
  +--java.awt.Image
        |
        +--com.eteks.awt.PJAImage

public class PJAImage
extends java.awt.Image

Pure Java AWT Image implementation. This image stores in a buffer an offscreen image using default RGB color model or another indexed color model.

導入されたバージョン:
PJA1.0
バージョン:
2.3
作成者:
Emmanuel Puybaret

クラス java.awt.Image から継承したフィールド
SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty
 
コンストラクタの概要
PJAImage(java.awt.image.ImageProducer producer)
          Creates an initial image with a producer.
PJAImage(int width, int height)
          Creates an empty image of width x height pixels.
PJAImage(int width, int height, java.awt.image.ColorModel colorModel)
          Creates an empty image of width x height pixels.
 
メソッドの概要
protected  int check(java.awt.image.ImageObserver observer)
           
 void flush()
          java.awt.Image implementation.
 java.awt.image.ColorModel getColorModel()
          Returns this image's color model
 java.awt.Graphics getGraphics()
          java.awt.Image implementation.
protected  int getHeight()
           
 int getHeight(java.awt.image.ImageObserver observer)
          java.awt.Image implementation.
protected  int getPixelColor(int x, int y)
          Gets the color at the point (x,y).
protected  int[] getPixels()
          Gets the array used to store the pixels of this image.
protected  java.lang.Object getPixelsArray()
          Gets the array used to store the pixels of this image.
 java.lang.Object getProperty(java.lang.String name, java.awt.image.ImageObserver observer)
          java.awt.Image implementation.
 java.awt.image.ImageProducer getSource()
          java.awt.Image implementation.
protected  int getWidth()
           
 int getWidth(java.awt.image.ImageObserver observer)
          java.awt.Image implementation.
protected  boolean prepare(java.awt.image.ImageObserver observer)
           
protected  void setPixelColor(int x, int y, int ARGB)
          Sets the color at the point (x,y).
 void sync()
          Synchronizes the image loading.
 
クラス java.awt.Image から継承したメソッド
getScaledInstance
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PJAImage

public PJAImage(java.awt.image.ImageProducer producer)
Creates an initial image with a producer.
パラメータ:
producer - An instance of a class that implements ImagePoducer.

PJAImage

public PJAImage(int width,
                int height)
Creates an empty image of width x height pixels. The image is created transparent.
関連項目:
PJAToolkit

PJAImage

public PJAImage(int width,
                int height,
                java.awt.image.ColorModel colorModel)
Creates an empty image of width x height pixels. The image is created transparent with colorModel color model.
導入されたバージョン:
PJA2.3
メソッドの詳細

getProperty

public java.lang.Object getProperty(java.lang.String name,
                                    java.awt.image.ImageObserver observer)
java.awt.Image implementation.
オーバーライド:
クラス java.awt.Image 内の getProperty
関連項目:
Image

getWidth

public int getWidth(java.awt.image.ImageObserver observer)
java.awt.Image implementation.
オーバーライド:
クラス java.awt.Image 内の getWidth
関連項目:
Image

getHeight

public int getHeight(java.awt.image.ImageObserver observer)
java.awt.Image implementation.
オーバーライド:
クラス java.awt.Image 内の getHeight
関連項目:
Image

getSource

public java.awt.image.ImageProducer getSource()
java.awt.Image implementation.
オーバーライド:
クラス java.awt.Image 内の getSource
関連項目:
Image

getGraphics

public java.awt.Graphics getGraphics()
java.awt.Image implementation. Contrary to JDK default behavior, PJA allows to retrieve an instance of Graphics on images created with a producer. This enables to draw in transparent images.
オーバーライド:
クラス java.awt.Image 内の getGraphics
関連項目:
Image

getColorModel

public java.awt.image.ColorModel getColorModel()
Returns this image's color model
戻り値:
the image's color model. null means the default color model.
導入されたバージョン:
PJA2.3

flush

public void flush()
java.awt.Image implementation.
オーバーライド:
クラス java.awt.Image 内の flush
関連項目:
Image

check

protected int check(java.awt.image.ImageObserver observer)

prepare

protected boolean prepare(java.awt.image.ImageObserver observer)

getWidth

protected int getWidth()

getHeight

protected int getHeight()

getPixels

protected int[] getPixels()
Gets the array used to store the pixels of this image.
戻り値:
an array of int or null if the array contains byte or if the image was flushed.

getPixelsArray

protected java.lang.Object getPixelsArray()
Gets the array used to store the pixels of this image.
戻り値:
an array of int or byte.
導入されたバージョン:
PJA2.3

getPixelColor

protected int getPixelColor(int x,
                            int y)
Gets the color at the point (x,y).
パラメータ:
x - the point coordinates.
y -  
戻り値:
the color of the point in default RGB model.
導入されたバージョン:
PJA2.0

setPixelColor

protected void setPixelColor(int x,
                             int y,
                             int ARGB)
Sets the color at the point (x,y).
パラメータ:
x - the point coordinates.
y -  
ARGB - the color of the point in default RGB model.
導入されたバージョン:
PJA2.0

sync

public void sync()
Synchronizes the image loading.
導入されたバージョン:
PJA2.0

© 1997-2001 eTeks - All rights reserved