软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.color |
提供颜色空间的类。
|
java.awt.image |
提供创建和修改图像的类。
|
javax.imageio |
java的图像I/O API主要包。
|
Modifier and Type | Method and Description |
---|---|
ColorSpace |
Color.getColorSpace()
返回该
Color 的
ColorSpace 。
|
Modifier and Type | Method and Description |
---|---|
float[] |
Color.getColorComponents(ColorSpace cspace, float[] compArray)
返回只包含在由
cspace 参数指定的
ColorSpace 的
Color 颜色分量
float 阵列。
|
float[] |
Color.getComponents(ColorSpace cspace, float[] compArray)
返回一个包含颜色的
Color alpha分量
float 阵列,由
cspace 参数指定的
ColorSpace 。
|
Constructor and Description |
---|
Color(ColorSpace cspace, float[] components, float alpha)
在指定的
ColorSpace 在
float 阵列和指定的阿尔法指定颜色分量的颜色创建。
|
Modifier and Type | Class and Description |
---|---|
class |
ICC_ColorSpace
的icc_colorspace类是抽象类的一个实现色彩空间。
|
Modifier and Type | Method and Description |
---|---|
static ColorSpace |
ColorSpace.getInstance(int colorspace)
返回一个颜色代表一个特定的预定义的颜色空间。
|
Modifier and Type | Method and Description |
---|---|
ColorSpace |
ColorModel.getColorSpace()
返回与此相关的
ColorSpace
ColorModel 。
|
Constructor and Description |
---|
ColorConvertOp(ColorSpace srcCspace, ColorSpace dstCspace, RenderingHints hints)
从两个空间对象构造一个新的colorconvertop。
|
ColorConvertOp(ColorSpace cspace, RenderingHints hints)
构建了从一个色彩空间对象的新colorconvertop。
|
ColorModel(int pixel_bits, int[] bits, ColorSpace cspace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
构建了一个
ColorModel 将像素值的颜色/ alpha分量。
|
ComponentColorModel(ColorSpace colorSpace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
构建了从指定的参数
ComponentColorModel 。
|
ComponentColorModel(ColorSpace colorSpace, int[] bits, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
构建了从指定的参数
ComponentColorModel 。
|
DirectColorModel(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transferType)
构建了从指定的参数
DirectColorModel 。
|
PackedColorModel(ColorSpace space, int bits, int[] colorMaskArray, int alphaMask, boolean isAlphaPremultiplied, int trans, int transferType)
构建了从彩色面具阵列
PackedColorModel ,指定哪一位在
int 表示每个像素包含样本颜色,和Alpha遮罩。
|
PackedColorModel(ColorSpace space, int bits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int trans, int transferType)
构建了从指定的面具,这表明位在
int 像素表示含有α,
PackedColorModel 红色,绿色和蓝色的颜色样本。
|
Modifier and Type | Method and Description |
---|---|
static ImageTypeSpecifier |
ImageTypeSpecifier.createBanded(ColorSpace colorSpace, int[] bankIndices, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
返回一个带状的图像格式,将使用一个
ComponentColorModel 和
BandedSampleModel 存储每个通道在一个独立的数组说明符。
|
static ImageTypeSpecifier |
ImageTypeSpecifier.createInterleaved(ColorSpace colorSpace, int[] bandOffsets, int dataType, boolean hasAlpha, boolean isAlphaPremultiplied)
返回一个交错的图像格式,将使用一个
ComponentColorModel 和
PixelInterleavedSampleModel 存储每个像素组成短一个单独的字节说明符或int。
|
static ImageTypeSpecifier |
ImageTypeSpecifier.createPacked(ColorSpace colorSpace, int redMask, int greenMask, int blueMask, int alphaMask, int transferType, boolean isAlphaPremultiplied)
返回一个填充的图像格式,将使用一个
DirectColorModel 和填充
SampleModel 存储每个像素填充到一个单字节,短的说明符或int。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.