java命名空间java.awt.image类bufferedimage的类成员方法:
type_byte_indexed定义及介绍
本文导语:
type_byte_indexed
public static final int type_byte_indexed
表示带索引的字节图像。当此类型用作 bufferedimage 构造方法(带 imagetype 参数而不带 colormodel 参数 )的 imagetype 参数时,创建一个 indexcolormodel,它具有 256 色 6/6/6 三色调色板,其余...
public static final int type_byte_indexed
- 表示带索引的字节图像。当此类型用作
bufferedimage 构造方法(带 imagetype 参数而不带 colormodel 参数 )的 imagetype 参数时,创建一个 indexcolormodel,它具有 256 色 6/6/6 三色调色板,其余从 216 到 255 的颜色由默认 srgb colorspace 的灰度级值填充。
当颜色数据存储在此类型的图像中时,由 indexcolormodel 确定 colormap 中最接近的颜色,并存储得到的索引。根据 indexcolormodel colormap 中的颜色,可以得到 alpha 分量或颜色分量的近似值及丢失的 alpha 或颜色分量。
- 另请参见:
- 常量字段值
bufferedimage
public bufferedimage(int width,
int height,
int imagetype)
- 构造一个类型为预定义图像类型之一的
bufferedimage。该图像的 colorspace 为默认的 srgb 空间。
- 参数:
width - 所创建图像的宽度height - 所创建图像的高度imagetype - 所创建图像的类型- 另请参见:
colorspace,
type_int_rgb,
type_int_argb,
type_int_argb_pre,
type_int_bgr,
type_3byte_bgr,
type_4byte_abgr,
type_4byte_abgr_pre,
type_byte_gray,
type_ushort_gray,
type_byte_binary,
type_byte_indexed,
type_ushort_565_rgb,
type_ushort_555_rgb