PCL
|
Functions | |
RGBA | pcl::Bitmap::Pixel (const pcl::Point &p) const |
RGBA | pcl::Bitmap::Pixel (int x, int y) const |
RGBA * | pcl::Bitmap::ScanLine (int y) |
const RGBA * | pcl::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) |
|
inline |
Returns the value of a bitmap pixel.
p | A 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.
RGBA pcl::Bitmap::Pixel | ( | int | x, |
int | y | ||
) | const |
RGBA* pcl::Bitmap::ScanLine | ( | int | y | ) |
Returns the starting address of a row of pixels in this bitmap.
y | Vertical 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.
const RGBA* pcl::Bitmap::ScanLine | ( | int | y | ) | const |
Returns the (constant) starting address of a row of pixels in this bitmap.
y | Vertical coordinate of the row of pixels. Vertical coordinates can vary in the range from 0 to Height()-1. |
|
inline |
Sets the value of a bitmap pixel.
p | A Point object whose coordinates identify the pixel to write. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1). |
v | 32-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.
void pcl::Bitmap::SetPixel | ( | int | x, |
int | y, | ||
RGBA | v | ||
) |
Sets the value of a bitmap pixel.
x,y | Bitmap coordinates of the pixel to write. Pixel coordinates can vary in the range from (0,0) to (Width()-1, Height()-1). |
v | 32-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. |