Main Page   Modules   Compound List   File List   Compound 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 Mon Oct 13 16:14:50 2003 by doxygen1.3-rc1