ImageGrayScale / ImageGreyScale
Was this helpful?
Converts an image to grayscale. This BIF allows you to remove color and produce a black-and-white version of an image in BoxLang.
ImageGrayScale(name)
ImageGreyScale(name)name
any
Yes
The image or the name of a variable referencing an image to operate on.
BoxImage: The modified BoxImage instance in grayscale.
ImageGrayScale (also available as ImageGreyScale) converts the specified image to grayscale, removing all color information. The image can be passed directly or referenced by variable name.
// Convert an image to grayscale
grayImg = ImageGrayScale(myImage);
// Or using the alias
grayImg = ImageGreyScale(myImage);ImageInvert
ImageBlur
The image can be passed as a BoxImage object or as a variable name referencing an image.
Both grayScale and greyScale member methods are available for BoxImage objects.
Was this helpful?
Was this helpful?
