39 bool claw::graphic::gif::screen_descriptor::has_global_color_table()
const 41 return (packed & 0x80) != 0;
47 unsigned int claw::graphic::gif::screen_descriptor::color_palette_size()
const 49 if(!has_global_color_table())
52 return 1 << ((packed & 0x07) + 1);
58 claw::graphic::gif::graphic_control_extension::disposal_method
59 claw::graphic::gif::graphic_control_extension::get_disposal_method()
const 61 switch((packed & 0x1C) >> 2)
66 return dispose_do_not_dispose;
68 return dispose_background;
70 return dispose_previous;
72 return dispose_previous;
79 bool claw::graphic::gif::graphic_control_extension::has_transparent_color()
82 return (packed & 0x01) != 0;
88 bool claw::graphic::gif::image_descriptor::has_color_table()
const 90 return (packed & 0x80) != 0;
96 bool claw::graphic::gif::image_descriptor::is_interlaced()
const 98 return (packed & 0x40) != 0;
104 unsigned int claw::graphic::gif::image_descriptor::color_palette_size()
const 106 if(!has_color_table())
109 return 1 << ((packed & 0x07) + 1);
125 frame_list::const_iterator it;
127 for(it = that.m_frame.begin(); it != that.m_frame.end(); ++it)
128 m_frame.push_back(
new frame(**it));
137 reader(*
this, m_frame, f);
145 std::for_each(m_frame.begin(), m_frame.end(),
157 std::swap(tmp, *
this);
168 std::swap(m_frame, that.m_frame);
Function object that deletes a pointer.
This class reads data from a gif file. The image is resized to the size of the screen (as defined in ...
gif & operator=(const gif &that)
Assignment.
One frame in the animation.
frame_iterator frame_begin()
Get an iterator on the beginning of the frame sequence.
frame_iterator frame_end()
Get an iterator on the end of the frame sequence.
Image class for gif files.
Base class for wrapped iterators.
void swap(claw::tween::tweener &a, claw::tween::tweener &b)
Swap two tweeners.
A class for gif pictures.
A class to deal with images.
void swap(gif &that)
Swap the content of two gifs.
Some function object classes.