Blame lib/thumbnail.hpp

rpm-build d2b433
/*
rpm-build d2b433
 * libopenraw - thumbnail.h
rpm-build d2b433
 *
rpm-build d2b433
 * Copyright (C) 2005-2007 Hubert Figuiere
rpm-build d2b433
 *
rpm-build d2b433
 * This library is free software: you can redistribute it and/or
rpm-build d2b433
 * modify it under the terms of the GNU Lesser General Public License
rpm-build d2b433
 * as published by the Free Software Foundation, either version 3 of
rpm-build d2b433
 * the License, or (at your option) any later version.
rpm-build d2b433
 *
rpm-build d2b433
 * This library is distributed in the hope that it will be useful,
rpm-build d2b433
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build d2b433
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build d2b433
 * Lesser General Public License for more details.
rpm-build d2b433
 *
rpm-build d2b433
 * You should have received a copy of the GNU Lesser General Public
rpm-build d2b433
 * License along with this library.  If not, see
rpm-build d2b433
 * <http://www.gnu.org/licenses/>.
rpm-build d2b433
 */
rpm-build d2b433
rpm-build d2b433
rpm-build d2b433
#ifndef LIBOPENRAWPP_THUMBNAIL_H_
rpm-build d2b433
#define LIBOPENRAWPP_THUMBNAIL_H_
rpm-build d2b433
rpm-build d2b433
#include "bitmapdata.hpp"
rpm-build d2b433
rpm-build d2b433
namespace OpenRaw {
rpm-build d2b433
rpm-build d2b433
/** real thumbnail extracted */
rpm-build d2b433
	class Thumbnail 
rpm-build d2b433
		: public BitmapData
rpm-build d2b433
	{
rpm-build d2b433
	public:
rpm-build d2b433
		Thumbnail();
rpm-build d2b433
		virtual ~Thumbnail();
rpm-build d2b433
rpm-build d2b433
		/** quick and dirty "get this thumbnail" 
rpm-build d2b433
		 * @param _filename the filename
rpm-build d2b433
		 * @param preferred_size the size of the thumbnail
rpm-build d2b433
		 * @retval err the error code
rpm-build d2b433
		 * @return a Thumbnail object. Callers own it and must delete it.
rpm-build d2b433
		 */
rpm-build d2b433
		static Thumbnail *
rpm-build d2b433
		getAndExtractThumbnail(const char *_filename,
rpm-build d2b433
													 uint32_t preferred_size,
rpm-build d2b433
													 ::or_error & err);
rpm-build d2b433
rpm-build d2b433
	private:
rpm-build d2b433
rpm-build d2b433
		Thumbnail(const Thumbnail&);
rpm-build d2b433
		Thumbnail & operator=(const Thumbnail &);
rpm-build d2b433
rpm-build d2b433
		class Private;
rpm-build d2b433
		Thumbnail::Private *d;
rpm-build d2b433
	};
rpm-build d2b433
rpm-build d2b433
}
rpm-build d2b433
rpm-build d2b433
#endif
rpm-build d2b433