39bool claw::graphic::gif::screen_descriptor::has_global_color_table()
const
41 return (packed & 0x80) != 0;
47unsigned int claw::graphic::gif::screen_descriptor::color_palette_size()
const
49 if(!has_global_color_table())
52 return 1 << ((packed & 0x07) + 1);
58claw::graphic::gif::graphic_control_extension::disposal_method
59claw::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;
79bool claw::graphic::gif::graphic_control_extension::has_transparent_color()
82 return (packed & 0x01) != 0;
88bool claw::graphic::gif::image_descriptor::has_color_table()
const
90 return (packed & 0x80) != 0;
96bool claw::graphic::gif::image_descriptor::is_interlaced()
const
98 return (packed & 0x40) != 0;
104unsigned 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(),
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.
wrapped_iterator< frame, frame_list::iterator, claw::dereference< frame > >::iterator_type frame_iterator
Iterator on the content of the gif.
wrapped_iterator< constframe, frame_list::const_iterator, claw::const_dereference< frame > >::iterator_type const_frame_iterator
Iterator on the content of the gif.
frame_iterator frame_begin()
Get an iterator on the beginning of the frame sequence.
void swap(image &that)
Swap the content of two images.
image()
Constructor. Creates an image without datas.
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.