39bool claw::graphic::gif::screen_descriptor::has_global_color_table()
const
41 return (packed & 0x80) != 0;
48unsigned int claw::graphic::gif::screen_descriptor::color_palette_size()
const
50 if ( !has_global_color_table() )
53 return 1 << ((packed & 0x07) + 1);
63claw::graphic::gif::graphic_control_extension::disposal_method
64claw::graphic::gif::graphic_control_extension::get_disposal_method()
const
66 switch( (packed & 0x1C) >> 2 )
68 case 0:
return dispose_none;
69 case 1:
return dispose_do_not_dispose;
70 case 2:
return dispose_background;
71 case 3:
return dispose_previous;
73 return dispose_previous;
82claw::graphic::gif::graphic_control_extension::has_transparent_color()
const
84 return (packed & 0x01) != 0;
94bool claw::graphic::gif::image_descriptor::has_color_table()
const
96 return (packed & 0x80) != 0;
103bool claw::graphic::gif::image_descriptor::is_interlaced()
const
105 return (packed & 0x40) != 0;
112unsigned int claw::graphic::gif::image_descriptor::color_palette_size()
const
114 if ( !has_color_table() )
117 return 1 << ((packed & 0x07) + 1);
140 frame_list::const_iterator it;
142 for (it=that.m_frame.begin(); it!=that.m_frame.end(); ++it)
143 m_frame.push_back(
new frame(**it) );
153 reader(*
this, m_frame, f);
175 std::swap(tmp, *
this);
187 std::swap(m_frame, that.m_frame);
Function object that deletes a pointer.
One frame in the animation.
This class reads data from a gif file. The image is resized to the size of the screen (as defined in ...
A class for gif pictures.
frame_iterator frame_end()
Get an iterator on the end of the frame sequence.
void swap(gif &that)
Swap the content of two gifs.
gif & operator=(const gif &that)
Assignment.
frame_iterator frame_begin()
Get an iterator on the beginning of the frame sequence.
A class to deal with images.
Base class for wrapped iterators.
Some function object classes.
Image class for gif files.
void swap(claw::graphic::gif &a, claw::graphic::gif &b)
Swap the content of two gifs.