Bitmap.h File Reference

#include "Object.h"
#include "JString.h"
#include "JTime.h"
#include "Color.h"
#include <stdio.h>
#include <math.h>
#include "MathClasses.h"
#include "DataSample.h"
#include "BitmapUpdate.h"
#include "HTML.h"

Include dependency graph for Bitmap.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cmlabs

Classes

struct  cmlabs::tagBITMAPFILEHEADER
struct  cmlabs::tagBITMAPINFOHEADER
struct  cmlabs::tagRGBA
class  cmlabs::Pixel
class  cmlabs::Bitmap

Defines

#define AFX_BITMAP_H__7CFDF35A_B689_4481_8F4C_EF7B5AD00BE7__INCLUDED_
#define GET_RGB_FROM_RGBA(a)   (a & 0x00ffffff)
#define GET_R_FROM_RGBA(a)   (unsigned char)(a & 0x000000ff)
#define GET_G_FROM_RGBA(a)   (unsigned char)((a & 0x0000ff00)>>8)
#define GET_B_FROM_RGBA(a)   (unsigned char)((a & 0x00ff0000)>>16)
#define GET_RGB_FROM_GRAY(a)   (unsigned int)(((unsigned int)a<<16) + ((unsigned int)a<<8) + (unsigned int)a)
#define GET_RGB_FROM_COMP(r, g, b)   (unsigned int)((((unsigned int)b)<<16) + (((unsigned int)g)<<8) + (unsigned int)r)
#define GET_GRAY_FROM_RGB(a)   (unsigned char)((GET_R_FROM_RGBA(a)+GET_G_FROM_RGBA(a)+GET_B_FROM_RGBA(a))/3)
#define GET_DRGB_FROM_2RGBS(a, b)   (((unsigned int)GET_R_FROM_RGBA(a)>>3)<<27) + (((unsigned int)GET_G_FROM_RGBA(a)>>2)<<21) + (((unsigned int)GET_B_FROM_RGBA(a)>>3)<<16) + (((unsigned int)GET_R_FROM_RGBA(b)>>3)<<11) + (((unsigned int)GET_G_FROM_RGBA(b)>>2)<<5) + (((unsigned int)GET_B_FROM_RGBA(b)>>3)<<0)
#define GET_FIRSTRGB_FROM_DRGB(a)   ((unsigned int)((unsigned short)((a>>16)&0xF800)>>8)) | ((unsigned int)((unsigned short)((a>>16)&0xE000)>>13)) | ((unsigned int)((unsigned short)((a>>16)&0x07E0)<<5)) | ((unsigned int)((unsigned short)((a>>16)&0x0600))>>1) | ((unsigned int)((unsigned short)(a>>16)&0x001F)<<19) | (((unsigned int)(unsigned short)(a>>16)&0x001C)<<14)
#define GET_SECONDRGB_FROM_DRGB(a)   ((unsigned int)((unsigned short)(a&0xF800)>>8)) | ((unsigned int)((unsigned short)(a&0xE000)>>13)) | ((unsigned int)((unsigned short)(a&0x07E0)<<5)) | ((unsigned int)((unsigned short)(a&0x0600))>>1) | ((unsigned int)((unsigned short)a&0x001F)<<19) | (((unsigned int)(unsigned short)a&0x001C)<<14)
#define DATACTRL   1
#define RLECTRL   2
#define DIFCTRL   3

Typedefs

typedef unsigned char cmlabs::BYTE
typedef unsigned int cmlabs::UINT
typedef unsigned int cmlabs::DWORD
typedef unsigned short cmlabs::WORD
typedef signed int cmlabs::LONG
typedef struct
cmlabs::tagBITMAPFILEHEADER 
cmlabs::BITMAPFILEHEADER
typedef struct
cmlabs::tagBITMAPINFOHEADER 
cmlabs::BITMAPINFOHEADER
typedef struct cmlabs::tagRGBA cmlabs::valRGBA

Functions

char * cmlabs::ImageResizeDown66 (char *bytesource, int &cols, int &rows)
char * cmlabs::ImageResizeDown (char *bytesource, int &cols, int &rows, int factor)
char * cmlabs::ImageResizeUp66 (char *bytesource, int &cols, int &rows)
char * cmlabs::ImageResizeUp (char *bytesource, int &cols, int &rows, int factor)


Define Documentation

#define AFX_BITMAP_H__7CFDF35A_B689_4481_8F4C_EF7B5AD00BE7__INCLUDED_

Definition at line 28 of file Bitmap.h.

#define DATACTRL   1

Definition at line 73 of file Bitmap.h.

#define DIFCTRL   3

Definition at line 75 of file Bitmap.h.

#define GET_B_FROM_RGBA (  )     (unsigned char)((a & 0x00ff0000)>>16)

Definition at line 45 of file Bitmap.h.

#define GET_DRGB_FROM_2RGBS ( a,
 )     (((unsigned int)GET_R_FROM_RGBA(a)>>3)<<27) + (((unsigned int)GET_G_FROM_RGBA(a)>>2)<<21) + (((unsigned int)GET_B_FROM_RGBA(a)>>3)<<16) + (((unsigned int)GET_R_FROM_RGBA(b)>>3)<<11) + (((unsigned int)GET_G_FROM_RGBA(b)>>2)<<5) + (((unsigned int)GET_B_FROM_RGBA(b)>>3)<<0)

Definition at line 51 of file Bitmap.h.

#define GET_FIRSTRGB_FROM_DRGB (  )     ((unsigned int)((unsigned short)((a>>16)&0xF800)>>8)) | ((unsigned int)((unsigned short)((a>>16)&0xE000)>>13)) | ((unsigned int)((unsigned short)((a>>16)&0x07E0)<<5)) | ((unsigned int)((unsigned short)((a>>16)&0x0600))>>1) | ((unsigned int)((unsigned short)(a>>16)&0x001F)<<19) | (((unsigned int)(unsigned short)(a>>16)&0x001C)<<14)

Definition at line 52 of file Bitmap.h.

#define GET_G_FROM_RGBA (  )     (unsigned char)((a & 0x0000ff00)>>8)

Definition at line 44 of file Bitmap.h.

#define GET_GRAY_FROM_RGB (  )     (unsigned char)((GET_R_FROM_RGBA(a)+GET_G_FROM_RGBA(a)+GET_B_FROM_RGBA(a))/3)

Definition at line 48 of file Bitmap.h.

#define GET_R_FROM_RGBA (  )     (unsigned char)(a & 0x000000ff)

Definition at line 43 of file Bitmap.h.

#define GET_RGB_FROM_COMP ( r,
g,
 )     (unsigned int)((((unsigned int)b)<<16) + (((unsigned int)g)<<8) + (unsigned int)r)

Definition at line 47 of file Bitmap.h.

#define GET_RGB_FROM_GRAY (  )     (unsigned int)(((unsigned int)a<<16) + ((unsigned int)a<<8) + (unsigned int)a)

Definition at line 46 of file Bitmap.h.

#define GET_RGB_FROM_RGBA (  )     (a & 0x00ffffff)

Definition at line 33 of file Bitmap.h.

#define GET_SECONDRGB_FROM_DRGB (  )     ((unsigned int)((unsigned short)(a&0xF800)>>8)) | ((unsigned int)((unsigned short)(a&0xE000)>>13)) | ((unsigned int)((unsigned short)(a&0x07E0)<<5)) | ((unsigned int)((unsigned short)(a&0x0600))>>1) | ((unsigned int)((unsigned short)a&0x001F)<<19) | (((unsigned int)(unsigned short)a&0x001C)<<14)

Definition at line 53 of file Bitmap.h.

#define RLECTRL   2

Definition at line 74 of file Bitmap.h.


Generated on Tue Jul 7 16:17:14 2009 for CoreLibrary by  doxygen 1.5.6