|
Wavelet and Image class library
1.3.2
|
00001 /* 00002 * Interface of the image operations utilities 00003 * Author: Martin Dietze 00004 * 00005 * $Date$ 00006 * $Revision$ 00007 * 00008 */ 00009 00010 #ifndef MAGICK_INTER_H_INCLUDED 00011 #define MAGICK_INTER_H_INCLUDED 00012 00013 #include <memory> 00014 #include <string> 00015 00016 #include <WImage/ColorImage.hh> 00017 00018 namespace Magick { 00019 class Image; 00020 } 00021 00030 namespace MagickInter 00031 { 00032 typedef enum { 00033 NONE, 00034 WHITE, 00035 BLACK 00036 } TransparencyBackground; 00037 00056 Magick::Image magickImageFromColorImageWithTransparency (ColorImage &img, 00057 bool withTransparency = false, 00058 coeff *transparentColors = NULL, 00059 int colorBytes = 1); 00060 00070 Magick::Image magickImageFromColorImage (ColorImage &img); 00071 00081 std::auto_ptr<ColorImage> colorImageFromMagickImage (Magick::Image &img); 00082 00095 std::auto_ptr<ColorImage> obtainColorImage (const std::string &inFile, 00096 const TransparencyBackground 00097 &transparencyBackground = NONE); 00098 00109 void writeColorImage (ColorImage &img, const std::string &outFile, 00110 int quality = 100); 00111 00134 void writeColorImageWithTransparency (ColorImage &img, 00135 const std::string &outFile, 00136 int quality = 100, 00137 bool withTransparency = false, 00138 coeff *transparentColors = NULL, 00139 int colorBytes = 1); 00140 00154 void scaleAndWriteColorImage (ColorImage &img, int rows, int cols, 00155 const std::string &outFile, int quality = 100); 00156 } 00157 00158 #endif // MAGICK_INTER_H_INCLUDED
1.7.6.1