Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PNMImage::CRow Class Reference

Public Member Functions

 CRow (const PNMImage &image, int y)
 
xelval get_alpha_val (int x) const
 Fetch the alpha value at the given column in the row.
 
xel get_xel_val (int x) const
 Fetch the pixel at the given column in the row.
 
LColorf operator[] (int x) const
 Fetch the RGB value at the given column in the row.
 
size_t size () const
 Get the number of pixels in the row.
 

Detailed Description

Definition at line 303 of file pnmImage.h.

Constructor & Destructor Documentation

◆ CRow()

PNMImage::CRow::CRow ( const PNMImage & image,
int y )
inline

Definition at line 1041 of file pnmImage.I.

Member Function Documentation

◆ get_alpha_val()

xelval PNMImage::CRow::get_alpha_val ( int x) const
inline

Fetch the alpha value at the given column in the row.

Definition at line 1073 of file pnmImage.I.

◆ get_xel_val()

xel PNMImage::CRow::get_xel_val ( int x) const
inline

Fetch the pixel at the given column in the row.

Definition at line 1065 of file pnmImage.I.

◆ operator[]()

LColorf PNMImage::CRow::operator[] ( int x) const
inline

Fetch the RGB value at the given column in the row.

Definition at line 1057 of file pnmImage.I.

◆ size()

size_t PNMImage::CRow::size ( ) const
inline

Get the number of pixels in the row.

Definition at line 1049 of file pnmImage.I.


The documentation for this class was generated from the following files: