Choreonoid  1.8
Public Member Functions | List of all members
cnoid::Image Class Reference

#include <Image.h>

Public Member Functions

 Image ()
 
 Image (const Image &org)
 
virtual ~Image ()
 
Imageoperator= (const Image &rhs)
 
void reset ()
 
bool empty () const
 
unsigned char * pixels ()
 
const unsigned char * pixels () const
 
int width () const
 
int height () const
 
int numComponents () const
 
bool hasAlphaComponent () const
 
void setSize (int width, int height, int nComponents)
 
void setSize (int width, int height)
 
void clear ()
 
void applyVerticalFlip ()
 
bool load (const std::string &filename, std::ostream &os=nullout())
 
bool save (const std::string &filename, std::ostream &os=nullout()) const
 

Constructor & Destructor Documentation

◆ Image() [1/2]

Image::Image ( )

◆ Image() [2/2]

Image::Image ( const Image org)

◆ ~Image()

Image::~Image ( )
virtual

Member Function Documentation

◆ applyVerticalFlip()

void Image::applyVerticalFlip ( )

◆ clear()

void Image::clear ( )

◆ empty()

bool cnoid::Image::empty ( ) const
inline

◆ hasAlphaComponent()

bool cnoid::Image::hasAlphaComponent ( ) const
inline

◆ height()

int cnoid::Image::height ( ) const
inline

◆ load()

bool Image::load ( const std::string &  filename,
std::ostream &  os = nullout() 
)

◆ numComponents()

int cnoid::Image::numComponents ( ) const
inline

◆ operator=()

Image & Image::operator= ( const Image rhs)

◆ pixels() [1/2]

unsigned char* cnoid::Image::pixels ( )
inline

◆ pixels() [2/2]

const unsigned char* cnoid::Image::pixels ( ) const
inline

◆ reset()

void Image::reset ( )

◆ save()

bool Image::save ( const std::string &  filename,
std::ostream &  os = nullout() 
) const

◆ setSize() [1/2]

void Image::setSize ( int  width,
int  height 
)

◆ setSize() [2/2]

void Image::setSize ( int  width,
int  height,
int  nComponents 
)

◆ width()

int cnoid::Image::width ( ) const
inline

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