Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

uint32_t phImage::calculateSize uint32_t  w,
uint32_t  h,
int32_t  f
[protected]
 

This calculates the size of an unsigned char type buffer given the width, height, and phImageType format.

Parameters:
w The width of the image data.
h The height of the image data.
f The phImageType format of the image data.
Returns:
An unsigned integer containing the memory size required to store an image of w x h of format f.
Return values:
0 There was an error in calculating the size or the size of the image would be zero.

Definition at line 224 of file phImage.cpp.





Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:44:54 2007 for phission by  doxygen 1.4.4