PCL
Bitmap Pixel Access Functions

Functions

RGBA pcl::Bitmap::Pixel (const pcl::Point &p) const
 
RGBA pcl::Bitmap::Pixel (int x, int y) const
 
RGBApcl::Bitmap::ScanLine (int y)
 
const RGBApcl::Bitmap::ScanLine (int y) const
 
void pcl::Bitmap::SetPixel (const pcl::Point &p, RGBA v)
 
void pcl::Bitmap::SetPixel (int x, int y, RGBA v)
 

Detailed Description

Function Documentation

◆ Pixel() [1/2]

RGBA pcl::Bitmap::Pixel ( const pcl::Point p) const
inline

Returns the value of a bitmap pixel.

Parameters
pA Point object whose coordinates identify the pixel to read. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1).

Definition at line 581 of file Bitmap.h.

References pcl::GenericPoint< T >::x, and pcl::GenericPoint< T >::y.

◆ Pixel() [2/2]

RGBA pcl::Bitmap::Pixel ( int  x,
int  y 
) const

Returns the value of a bitmap pixel.

Parameters
x,yBitmap coordinates of the pixel to read. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1).

◆ ScanLine() [1/2]

RGBA* pcl::Bitmap::ScanLine ( int  y)

Returns the starting address of a row of pixels in this bitmap.

Parameters
yVertical coordinate of the row of pixels. Vertical coordinates can vary in the range from 0 to Height()-1.

The returned address can be used to modify pixel values.

◆ ScanLine() [2/2]

const RGBA* pcl::Bitmap::ScanLine ( int  y) const

Returns the (constant) starting address of a row of pixels in this bitmap.

Parameters
yVertical coordinate of the row of pixels. Vertical coordinates can vary in the range from 0 to Height()-1.

◆ SetPixel() [1/2]

void pcl::Bitmap::SetPixel ( const pcl::Point p,
RGBA  v 
)
inline

Sets the value of a bitmap pixel.

Parameters
pA Point object whose coordinates identify the pixel to write. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1).
v32-bit pixel value encoded in the AARRGGBB format: AA is the alpha (transparency) value, RR is the red component, GG is green and BB is blue. Each element is an 8-bit value.

Definition at line 613 of file Bitmap.h.

References pcl::GenericPoint< T >::x, and pcl::GenericPoint< T >::y.

◆ SetPixel() [2/2]

void pcl::Bitmap::SetPixel ( int  x,
int  y,
RGBA  v 
)

Sets the value of a bitmap pixel.

Parameters
x,yBitmap coordinates of the pixel to write. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1).
v32-bit pixel value encoded in the AARRGGBB format: AA is the alpha (transparency) value, RR is the red component, GG is green and BB is blue. Each element is an 8-bit value.