当前位置: 技术问答>java相关
如何制作处于disable状态的图标?
来源: 互联网 发布时间:2015-06-02
本文导语: 就是那种工具栏上的当前不可用的按钮的图标,如何制作? 用什么工具??? | javax.swing Class GrayFilter java.lang.Object | +-java.awt.image.ImageFilter | +-java.awt.image.RGBImag...
就是那种工具栏上的当前不可用的按钮的图标,如何制作?
用什么工具???
用什么工具???
|
javax.swing
Class GrayFilter
java.lang.Object
|
+-java.awt.image.ImageFilter
|
+-java.awt.image.RGBImageFilter
|
+-javax.swing.GrayFilter
public class GrayFilter
extends RGBImageFilter
An image filter that "disables" an image by turning it into a grayscale image, and brightening the pixels in the image. Used by buttons to create an image for a disabled button
Method Summary
static Image createDisabledImage(Image i)
Creates a disabled image
int filterRGB(int x, int y, int rgb)
Overrides RGBImageFilter.filterRGB
Class GrayFilter
java.lang.Object
|
+-java.awt.image.ImageFilter
|
+-java.awt.image.RGBImageFilter
|
+-javax.swing.GrayFilter
public class GrayFilter
extends RGBImageFilter
An image filter that "disables" an image by turning it into a grayscale image, and brightening the pixels in the image. Used by buttons to create an image for a disabled button
Method Summary
static Image createDisabledImage(Image i)
Creates a disabled image
int filterRGB(int x, int y, int rgb)
Overrides RGBImageFilter.filterRGB