Liking cljdoc? Tell your friends :D

javax.swing.GrayFilter

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.

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.
raw docstring

*create-disabled-imageclj

(*create-disabled-image i)

Creates a disabled image

i - java.awt.Image

returns: java.awt.Image

Creates a disabled image

i - `java.awt.Image`

returns: `java.awt.Image`
raw docstring

->gray-filterclj

(->gray-filter b p)

Constructor.

Constructs a GrayFilter object that filters a color image to a grayscale image. Used by buttons to create disabled ("grayed out") button images.

b - a boolean -- true if the pixels should be brightened - boolean p - an int in the range 0..100 that determines the percentage of gray, where 100 is the darkest gray, and 0 is the lightest - int

Constructor.

Constructs a GrayFilter object that filters a color image to a
 grayscale image. Used by buttons to create disabled ("grayed out")
 button images.

b - a boolean -- true if the pixels should be brightened - `boolean`
p - an int in the range 0..100 that determines the percentage of gray, where 100 is the darkest gray, and 0 is the lightest - `int`
raw docstring

filter-rgbclj

(filter-rgb this x y rgb)

Overrides RGBImageFilter.filterRGB.

x - the X coordinate of the pixel - int y - the Y coordinate of the pixel - int rgb - the integer pixel representation in the default RGB color model - int

returns: a filtered pixel in the default RGB color model. - int

Overrides RGBImageFilter.filterRGB.

x - the X coordinate of the pixel - `int`
y - the Y coordinate of the pixel - `int`
rgb - the integer pixel representation in the default RGB color model - `int`

returns: a filtered pixel in the default RGB color model. - `int`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close