Image_buffer16 Class Reference

#include <ibuf16.h>

Inheritance diagram for Image_buffer16:

Inheritance graph
[legend]
Collaboration diagram for Image_buffer16:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Image_buffer16 (unsigned int w, unsigned int h, int dpth)
 ~Image_buffer16 ()
unsigned short rgb (unsigned short r, unsigned short g, unsigned short b)
void set_palette_color (unsigned char num, unsigned short r, unsigned short g, unsigned short b)
void set_palette (unsigned char *rgbs, int maxval, int brightness=100)
void rotate_colors (int first, int num, int upd)
virtual void fill16 (unsigned short pix)
virtual void fill16 (unsigned short pix, int srcw, int srch, int destx, int desty)
virtual void fill_line16 (unsigned short pix, int srcw, int destx, int desty)
virtual void copy16 (unsigned short *src_pixels, int srcw, int srch, int destx, int desty)
virtual Image_buffercreate_another (int w, int h)
virtual void copy (int srcx, int srcy, int srcw, int srch, int destx, int desty)
virtual void get (Image_buffer *dest, int srcx, int srcy)
virtual void put (Image_buffer *src, int destx, int desty)
virtual void fill_static (int black, int gray, int white)
virtual void fill8 (unsigned char val)
virtual void fill8 (unsigned char val, int srcw, int srch, int destx, int desty)
virtual void fill_line8 (unsigned char val, int srcw, int destx, int desty)
virtual void copy8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)
virtual void copy_line8 (unsigned char *src_pixels, int srcw, int destx, int desty)
virtual void copy_line_translucent8 (unsigned char *src_pixels, int srcw, int destx, int desty, int first_translucent, int last_translucent, Xform_palette *xforms)
virtual void fill_line_translucent8 (unsigned char val, int srcw, int destx, int desty, Xform_palette &xform)
virtual void fill_translucent8 (unsigned char val, int srcw, int srch, int destx, int desty, Xform_palette &xform)
virtual void copy_transparent8 (unsigned char *src_pixels, int srcw, int srch, int destx, int desty)

Private Member Functions

void create_default_palette ()
unsigned short * get_pixels ()

Private Attributes

unsigned short * palette

Detailed Description

Definition at line 30 of file ibuf16.h.


Constructor & Destructor Documentation

Image_buffer16::Image_buffer16 ( unsigned int  w,
unsigned int  h,
int  dpth 
) [inline]

Definition at line 37 of file ibuf16.h.

References Image_buffer::bits, and create_default_palette().

Referenced by create_another().

Here is the call graph for this function:

Image_buffer16::~Image_buffer16 (  )  [inline]

Definition at line 43 of file ibuf16.h.

References palette.


Member Function Documentation

void Image_buffer16::create_default_palette (  )  [private]

Definition at line 41 of file ibuf16.cc.

Referenced by Image_buffer16().

unsigned short* Image_buffer16::get_pixels (  )  [inline, private]

Definition at line 34 of file ibuf16.h.

References Image_buffer::bits.

Referenced by fill_static().

unsigned short Image_buffer16::rgb ( unsigned short  r,
unsigned short  g,
unsigned short  b 
) [inline]

Definition at line 48 of file ibuf16.h.

Referenced by set_palette_color().

void Image_buffer16::set_palette_color ( unsigned char  num,
unsigned short  r,
unsigned short  g,
unsigned short  b 
) [inline]

Definition at line 52 of file ibuf16.h.

References palette, and rgb().

Here is the call graph for this function:

void Image_buffer16::set_palette ( unsigned char *  rgbs,
int  maxval,
int  brightness = 100 
)

Definition at line 259 of file ibuf16.cc.

References Get_color16().

Here is the call graph for this function:

void Image_buffer16::rotate_colors ( int  first,
int  num,
int  upd 
)

Definition at line 280 of file ibuf16.cc.

void Image_buffer16::fill16 ( unsigned short  pix  )  [virtual]

Reimplemented from Image_buffer.

Definition at line 56 of file ibuf16.cc.

References height.

Referenced by fill8().

void Image_buffer16::fill16 ( unsigned short  pix,
int  srcw,
int  srch,
int  destx,
int  desty 
) [virtual]

Reimplemented from Image_buffer.

Definition at line 71 of file ibuf16.cc.

void Image_buffer16::fill_line16 ( unsigned short  pix,
int  srcw,
int  destx,
int  desty 
) [virtual]

Definition at line 96 of file ibuf16.cc.

Referenced by fill_line8().

void Image_buffer16::copy16 ( unsigned short *  src_pixels,
int  srcw,
int  srch,
int  destx,
int  desty 
) [virtual]

Reimplemented from Image_buffer.

Definition at line 116 of file ibuf16.cc.

Referenced by put().

virtual Image_buffer* Image_buffer16::create_another ( int  w,
int  h 
) [inline, virtual]

Implements Image_buffer.

Definition at line 79 of file ibuf16.h.

References Image_buffer::depth, and Image_buffer16().

Here is the call graph for this function:

void Image_buffer16::copy ( int  srcx,
int  srcy,
int  srcw,
int  srch,
int  destx,
int  desty 
) [virtual]

Implements Image_buffer.

Definition at line 145 of file ibuf16.cc.

void Image_buffer16::get ( Image_buffer dest,
int  srcx,
int  srcy 
) [virtual]

Implements Image_buffer.

Definition at line 180 of file ibuf16.cc.

References Image_buffer::bits, Image_buffer::get_height(), Image_buffer::get_width(), and Image_buffer::line_width.

Here is the call graph for this function:

void Image_buffer16::put ( Image_buffer src,
int  destx,
int  desty 
) [virtual]

Implements Image_buffer.

Definition at line 211 of file ibuf16.cc.

References Image_buffer::bits, copy16(), Image_buffer::get_height(), and Image_buffer::get_width().

Here is the call graph for this function:

void Image_buffer16::fill_static ( int  black,
int  gray,
int  white 
) [virtual]

Implements Image_buffer.

Definition at line 223 of file ibuf16.cc.

References get_pixels(), Image_buffer::height, palette, and Image_buffer::width.

Here is the call graph for this function:

virtual void Image_buffer16::fill8 ( unsigned char  val  )  [inline, virtual]

Implements Image_buffer.

Definition at line 95 of file ibuf16.h.

References fill16(), and palette.

Referenced by fill_translucent8().

Here is the call graph for this function:

virtual void Image_buffer16::fill8 ( unsigned char  val,
int  srcw,
int  srch,
int  destx,
int  desty 
) [inline, virtual]

Implements Image_buffer.

Definition at line 98 of file ibuf16.h.

References fill16(), and palette.

Here is the call graph for this function:

virtual void Image_buffer16::fill_line8 ( unsigned char  val,
int  srcw,
int  destx,
int  desty 
) [inline, virtual]

Implements Image_buffer.

Definition at line 103 of file ibuf16.h.

References fill_line16(), and palette.

Referenced by fill_line_translucent8().

Here is the call graph for this function:

void Image_buffer16::copy8 ( unsigned char *  src_pixels,
int  srcw,
int  srch,
int  destx,
int  desty 
) [virtual]

Implements Image_buffer.

Definition at line 299 of file ibuf16.cc.

void Image_buffer16::copy_line8 ( unsigned char *  src_pixels,
int  srcw,
int  destx,
int  desty 
) [virtual]

Implements Image_buffer.

Definition at line 328 of file ibuf16.cc.

Referenced by copy_line_translucent8().

virtual void Image_buffer16::copy_line_translucent8 ( unsigned char *  src_pixels,
int  srcw,
int  destx,
int  desty,
int  first_translucent,
int  last_translucent,
Xform_palette xforms 
) [inline, virtual]

Implements Image_buffer.

Definition at line 114 of file ibuf16.h.

References copy_line8().

Here is the call graph for this function:

virtual void Image_buffer16::fill_line_translucent8 ( unsigned char  val,
int  srcw,
int  destx,
int  desty,
Xform_palette xform 
) [inline, virtual]

Implements Image_buffer.

Definition at line 120 of file ibuf16.h.

References fill_line8().

Here is the call graph for this function:

virtual void Image_buffer16::fill_translucent8 ( unsigned char  val,
int  srcw,
int  srch,
int  destx,
int  desty,
Xform_palette xform 
) [inline, virtual]

Implements Image_buffer.

Definition at line 124 of file ibuf16.h.

References fill8().

Here is the call graph for this function:

void Image_buffer16::copy_transparent8 ( unsigned char *  src_pixels,
int  srcw,
int  srch,
int  destx,
int  desty 
) [virtual]

Implements Image_buffer.

Definition at line 350 of file ibuf16.cc.


Member Data Documentation

unsigned short* Image_buffer16::palette [private]

Definition at line 32 of file ibuf16.h.

Referenced by fill8(), fill_line8(), fill_static(), set_palette_color(), and ~Image_buffer16().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:55:59 2007 for ExultEngine by  doxygen 1.5.1