パッケージ | 説明 |
---|---|
java.awt |
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
|
java.awt.image |
イメージを作成および修正するためのクラスを提供します。
|
javax.imageio |
Java Image I/O APIの基本パッケージです。
|
修飾子と型 | メソッドと説明 |
---|---|
abstract ColorModel |
Toolkit.getColorModel()
このツールキットのスクリーンのカラー・モデルを判定します。
|
ColorModel |
PaintContext.getColorModel()
出力の
ColorModel を返します。 |
abstract ColorModel |
GraphicsConfiguration.getColorModel()
この
GraphicsConfiguration に関連付けられたColorModel を返します。 |
ColorModel |
Component.getColorModel()
コンポーネントを出力デバイス上に表示するために使用される
ColorModel のインスタンスを取得します。 |
abstract ColorModel |
GraphicsConfiguration.getColorModel(int transparency)
指定された透明度をサポートする、この
GraphicsConfiguration に関連付けられたColorModel を返します。 |
修飾子と型 | メソッドと説明 |
---|---|
CompositeContext |
AlphaComposite.createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
合成操作のコンテキストを作成します。
|
CompositeContext |
Composite.createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints)
合成操作を実行するのに使用される状態を格納するコンテキストを作成します。
|
PaintContext |
Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
カラー・パターンを生成するために使用される
PaintContext を作成して返します。 |
PaintContext |
TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
タイリングされたイメージ・パターンを生成するために使用される
PaintContext を作成して返します。 |
PaintContext |
Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
塗りつぶした色のフィールド・パターンを生成するために使用される
PaintContext を作成して返します。 |
PaintContext |
GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
カラーの線形グラデーション・パターンを生成するために使用される
PaintContext を作成して返します。 |
PaintContext |
RadialGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
色の円放射状グラデーション・パターンを生成するために使用される
PaintContext を作成して返します。 |
PaintContext |
LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
カラーの線形グラデーション・パターンを生成するために使用される
PaintContext を作成して返します。 |
修飾子と型 | クラスと説明 |
---|---|
class |
ComponentColorModel
これは
ColorModel クラスの1つで、ピクセル値を扱います。このピクセル値は、色情報およびアルファ情報を個別のサンプルとして表現し、各サンプルを個別のデータ要素に格納します。 |
class |
DirectColorModel
DirectColorModel クラスは、RGBの色とアルファの情報を個別のサンプルとして表し、1つのピクセルのすべてのサンプルをint、short、またはbyte型の数で1つにパックするピクセル値を扱うColorModel クラスです。 |
class |
IndexColorModel
IndexColorModel クラスは、デフォルトのsRGBカラー・スペースの固定カラー・マップに対するインデックスである、単一のサンプルからなるピクセル値を扱うColorModel クラスです。 |
class |
PackedColorModel
PackedColorModel クラスは、色とアルファの情報を個別のサンプルとして表し、1つのピクセルのすべてのサンプルをint、short、またはbyte型の数で1つにパックするピクセル値を扱う抽象ColorModel クラスです。 |
修飾子と型 | フィールドと説明 |
---|---|
protected ColorModel |
RGBImageFilter.newmodel
ユーザーが
substituteColorModel を呼び出したときにorigmodel を置き換えるColorModel です。 |
protected ColorModel |
RGBImageFilter.origmodel
|
修飾子と型 | メソッドと説明 |
---|---|
ColorModel |
ColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied)
ラスター・データが
isAlphaPremultiplied 変数で指定された状態と一致するようにします。このとき、データはこのColorModel によって現在正しく記述されていると見なされます。 |
ColorModel |
DirectColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied)
ラスター・データが
isAlphaPremultiplied 変数で指定された状態と一致するようにします。このとき、データはこのColorModel によって現在正しく記述されていると見なされます。 |
ColorModel |
ComponentColorModel.coerceData(WritableRaster raster, boolean isAlphaPremultiplied)
ラスター・データが
isAlphaPremultiplied 変数で指定された状態と一致するようにします。このとき、データはこのColorModel によって現在正しく記述されていると見なされます。 |
ColorModel |
BufferedImage.getColorModel()
ColorModel を返します。 |
ColorModel |
PixelGrabber.getColorModel()
ピクセルを配列に格納するためのColorModelを返します。
|
ColorModel |
RenderedImage.getColorModel()
このイメージに関連したColorModelを返します。
|
static ColorModel |
ColorModel.getRGBdefault()
プログラマのために、AWTイメージ・インタフェースの多くのメソッドで使用される整数型RGB値のデフォルト形式を記述する
DirectColorModel を返します。 |
修飾子と型 | メソッドと説明 |
---|---|
BufferedImage |
ColorConvertOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
この転送元を指定して、適切なサイズおよびバンド数で、ゼロ化された転送先イメージを作成します。
|
BufferedImage |
BufferedImageOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
適切なサイズおよびバンド数で、ゼロ化された転送先イメージを生成します。
|
BufferedImage |
ConvolveOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
適切なサイズおよびバンド数で、ゼロ化された転送先イメージを生成します。
|
BufferedImage |
LookupOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
適切なサイズおよびバンド数で、ゼロ化された転送先イメージを生成します。
|
BufferedImage |
AffineTransformOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
適切なサイズおよびバンド数で、ゼロ化された転送先イメージを生成します。
|
BufferedImage |
RescaleOp.createCompatibleDestImage(BufferedImage src, ColorModel destCM)
適切なサイズおよびバンド数で、ゼロ化された転送先イメージを生成します。
|
void |
MemoryImageSource.newPixels(byte[] newpix, ColorModel newmodel, int offset, int scansize)
新しいbyte配列を、このイメージのピクセルを保持するように変更します。
|
void |
MemoryImageSource.newPixels(int[] newpix, ColorModel newmodel, int offset, int scansize)
新しいint配列を、このイメージのピクセルを保持するように変更します。
|
void |
ImageConsumer.setColorModel(ColorModel model)
setPixelsメソッドを使って報告されるピクセルの大部分に対して使用されるColorModelオブジェクトを設定します。
|
void |
ImageFilter.setColorModel(ColorModel model)
ImageConsumerインタフェースのsetColorModelメソッドで提供される情報をフィルタ処理します。
|
void |
BufferedImageFilter.setColorModel(ColorModel model)
ImageConsumer インタフェースのsetColorModel メソッドで提供される情報をフィルタ処理します。 |
void |
RGBImageFilter.setColorModel(ColorModel model)
ColorModelがIndexColorModelで、サブクラスがcanFilterIndexColorModelフラグをtrueに設定した場合は、元のColorModelオブジェクトがsetPixelsメソッドで呼び出されるところではどこでも、フィルタ処理されたカラー・モデルに置き換えます。
|
void |
PixelGrabber.setColorModel(ColorModel model)
setColorModelメソッドは、ピクセルを取り出すためにこのクラスが実装しなければならないImageConsumer APIの一部です。
|
void |
ImageConsumer.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
イメージのピクセルを1回以上のこのメソッド呼出しによって転送します。
|
void |
ImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
byte配列をとるImageConsumerインタフェースのsetPixelsメソッドで提供される情報にフィルタをかけます。
|
void |
ReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
転送されたbyteピクセルで、大きさを変更する転送先イメージにどの列や行が必要か選択し、必要とされる列や行だけを渡します。また必要に応じて複写します。
|
void |
BufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
byte配列をとる
ImageConsumer インタフェースのsetPixels メソッドで提供される情報をフィルタ処理します。 |
void |
RGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
ColorModelオブジェクトが、すでに変換されたオブジェクトと同じである場合、変換されたColorModelを使用して単純にピクセルを渡します。
|
void |
AreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
このメソッドを直接呼び出すと、フィルタ操作を妨げる可能性があります。渡されたバイト・ピクセル用のコンポーネントすべてを蓄積配列にまとめて、完全なピクセル行のための平均化データをすべて送出します。
|
void |
PixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOff, int srcScan)
setPixelsメソッドは、ピクセルを取り出すためにこのクラスが実装しなければならないImageConsumer APIの一部です。
|
void |
CropImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
転送されてきたbyte配列のピクセルが、抽出する領域に入っているかどうかを判定し、その領域に入るピクセルのサブセットだけを再転送します。
|
void |
ImageConsumer.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
イメージのピクセルは、1回以上のsetPixelsメソッドの呼出しによって転送されます。
|
void |
ImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
整数値配列をとる、ImageConsumerインタフェースのsetPixelsメソッドで提供される情報にフィルタをかけます。
|
void |
ReplicateScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
転送されたintピクセルで、大きさを変更する転送先イメージにどの列や行が必要か選択し、必要とされる列や行だけを渡します。また必要に応じて複写します。
|
void |
BufferedImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
整数値配列をとる、
ImageConsumer インタフェースのsetPixels メソッドで提供される情報をフィルタ処理します。 |
void |
RGBImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
ColorModelオブジェクトが、すでに変換されたオブジェクトと同じである場合、変換されたColorModelを使用して単純にピクセルを渡します。そうでない場合、intピクセルのバッファをデフォルトのRGB ColorModelに変換し、変換されたバッファをfilterRGBPixelsメソッドへ渡し、1つずつ変換します。
|
void |
AreaAveragingScaleFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
渡されたintピクセル用のコンポーネントすべてを蓄積配列にまとめて、完全なピクセル行のための平均化されたデータをすべて送出します。
|
void |
PixelGrabber.setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, int[] pixels, int srcOff, int srcScan)
setPixelsメソッドは、ピクセルを取り出すためにこのクラスが実装しなければならないImageConsumer APIの一部です。
|
void |
CropImageFilter.setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
転送されてきたint配列のピクセルが、抽出する領域に入っているかどうかを判定し、その領域に入るピクセルのサブセットだけを再転送します。
|
void |
RGBImageFilter.substituteColorModel(ColorModel oldcm, ColorModel newcm)
置換用の2つのColorModelオブジェクトを登録します。
|
コンストラクタと説明 |
---|
BufferedImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?,?> properties)
指定された
ColorModel とRaster で新しいBufferedImage を構築します。 |
MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan)
byte配列を使用してImageオブジェクト・データを生成するImageProducerオブジェクトを構築します。
|
MemoryImageSource(int w, int h, ColorModel cm, byte[] pix, int off, int scan, Hashtable<?,?> props)
byte配列を使用してImageオブジェクト・データを生成するImageProducerオブジェクトを構築します。
|
MemoryImageSource(int w, int h, ColorModel cm, int[] pix, int off, int scan)
整数型配列を使用してImageオブジェクト・データを生成するImageProducerオブジェクトを構築します。
|
MemoryImageSource(int w, int h, ColorModel cm, int[] pix, int off, int scan, Hashtable<?,?> props)
整数型配列を使用してImageオブジェクト・データを生成するImageProducerオブジェクトを構築します。
|
修飾子と型 | フィールドと説明 |
---|---|
protected ColorModel |
ImageTypeSpecifier.colorModel
プロトタイプとして使用する
ColorModel です。 |
修飾子と型 | メソッドと説明 |
---|---|
ColorModel |
ImageTypeSpecifier.getColorModel()
オブジェクトで指定された
ColorModel を返します。 |
コンストラクタと説明 |
---|
ImageTypeSpecifier(ColorModel colorModel, SampleModel sampleModel)
ColorModel とSampleModel から直接ImageTypeSpecifier を構築します。 |
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。