PCL
Bitmap Color Replacement Functions

Functions

void pcl::Bitmap::ReplaceColor (const pcl::Rect &rect, RGBA replaceThis, RGBA replaceWith)
 
void pcl::Bitmap::ReplaceColor (RGBA replaceThis, RGBA replaceWith)
 
void pcl::Bitmap::SetAlpha (const pcl::Rect &rect, uint8 newAlpha)
 
void pcl::Bitmap::SetAlpha (uint8 newAlpha)
 

Detailed Description

Function Documentation

◆ ReplaceColor() [1/2]

void pcl::Bitmap::ReplaceColor ( const pcl::Rect rect,
RGBA  replaceThis,
RGBA  replaceWith 
)

Replaces all occurrences of a specified pixel value in a rectangular region of this bitmap with a new value.

Parameters
rectRectangular region.
replaceThisPixel value to be replaced.
replaceWithNew pixel value for replacement.

◆ ReplaceColor() [2/2]

void pcl::Bitmap::ReplaceColor ( RGBA  replaceThis,
RGBA  replaceWith 
)
inline

Replaces all occurrences of a specified pixel value in this bitmap with a new value.

Parameters
replaceThisPixel value to be replaced.
replaceWithNew pixel value for replacement.

This function is equivalent to:

ReplaceColor( Bounds(), replaceThis, replaceWith );

Definition at line 1363 of file Bitmap.h.

◆ SetAlpha() [1/2]

void pcl::Bitmap::SetAlpha ( const pcl::Rect rect,
uint8  newAlpha 
)

Replaces the alpha (transparency) components of all pixels in a rectangular region of this bitmap with a new alpha value.

Parameters
rectRectangular region.
newAlphaNew alpha (transparency) value in the range [0,255].

◆ SetAlpha() [2/2]

void pcl::Bitmap::SetAlpha ( uint8  newAlpha)
inline

Replaces the alpha (transparency) components of all pixels in this bitmap with a new alpha value.

Parameters
newAlphaNew alpha (transparency) value in the range [0,255].

This function is equivalent to:

SetAlpha( Bounds(), newAlpha );

Definition at line 1391 of file Bitmap.h.

References pcl::SetAlpha().