Main Page   Modules   Compound List   File List   Compound Members   File Members  

Gan_Pixel Struct Reference
[Access Individual Pixels of an Image]

Structure definition for image pixel of any format or type. More...

#include <pixel.h>

List of all members.

Public Attributes

Gan_ImageFormat format
 format of image: grey-level, RGB colour etc.

Gan_Type type
 type of pixel values: unsigned char, float etc.

union {
   union {
      unsigned char   uc
      short   s
      unsigned short   us
      int   i
      unsigned int   ui
      double   d
      float   f
      Gan_Bool   b
      void *   p
      gan_ui8   ui8
      gan_ui16   ui16
      gan_ui32   ui32
   }   gl
   union {
      Gan_GLAPixel_uc   uc
      Gan_GLAPixel_s   s
      Gan_GLAPixel_us   us
      Gan_GLAPixel_i   i
      Gan_GLAPixel_ui   ui
      Gan_GLAPixel_d   d
      Gan_GLAPixel_f   f
      Gan_GLAPixel_ui8   ui8
      Gan_GLAPixel_ui16   ui16
      Gan_GLAPixel_ui32   ui32
   }   gla
   union {
      Gan_RGBPixel_uc   uc
      Gan_RGBPixel_s   s
      Gan_RGBPixel_us   us
      Gan_RGBPixel_i   i
      Gan_RGBPixel_ui   ui
      Gan_RGBPixel_d   d
      Gan_RGBPixel_f   f
      Gan_RGBPixel_ui8   ui8
      Gan_RGBPixel_ui16   ui16
      Gan_RGBPixel_ui32   ui32
   }   rgb
   union {
      Gan_RGBAPixel_uc   uc
      Gan_RGBAPixel_s   s
      Gan_RGBAPixel_us   us
      Gan_RGBAPixel_i   i
      Gan_RGBAPixel_ui   ui
      Gan_RGBAPixel_d   d
      Gan_RGBAPixel_f   f
      Gan_RGBAPixel_ui8   ui8
      Gan_RGBAPixel_ui16   ui16
      Gan_RGBAPixel_ui32   ui32
   }   rgba
   union {
      Gan_Vector2_f   f
      Gan_Vector2   d
      Gan_Vector2_s   s
      Gan_Vector2_i   i
   }   vfield2D
   union {
      Gan_Vector3_f   f
      Gan_Vector3   d
      Gan_Vector3_s   s
      Gan_Vector3_i   i
   }   vfield3D
data
 nested union defining pixel types


Detailed Description

Structure definition for image pixel of any format or type.


Member Data Documentation

union { ... } Gan_Pixel::gl
 

grey level

union { ... } Gan_Pixel::gla
 

grey level with alpha channel

union { ... } Gan_Pixel::rgb
 

RGB colour.

union { ... } Gan_Pixel::rgba
 

RGB colour with alpha channel.

union { ... } Gan_Pixel::vfield2D
 

2D vector field

union { ... } Gan_Pixel::vfield3D
 

3D vector field


The documentation for this struct was generated from the following file:
Generated on Mon Oct 13 16:14:47 2003 by doxygen1.3-rc1