68 image (SDL_Surface *s,
const SDL_Color & color);
296 zoom (src, l, h, x, y);
333 tile (src, l, h, x, y);
void tile_to(const surface &src, u_int16 l, u_int16 h, u_int16 x=0, u_int16 y=0)
Synonym of tile () to guarantee its access from Python.
s_int8 get_pnm(SDL_RWops *file)
Loads an image from an opened file, in PNM format, without alpha and mask values. ...
Class to write data from a Gzip compressed file.
u_int16 length() const
Returns the length of the drawable.
u_int8 scale() const
Get the surfaces current scaling factor.
Class to read data from a Gzip compressed file.
void resize(u_int16 l, u_int16 h)
Resize this image.
#define u_int16
16 bits long unsigned integer
virtual ~image()
Destructor.
s_int8 load(string fname)
Loads an image from a file name, in game internal format, with alpha and mask values.
Class where drawables can actually be drawn to.
Declares the screen class.
Image manipulation class.
#define u_int8
8 bits long unsigned integer
image()
Default constructor.
void tile(const surface &src)
Tiles a surface.
void clear()
Resets the image to it's initial state, that is totally empty.
s_int8 save(string fname) const
Saves an image into an file, in game format, with alpha and mask values.
void zoom_to(const surface &src, u_int16 l, u_int16 h, u_int16 x=0, u_int16 y=0)
Synonym of zoom () to guarantee its access from Python.
s_int8 load_raw(string fname)
Loads an image from a file name, in game internal format, without alpha and mask values.
s_int8 put_pnm(SDL_RWops *file) const
Saves an image into an opened file, in PNM format, without alpha and mask values. ...
s_int8 save_pnm(string fname) const
Saves an image into an file, in PNM format, without alpha and mask values.
s_int8 put(ogzstream &file) const
Saves an image into an opened file, in game format, with alpha and mask values.
image & operator=(const image &src)
Image copy (similar to copy ()).
void copy(const image &src)
Synonym of operator = to guarantee its access from Python.
u_int16 height() const
Returns the height of the drawable.
void zoom(const surface &src)
Zooms a surface.
s_int8 put_raw(ogzstream &file) const
Saves an image into an opened file, in game format, without alpha and mask values.
void brightness(const surface &src, u_int8 cont, bool proceed_mask=false)
Applies a "brightness" to a surface.
Declares the igzstream, ogzstream and fileops classes.
s_int8 load_pnm(string fname)
Loads an image from a file name, in PNM format, without alpha and mask values.
s_int8 save_raw(string fname) const
Saves an image into an file, in game format, without alpha and mask values.
s_int8 get_raw(igzstream &file)
Loads an image from an opened file, saved in game internal format, without alpha and mask values...
#define s_int8
8 bits long signed integer