libopenraw  0.3.7
thumbnail.hpp
1 /*
2  * libopenraw - thumbnail.h
3  *
4  * Copyright (C) 2005-2020 Hubert Figuière
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 LIBOPENRAWPP_THUMBNAIL_H_
23 #define LIBOPENRAWPP_THUMBNAIL_H_
24 
25 #include "bitmapdata.hpp"
26 
27 namespace OpenRaw {
28 
30  class Thumbnail
31  : public BitmapData
32  {
33  public:
34  Thumbnail();
35  virtual ~Thumbnail();
36 
43  static Thumbnail *
44  getAndExtractThumbnail(const char* filename,
45  uint32_t preferred_size, ::or_error & err);
46 
47  private:
48 
49  Thumbnail(const Thumbnail&);
50  Thumbnail & operator=(const Thumbnail &);
51 
52  class Private;
54  };
55 
56 }
57 
58 #endif
59 
Represent some bitmap data.
Definition: bitmapdata.hpp:30
Represent a thumbnail.
Definition: thumbnail.hpp:32
static Thumbnail * getAndExtractThumbnail(const char *filename, uint32_t preferred_size, ::or_error &err)
Quick and dirty "get this thumbnail".
Definition: thumbnail.cpp:53
or_error
Error codes returned by libopenraw.
Definition: consts.h:42
Global namespace for libopenraw.
Definition: arwfile.cpp:29