libopenraw
thumbnail.h
1 /*
2  * libopenraw - thumbnail.h
3  *
4  * Copyright (C) 2005-2007 Hubert Figuiere
5  *
6  * This library is free software: you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3 of
9  * the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 
22 #ifndef __OPENRAW_THUMBNAIL_H__
23 #define __OPENRAW_THUMBNAIL_H__
24 
25 
26 #include <libopenraw/libopenraw.h>
27 #include <libopenraw++/bitmapdata.h>
28 
29 namespace OpenRaw {
30 
32  class Thumbnail
33  : public BitmapData
34  {
35  public:
36  Thumbnail();
37  virtual ~Thumbnail();
38 
45  static Thumbnail *
46  getAndExtractThumbnail(const char *_filename,
47  uint32_t preferred_size,
48  ::or_error & err);
49 
50  private:
51 
52  Thumbnail(const Thumbnail&);
53  Thumbnail & operator=(const Thumbnail &);
54 
55  class Private;
57  };
58 
59 }
60 
61 #endif
62