xref: /haiku/src/apps/icon-o-matic/import_export/bitmap/BitmapExporter.h (revision c237c4ce593ee823d9867fd997e51e4c447f5623)
1 /*
2  * Copyright 2006, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef BITMAP_EXPORTER_H
10 #define BITMAP_EXPORTER_H
11 
12 #include "Exporter.h"
13 
14 /*! Exports to an arbitrary image format.
15 	Uses BBitmap and a Translator to turn an image into the desired format.
16 
17 	\note Currently only exports to the PNG format.
18 */
19 class BitmapExporter : public Exporter {
20  public:
21 								BitmapExporter(uint32 size);
22 	virtual						~BitmapExporter();
23 
24 	virtual	status_t			Export(const Icon* icon,
25 									   BPositionIO* stream);
26 
27 	virtual	const char*			MIMEType();
28 
29  private:
30 			uint32				fFormat;
31 			uint32				fSize;
32 };
33 
34 #endif // BITMAP_EXPORTER_H
35