Main Page | Modules | Class List | File List | Class Members | File Members

Return Size Attributes of a Pixel or an Image
[Image Package]


Functions

size_t gan_image_pixel_size (Gan_ImageFormat format, Gan_Type type)
 Returns the size of an image pixel in bytes.
size_t gan_image_min_stride (Gan_ImageFormat format, Gan_Type type, unsigned long width, size_t alignment)
 Returns the minimum size of a row of image pixels in bytes.

Function Documentation

size_t gan_image_min_stride Gan_ImageFormat  format,
Gan_Type  type,
unsigned long  width,
size_t  alignment
 

Returns the minimum size of a row of image pixels in bytes.

Parameters:
format The format of the image pixel
type The type of the image pixel
width The number of image pixels on a row
alignment The byte alignment of a row of the image or zero
Returns:
The number of bytes in a row.
Returns the minimum size of a row of image pixels in bytes, given the format, type and width of the image. The size is padded to a multiple of the alignment value, unless alignment is passed as zero, in which case no padding occurs.

size_t gan_image_pixel_size Gan_ImageFormat  format,
Gan_Type  type
 

Returns the size of an image pixel in bytes.

Parameters:
format The format of the image pixel
type The type of the image pixel
Returns:
The size of the image pixel.
Returns the size of an image pixel in bytes.


Generated on Fri Mar 17 12:45:01 2006 by  doxygen 1.3.9.1