#include <bitmap.h>
Inheritance diagram for bitmap:


Public Member Functions | |
| bitmap () | |
| bitmap (const istring &filename) | |
| bitmap (application_instance instance, const char *resource) | |
| bitmap (HGLOBAL global) | |
| ~bitmap () | |
| bool | valid () const |
| int | image_size () const |
| int | width () const |
| int | height () const |
| int | colors () const |
| byte * | get_bits () const |
| BITMAPINFOHEADER * | get_header () const |
| BITMAPINFO * | get_info () const |
| RGBQUAD * | get_color_table () const |
| void | reset () |
| bool | paint (HDC context, const RECT &update_rectangle, const RECT &bitmap_portion) const |
| palette & | get_palette () const |
| bool | load_from_file (const istring &fileName) |
| bool | load_from_global (HGLOBAL glob) |
| bool | load_from_resource (application_instance instance, const char *resource) |
| bitmap (canvas &draw_on, int width=1, int height=1, const c_point &origin=c_point(0, 0)) | |
| bitmap (const bitmap &to_copy_from) | |
| ~bitmap (void) | |
| virtual void | draw () |
| virtual void | erase () |
| void | reset (int width, int height) |
| virtual c_rectangle | dimensions () |
| bitmap & | operator= (const bitmap &to_assign_from) |
| bool | read_bitmap (const char *name_of_bitmap_file) |
| bool | write_bitmap (const char *name_of_bitmap_file) |
Protected Member Functions | |
| int | warp (int to_warp) const |
Protected Attributes | |
| int | _height |
| int | _width |
| byte * | _image |
Definition at line 30 of file bitmap.h.
| bitmap::bitmap | ( | ) |
Definition at line 35 of file bitmap.cpp.
| bitmap::bitmap | ( | const istring & | filename | ) |
| bitmap::bitmap | ( | application_instance | instance, | |
| const char * | resource | |||
| ) |
| bitmap::bitmap | ( | HGLOBAL | global | ) |
| bitmap::~bitmap | ( | ) |
| bitmap::bitmap | ( | canvas & | draw_on, | |
| int | width = 1, |
|||
| int | height = 1, |
|||
| const c_point & | origin = c_point(0, 0) | |||
| ) |
| bitmap::bitmap | ( | const bitmap & | to_copy_from | ) |
| bitmap::~bitmap | ( | void | ) |
| bool bitmap::valid | ( | ) | const [inline] |
| int bitmap::image_size | ( | ) | const |
| int bitmap::width | ( | ) | const |
| int bitmap::height | ( | ) | const |
Definition at line 255 of file bitmap.cpp.
Referenced by image_size(), paint(), and static_bitmap::paint().
| int bitmap::colors | ( | ) | const |
| byte * bitmap::get_bits | ( | ) | const |
Definition at line 273 of file bitmap.cpp.
| BITMAPINFOHEADER * bitmap::get_header | ( | ) | const |
Definition at line 267 of file bitmap.cpp.
| BITMAPINFO * bitmap::get_info | ( | ) | const |
Definition at line 269 of file bitmap.cpp.
| RGBQUAD * bitmap::get_color_table | ( | ) | const |
Definition at line 271 of file bitmap.cpp.
| void bitmap::reset | ( | ) |
Definition at line 62 of file bitmap.cpp.
References NIL, and palette::reset().
Referenced by bitmap(), load_from_file(), load_from_global(), load_from_resource(), and ~bitmap().
| bool bitmap::paint | ( | HDC | context, | |
| const RECT & | update_rectangle, | |||
| const RECT & | bitmap_portion | |||
| ) | const |
Definition at line 275 of file bitmap.cpp.
References height(), HEIGHT, NIL, valid(), WIDTH, and palette::win_palette().
Referenced by static_bitmap::paint().
| palette& bitmap::get_palette | ( | ) | const [inline] |
| bool bitmap::load_from_file | ( | const istring & | fileName | ) |
Definition at line 105 of file bitmap.cpp.
References byte_filer::close(), colors(), byte_filer::FROM_START, byte_filer::good(), byte_filer::length(), NIL, byte_filer::read(), read, reset(), and byte_filer::seek().
Referenced by bitmap(), and static_bitmap::load().
| bool bitmap::load_from_global | ( | HGLOBAL | glob | ) |
Definition at line 95 of file bitmap.cpp.
References reset().
Referenced by bitmap(), and load_from_resource().
| bool bitmap::load_from_resource | ( | application_instance | instance, | |
| const char * | resource | |||
| ) |
Definition at line 82 of file bitmap.cpp.
References load_from_global(), and reset().
Referenced by bitmap(), and static_bitmap::load().
| void bitmap::draw | ( | ) | [virtual] |
Reimplemented from paintable.
Definition at line 97 of file bitmap.cpp.
References geometric::screen_rectangle::bottom_left(), c_rectangle, paintable::target(), and canvas::world().
| void bitmap::erase | ( | ) | [virtual] |
| void bitmap::reset | ( | int | width, | |
| int | height | |||
| ) |
Definition at line 56 of file bitmap.cpp.
References _height, _image, _width, allocate(), and WHACK().
| c_rectangle bitmap::dimensions | ( | ) | [virtual] |
Definition at line 64 of file bitmap.cpp.
References _height, _width, c_point, c_rectangle, and drawable::origin().
| bool bitmap::read_bitmap | ( | const char * | name_of_bitmap_file | ) |
Definition at line 69 of file bitmap.cpp.
References _height, _image, _width, allocate(), fail(), and WHACK().
| bool bitmap::write_bitmap | ( | const char * | name_of_bitmap_file | ) |
| int bitmap::warp | ( | int | to_warp | ) | const [protected] |
int bitmap::_height [protected] |
Definition at line 69 of file bitmap.h.
Referenced by dimensions(), read_bitmap(), reset(), warp(), and write_bitmap().
int bitmap::_width [protected] |
Definition at line 70 of file bitmap.h.
Referenced by dimensions(), read_bitmap(), reset(), and write_bitmap().
byte* bitmap::_image [protected] |
1.5.1