libopenraw  0.3.7
Classes | Static Public Member Functions | List of all members
OpenRaw::Thumbnail Class Reference

Represent a thumbnail. More...

#include <thumbnail.hpp>

Inheritance diagram for OpenRaw::Thumbnail:
OpenRaw::BitmapData

Classes

class  Private
 

Static Public Member Functions

static ThumbnailgetAndExtractThumbnail (const char *filename, uint32_t preferred_size, ::or_error &err)
 Quick and dirty "get this thumbnail". More...
 

Additional Inherited Members

- Public Types inherited from OpenRaw::BitmapData
typedef ::or_data_type DataType
 
- Public Member Functions inherited from OpenRaw::BitmapData
void swap (BitmapData &with)
 Swap the two objects data.
 
DataType dataType () const
 Get the data type.
 
void setDataType (DataType _type)
 Set the data type.
 
virtual void * allocData (const size_t s)
 
size_t size () const
 Get the size of the data.
 
void * data () const
 
uint32_t width () const
 Width of the image data.
 
uint32_t height () const
 Height of the image data.
 
uint32_t bpc () const
 Bit per channel.
 
void setBpc (uint32_t _bpc)
 Set bit per channel.
 
virtual void setDimensions (uint32_t x, uint32_t y)
 Set the pixel dimensions of the bitmap.
 
void adjustSize (size_t size)
 

Detailed Description

Represent a thumbnail.

Definition at line 30 of file thumbnail.hpp.

Member Function Documentation

◆ getAndExtractThumbnail()

Thumbnail * OpenRaw::Thumbnail::getAndExtractThumbnail ( const char *  filename,
uint32_t  preferred_size,
::or_error err 
)
static

Quick and dirty "get this thumbnail".

Parameters
filenameThe filename to get the thumbnail from
preferred_sizeThe size of the thumbnail.
Return values
errthe error code
Returns
a Thumbnail object. Caller owns it and must delete it.

Definition at line 53 of file thumbnail.cpp.

References OpenRaw::RawFile::newRawFile(), OR_ERROR_CANT_OPEN, and OR_ERROR_NONE.


The documentation for this class was generated from the following files: