ScummVM API documentation
thumbnail.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef GRAPHICS_THUMBNAIL_H
23 #define GRAPHICS_THUMBNAIL_H
24 
25 #include "common/scummsys.h"
26 
27 namespace Common{
28 class SeekableReadStream;
29 class WriteStream;
30 }
31 
32 namespace Graphics {
33 
43 struct Surface;
44 
52 
59 
63 bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail = false);
64 
69 
75 
79 bool saveThumbnail(Common::WriteStream &out, const Graphics::Surface &thumb);
80 
88 
96 Graphics::Surface *scale(const Graphics::Surface &srcImage, int xSize, int ySize);
97 
99 } // End of namespace Graphics
100 
101 #endif
Definition: surface.h:66
Definition: stream.h:77
bool checkThumbnailHeader(Common::SeekableReadStream &in)
Definition: stream.h:745
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface *&thumbnail, bool skipThumbnail=false)
bool saveThumbnail(Common::WriteStream &out, const Graphics::Surface &thumb)
bool createThumbnail(Graphics::Surface &thumb)
Definition: algorithm.h:29
Definition: formatinfo.h:28
bool skipThumbnail(Common::SeekableReadStream &in)
bool createScreenShot(Graphics::Surface &surf)