Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

OBITMAP.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

OBITMAP.H

Go to the documentation of this file.
00001 // Filename    : OBITMAP.H
00002 // Description : header file of bitmap class
00003 
00004 #ifndef __OBITMAP_H
00005 #define __OBITMAP_H
00006 
00008 class Bitmap {
00009 public:
00010     short width_field;
00011     short height_field;
00012     unsigned char bitmap[1];                      // indefinite size
00013 
00014 private:
00015     Bitmap();                                     // cannot make any instant
00016 
00017 public:
00018     void  init(short w, short h);
00019 
00020     short get_width() { return width_field; }
00021     short get_height() { return height_field; }
00022     short get_pitch();
00023     short get_true_pitch();
00024     unsigned char *get_ptr() { return bitmap; }
00025     unsigned char *get_ptr(short x, short y);
00026 
00027     long  size();
00028 
00029     // same parameter as init
00030     static Bitmap *mem_add_bitmap(short w, short h);
00031     static long size(short w, short h);           // same parameter as init
00032 };
00033 #endif

Generated on Fri Aug 23 01:37:15 2002 for VirtualU by doxygen1.2.17