namespace CCL::BitmapFilters

Overview

namespace BitmapFilters {

// global variables

 kFilterList;
 filterlist;
 kClear;
 clear;
 kPremultiplyAlpha;
 premulalpha;
 kRevertPremulAlpha;
 revertalpha;
 kByteSwapRGB;
 byteswaprgb;
 kInvert;
 invert;
 kGrayScale;
 grayscale;
 kAlpha;
 alpha;
 kBlend;
 blend;
 kLighten;
 lighten;
 kNoise;
 noise;
 kTint;
 tint;
 kColorize;
 colorize;
 kLightAdapt;
 lightAdapt;
 kFill;
 fill;
 kSaturator;
 saturate;
 kAnalyze;
 analyze;
 kBlurX;
 blurX;
 kBlurY;
 blurY;

} // namespace BitmapFilters

Detailed Documentation

Global Variables

 filterlist

List of filter [IBitmapFilterList].

 clear

Clear bitmap.

 premulalpha

Premultiply RGB with alpha channel.

 revertalpha

Revert premultiplied alpha.

 byteswaprgb

Swap BGR to RGB and vice versa.

 invert

Invert.

 grayscale

Grayscale.

 alpha

Set alpha channel (properties: “value”)

 blend

Scale alpha channel (properties: “value”)

 lighten

Add brightness (properties: “value”)

 noise

Add noise (properties: “value”)

 tint

Use src intensity and alpha but replace hue (properties: “color”)

 colorize

Use src alpha as mask for color (properties: “color”)

 lightAdapt

Use src alpha but adapt luminance of dark/light pixels (bitmap is dark/light) that extreme pixels match color intensity (properties: “color”)

 fill

Fill bitmap (properties: “color”)

 saturate

saturates the bitmap (properties: “value”)

 analyze

Analysis filter (multiple output properties)

 blurX

blurs the bitmap horizontally (properties: “value”)

 blurY

blurs the bitmap vertically (properties: “value”)