00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100 #ifndef INC_IMGMGKFT_H
00101 #define INC_IMGMGKFT_H
00102
00103 #include "maskfilt.h"
00104 #include "outptpng.h"
00105 #include "bmpprefs.h"
00106
00107
00108 class KernelBitmap;
00109
00110 enum ImageMagickFlags
00111 {
00112 IM_IMPORT = 1<<0,
00113 IM_EXPORT = 1<<1,
00114 IM_EX_MASK = 1<<2,
00115 IM_EX_INTERLACE = 1<<3,
00116 IM_EX_ALPHA = 1<<3,
00117 IM_IM_DPI = 1<<4,
00118
00119 IM_DEFAULT = 0
00120 };
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133 typedef const TCHAR * IMFilterString;
00134
00135
00136 WX_DECLARE_HASH_MAP( IMFilterString, UINT32, wxStringHash, wxStringEqual, IMFilterStringToUINT32);
00137
00138 class ImageMagickExportOptions : public MaskedFilterExportOptions
00139 {
00140 CC_DECLARE_DYNCREATE(ImageMagickExportOptions)
00141
00142 public:
00143 ImageMagickExportOptions(const FilterType FilterID, const StringBase* pFilterName, ResourceID FilterTypeID);
00144 ImageMagickExportOptions() {};
00145
00146 virtual BOOL GetSupportsImageMap() { return TRUE; }
00147
00148 virtual BOOL RetrieveDefaults();
00149 virtual BOOL SetAsDefaults() const;
00150
00151 virtual UINT32 GetFilterNameStrID() { return m_FilterTypeID;}
00152
00153 virtual UINT32 * GetConfigPtr(const TCHAR * FilterName) const
00154 {
00155 if (!s_pHash)
00156 return NULL;
00157 IMFilterStringToUINT32::iterator i=s_pHash->find(FilterName);
00158 return (UINT32 *)((i==s_pHash->end())?NULL:&(i->second));
00159 }
00160
00161 virtual UINT32 GetConfig() const
00162 {
00163 UINT32 * pConfig = GetConfigPtr(FilterName);
00164 return pConfig?(*pConfig):0;
00165 }
00166
00167 virtual void SetConfig(UINT32 value) const
00168 {
00169 UINT32 * pConfig = GetConfigPtr(FilterName);
00170 if (pConfig)
00171 *pConfig = value;
00172 }
00173
00174 protected:
00175 String_256 FilterName;
00176 ResourceID m_FilterTypeID;
00177
00178 static IMFilterStringToUINT32 * s_pHash;
00179 };
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193 class ImageMagickFilter : public MaskedFilter
00194 {
00195 CC_DECLARE_DYNAMIC(ImageMagickFilter);
00196
00197 public:
00198
00199 ImageMagickFilter();
00200 virtual ~ImageMagickFilter() {if (TempFile) delete (TempFile);}
00201 BOOL Init();
00202
00203 virtual INT32 HowCompatible( PathName& Filename, ADDR HeaderStart, UINT32 HeaderSize,
00204 UINT32 FileSize );
00205
00206 virtual FilterType GetFilterType() const { return IMAGEMAGICK; }
00207
00208
00209 virtual BOOL ReadFromFile(OILBitmap* pOilBitmap);
00210
00211 virtual BOOL ReadFromFile(OILBitmap* pOilBitmap, BaseCamelotFilter* pFilter,
00212 CCLexFile* pFile, BOOL IsCompressed);
00213
00214
00215 virtual BOOL WriteBitmapToFile(KernelBitmap* pKernelBitmap, BaseCamelotFilter* pFilter,
00216 CCLexFile* pFile, INT32 Compression);
00217
00218
00219 virtual BOOL IsThisBppOk(UINT32 Bpp);
00220
00221
00222
00223 virtual INT32 GetImageMagickCompatibility() { return ImageMagickHowCompatible; }
00224
00225 ImageMagickFlags GetCapabilities() {return m_Capabilities;}
00226 BOOL HasFlag(ImageMagickFlags f) {return (GetCapabilities() & f)!=0;}
00227
00228
00229 virtual BOOL CanDoTransparency() { return HasFlag(IM_EX_MASK); }
00230 virtual BOOL CanDoInterlace() { return HasFlag(IM_EX_INTERLACE); }
00231 virtual BOOL CanDoAlpha() { return HasFlag(IM_EX_ALPHA); }
00232 virtual BOOL CanDoImport() { return HasFlag(IM_IMPORT); }
00233 virtual BOOL CanDoExport() { return HasFlag(IM_EXPORT); }
00234 virtual wxString GetTag() { return _T("mmif"); }
00235 virtual TCHAR * GetExtension() { return _T("mmif"); }
00236 virtual INT32 GetCompatibility() { return 10; }
00237
00238
00239 virtual BOOL CanDoImportDPI() { return HasFlag(IM_IM_DPI); }
00240 virtual void SetImportDPI(DPI ImportDPI) {m_ImportDPI = ImportDPI;}
00241
00242
00243 virtual UINT32 GetExportMsgID();
00244 virtual void PostGetExportOptions(BitmapExportOptions* pOptions);
00245
00246 static BOOL CheckPath();
00247
00248 protected:
00249 virtual void SetCapabilities(ImageMagickFlags f) {m_Capabilities = f;}
00250
00251
00252 virtual void InvertAlpha ( LPBITMAPINFO lpBitmapInfo,
00253 LPBYTE lpBits );
00254
00255
00256 virtual OutputDIB* GetOutputDIB ( void );
00257
00258 virtual BitmapExportOptions* CreateExportOptions() const;
00259
00260 virtual BOOL GetExportOptions( BitmapExportOptions* pOptions );
00261 virtual void CleanUpAfterExport();
00262 virtual BOOL EndWriteToFile();
00263
00264 virtual BOOL WriteFileHeader(void) { return TRUE; }
00265 virtual BOOL WritePreFrame(void);
00266 virtual BOOL WritePreSecondPass(void);
00267 virtual BOOL WritePostOptimisedPalette(void) { return TRUE; }
00268 virtual BOOL WriteFrame(void);
00269 virtual BOOL WritePostFrame(void);
00270 virtual BOOL WriteFileEnd(void);
00271
00272 virtual BOOL WriteBitmapToFile(KernelBitmap* pKernelBitmap, double Dpi);
00273
00274
00275 BOOL WriteDataToFile( BOOL End, UINT32 Bpp, UINT32 Compression);
00276 BOOL WriteToFile ( CCLexFile*, LPBITMAPINFO Info, LPBYTE Bits,
00277 String_64* ProgressString = NULL);
00278
00279
00280 BOOL WriteToFile ( CCLexFile*, LPBITMAPINFO Info, LPBYTE Bits,
00281 BOOL Interlace, INT32 TransparentColour,
00282 BaseCamelotFilter* pFilter = NULL);
00283
00284 void AlterPaletteContents( LPLOGPALETTE pPalette );
00285
00286 virtual BOOL CreateTempFile();
00287 virtual BOOL ConvertFromTempFile(CCLexFile * File);
00288 virtual BOOL ConvertToTempFile(CCLexFile * File);
00289 virtual BOOL TidyTempFile(BOOL Delete = TRUE);
00290
00291 #ifdef DO_EXPORT
00292
00293 static OutputPNG DestImageMagick;
00294 #endif
00295
00296 ResourceID FilterExtID;
00297
00298
00299 INT32 ImageMagickHowCompatible;
00300
00301 static FilterType s_FilterType;
00302
00303
00304 UINT32 Export2ndStageMsgID;
00305
00306 ImageMagickFlags m_Capabilities;
00307 DPI m_ImportDPI;
00308
00309 CCDiskFile * TempFile;
00310 wxString TempFileName;
00311
00312 static String_256 s_ImageMagickPath;
00313 static BOOL s_HaveImageMagick;
00314 static BOOL s_HaveCheckedPath;
00315 static BOOL s_DoWarning;
00316 static BOOL s_Disable;
00317
00318
00319 static BOOL s_OutputTransparent;
00320 static BOOL s_OutputInterlaced;
00321 };
00322
00323
00324
00325
00326
00327
00328
00329
00330
00331
00332
00333 class ImageMagickOILFilter : public OILFilter
00334 {
00335 public:
00336 ImageMagickOILFilter (Filter* pFilter, ResourceID FilterNameID, ResourceID FilterExtID);
00337 };
00338
00339
00340 #define DECLARE_IMAGEMAGICK_FILTER(IMType, IMFlags, IMTag, IMExtension, IMCompatibility) \
00341 class ImageMagickFilter ## IMType : public ImageMagickFilter \
00342 { \
00343 public: \
00344 ImageMagickFilter ## IMType() \
00345 { \
00346 SetCapabilities((ImageMagickFlags)(IMFlags)); \
00347 Flags.CanImport = HasFlag(IM_IMPORT); \
00348 Flags.CanExport = HasFlag(IM_EXPORT); \
00349 FilterID = FILTERID_IMAGEMAGICK_ ## IMType ; \
00350 FilterNameID = _R(IDS_IMAGEMAGICK_ ## IMType ## _FILTERNAME); \
00351 FilterInfoID = _R(IDS_IMAGEMAGICK_ ## IMType ## _FILTERINFO); \
00352 FilterExtID = _R(IDS_IMAGEMAGICK_ ## IMType ## _FILTEREXT); \
00353 ImportMsgID = _R(IDS_IMAGEMAGICK_ ## IMType ## _IMPORTMSG); \
00354 ExportMsgID = _R(IDS_IMAGEMAGICK_ ## IMType ## _PREPAREMSG); \
00355 ExportingMsgID = _R(IDS_IMAGEMAGICK_ ## IMType ## _EXPORTMSG); \
00356 Export2ndStageMsgID = _R(IDS_IMAGEMAGICK_ ## IMType ## _MASKINGMSG); \
00357 } \
00358 \
00359 virtual wxString GetTag() { return IMTag; } \
00360 virtual TCHAR * GetExtension() { return IMExtension; } \
00361 virtual INT32 GetCompatibility() { return IMCompatibility; } \
00362 };
00363
00364
00365
00366
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379
00380
00381 enum ImageMagickFilterID
00382 {
00383 FILTERID_IMAGEMAGICK = FILTERID_IMAGEMAGICK_START,
00384 FILTERID_IMAGEMAGICK_BMP,
00385 FILTERID_IMAGEMAGICK_CUR,
00386 FILTERID_IMAGEMAGICK_CUT,
00387 FILTERID_IMAGEMAGICK_DCM,
00388 FILTERID_IMAGEMAGICK_DCX,
00389 FILTERID_IMAGEMAGICK_DIB,
00390 FILTERID_IMAGEMAGICK_DNG,
00391 FILTERID_IMAGEMAGICK_EPDF,
00392 FILTERID_IMAGEMAGICK_EPI,
00393 FILTERID_IMAGEMAGICK_EPS,
00394 FILTERID_IMAGEMAGICK_EPS2,
00395 FILTERID_IMAGEMAGICK_EPS3,
00396 FILTERID_IMAGEMAGICK_EPSF,
00397 FILTERID_IMAGEMAGICK_EPSI,
00398 FILTERID_IMAGEMAGICK_EPT,
00399 FILTERID_IMAGEMAGICK_FAX,
00400 FILTERID_IMAGEMAGICK_FITS,
00401 FILTERID_IMAGEMAGICK_ICO,
00402 FILTERID_IMAGEMAGICK_JNG,
00403 FILTERID_IMAGEMAGICK_MIFF,
00404 FILTERID_IMAGEMAGICK_MPC,
00405 FILTERID_IMAGEMAGICK_OTB,
00406 FILTERID_IMAGEMAGICK_P7,
00407 FILTERID_IMAGEMAGICK_PALM,
00408 FILTERID_IMAGEMAGICK_PAM,
00409 FILTERID_IMAGEMAGICK_PBM,
00410 FILTERID_IMAGEMAGICK_PCD,
00411 FILTERID_IMAGEMAGICK_PCDS,
00412 FILTERID_IMAGEMAGICK_PCL,
00413 FILTERID_IMAGEMAGICK_PCX,
00414 FILTERID_IMAGEMAGICK_PDB,
00415 FILTERID_IMAGEMAGICK_PDF,
00416 FILTERID_IMAGEMAGICK_PGM,
00417 FILTERID_IMAGEMAGICK_PICT,
00418 FILTERID_IMAGEMAGICK_PIX,
00419 FILTERID_IMAGEMAGICK_PNM,
00420 FILTERID_IMAGEMAGICK_PPM,
00421 FILTERID_IMAGEMAGICK_PS,
00422 FILTERID_IMAGEMAGICK_PS2,
00423 FILTERID_IMAGEMAGICK_PS3,
00424 FILTERID_IMAGEMAGICK_PSD,
00425 FILTERID_IMAGEMAGICK_PTIF,
00426 FILTERID_IMAGEMAGICK_PWP,
00427 FILTERID_IMAGEMAGICK_RLA,
00428 FILTERID_IMAGEMAGICK_RLE,
00429 FILTERID_IMAGEMAGICK_SCT,
00430 FILTERID_IMAGEMAGICK_SFW,
00431 FILTERID_IMAGEMAGICK_SUN,
00432 FILTERID_IMAGEMAGICK_SVG,
00433 FILTERID_IMAGEMAGICK_TGA,
00434 FILTERID_IMAGEMAGICK_TIFF,
00435 FILTERID_IMAGEMAGICK_TIM,
00436 FILTERID_IMAGEMAGICK_TTF,
00437 FILTERID_IMAGEMAGICK_VICAR,
00438 FILTERID_IMAGEMAGICK_VIFF,
00439 FILTERID_IMAGEMAGICK_WBMP,
00440 FILTERID_IMAGEMAGICK_WPG,
00441 FILTERID_IMAGEMAGICK_XBM,
00442 FILTERID_IMAGEMAGICK_XCF,
00443 FILTERID_IMAGEMAGICK_XPM,
00444 FILTERID_IMAGEMAGICK_XWD,
00445
00446
00447 FILTERID_IMAGEMAGICK_TOP
00448 };
00449
00450
00451 DECLARE_IMAGEMAGICK_FILTER(BMP, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("bmp"), _T("bmp"), 10);
00452 DECLARE_IMAGEMAGICK_FILTER(CUR, IM_IMPORT|IM_EX_MASK, _T("cur"), _T("cur"), 10);
00453 DECLARE_IMAGEMAGICK_FILTER(CUT, IM_IMPORT|IM_EX_MASK, _T("cut"), _T("cut"), 10);
00454 DECLARE_IMAGEMAGICK_FILTER(DCM, IM_IMPORT|IM_EX_MASK, _T("dcm"), _T("dcm"), 10);
00455 DECLARE_IMAGEMAGICK_FILTER(DCX, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("dcx"), _T("dcx"), 10);
00456 DECLARE_IMAGEMAGICK_FILTER(DIB, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("dib"), _T("dib"), 10);
00457 DECLARE_IMAGEMAGICK_FILTER(DNG, IM_IMPORT|IM_EX_MASK, _T("dng"), _T("dng"), 10);
00458 DECLARE_IMAGEMAGICK_FILTER(EPDF, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("epdf"), _T("epdf"), 10);
00459 DECLARE_IMAGEMAGICK_FILTER(EPI, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("epi"), _T("epi"), 10);
00460 DECLARE_IMAGEMAGICK_FILTER(EPS, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("eps"), _T("eps"), 10);
00461 DECLARE_IMAGEMAGICK_FILTER(EPS2, IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("eps2"), _T("eps2"), 10);
00462 DECLARE_IMAGEMAGICK_FILTER(EPS3, IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("eps3"), _T("eps3"), 10);
00463 DECLARE_IMAGEMAGICK_FILTER(EPSF, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("epsf"), _T("epsf"), 10);
00464 DECLARE_IMAGEMAGICK_FILTER(EPSI, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("epsi"), _T("epsi"), 10);
00465 DECLARE_IMAGEMAGICK_FILTER(EPT, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("ept"), _T("ept"), 10);
00466 DECLARE_IMAGEMAGICK_FILTER(FAX, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("fax"), _T("fax"), 10);
00467 DECLARE_IMAGEMAGICK_FILTER(FITS, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("fits"), _T("fits"), 10);
00468 DECLARE_IMAGEMAGICK_FILTER(ICO, IM_IMPORT|IM_EX_MASK, _T("ico"), _T("ico"), 10);
00469 DECLARE_IMAGEMAGICK_FILTER(JNG, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("jng"), _T("jng"), 10);
00470 DECLARE_IMAGEMAGICK_FILTER(MIFF, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("miff"), _T("miff"), 10);
00471 DECLARE_IMAGEMAGICK_FILTER(MPC, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("mpc"), _T("mpc"), 10);
00472 DECLARE_IMAGEMAGICK_FILTER(OTB, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("otb"), _T("otb"), 10);
00473 DECLARE_IMAGEMAGICK_FILTER(P7, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("p7"), _T("p7"), 10);
00474 DECLARE_IMAGEMAGICK_FILTER(PALM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("palm"), _T("palm"), 10);
00475 DECLARE_IMAGEMAGICK_FILTER(PAM, IM_EXPORT|IM_EX_MASK, _T("pam"), _T("pam"), 10);
00476 DECLARE_IMAGEMAGICK_FILTER(PBM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pbm"), _T("pbm"), 10);
00477 DECLARE_IMAGEMAGICK_FILTER(PCD, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pcd"), _T("pcd"), 10);
00478 DECLARE_IMAGEMAGICK_FILTER(PCDS, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pcds"), _T("pcds"), 10);
00479 DECLARE_IMAGEMAGICK_FILTER(PCL, IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("pcl"), _T("pcl"), 10);
00480 DECLARE_IMAGEMAGICK_FILTER(PCX, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pcx"), _T("pcx"), 10);
00481 DECLARE_IMAGEMAGICK_FILTER(PDB, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pdb"), _T("pdb"), 10);
00482 DECLARE_IMAGEMAGICK_FILTER(PDF, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("pdf"), _T("pdf"), 10);
00483 DECLARE_IMAGEMAGICK_FILTER(PGM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pgm"), _T("pgm"), 10);
00484 DECLARE_IMAGEMAGICK_FILTER(PICT, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pict"), _T("pict"), 10);
00485 DECLARE_IMAGEMAGICK_FILTER(PIX, IM_IMPORT|IM_EX_MASK, _T("pix"), _T("pix"), 10);
00486 DECLARE_IMAGEMAGICK_FILTER(PNM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("pnm"), _T("pnm"), 10);
00487 DECLARE_IMAGEMAGICK_FILTER(PPM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("ppm"), _T("ppm"), 10);
00488 DECLARE_IMAGEMAGICK_FILTER(PS, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("ps"), _T("ps"), 10);
00489 DECLARE_IMAGEMAGICK_FILTER(PS2, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("ps2"), _T("ps2"), 10);
00490 DECLARE_IMAGEMAGICK_FILTER(PS3, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("ps3"), _T("ps3"), 10);
00491 DECLARE_IMAGEMAGICK_FILTER(PSD, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("psd"), _T("psd"), 10);
00492 DECLARE_IMAGEMAGICK_FILTER(PTIF, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("ptif"), _T("ptif"), 10);
00493 DECLARE_IMAGEMAGICK_FILTER(PWP, IM_IMPORT|IM_EX_MASK, _T("pwp"), _T("pwp"), 10);
00494 DECLARE_IMAGEMAGICK_FILTER(RLA, IM_IMPORT|IM_EX_MASK, _T("rla"), _T("rla"), 10);
00495 DECLARE_IMAGEMAGICK_FILTER(RLE, IM_IMPORT|IM_EX_MASK, _T("rle"), _T("rle"), 10);
00496 DECLARE_IMAGEMAGICK_FILTER(SCT, IM_IMPORT|IM_EX_MASK, _T("sct"), _T("sct"), 10);
00497 DECLARE_IMAGEMAGICK_FILTER(SFW, IM_IMPORT|IM_EX_MASK, _T("sfw"), _T("sfw"), 10);
00498 DECLARE_IMAGEMAGICK_FILTER(SUN, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("sun"), _T("sun"), 10);
00499 DECLARE_IMAGEMAGICK_FILTER(SVG, IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI, _T("svg"), _T("svg"), 10);
00500 DECLARE_IMAGEMAGICK_FILTER(TGA, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("tga"), _T("tga"), 10);
00501 DECLARE_IMAGEMAGICK_FILTER(TIFF, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("tiff"), _T("tiff"), 10);
00502 DECLARE_IMAGEMAGICK_FILTER(TIM, IM_IMPORT|IM_EX_MASK, _T("tim"), _T("tim"), 10);
00503 DECLARE_IMAGEMAGICK_FILTER(TTF, IM_IMPORT|IM_EX_MASK, _T("ttf"), _T("ttf"), 10);
00504 DECLARE_IMAGEMAGICK_FILTER(VICAR, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("vicar"),_T("vicar"),10);
00505 DECLARE_IMAGEMAGICK_FILTER(VIFF, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("viff"), _T("viff"), 10);
00506 DECLARE_IMAGEMAGICK_FILTER(WBMP, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("wbmp"), _T("wbmp"), 10);
00507 DECLARE_IMAGEMAGICK_FILTER(WPG, IM_IMPORT|IM_EX_MASK, _T("wpg"), _T("wpg"), 10);
00508 DECLARE_IMAGEMAGICK_FILTER(XBM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("xbm"), _T("xbm"), 10);
00509 DECLARE_IMAGEMAGICK_FILTER(XCF, IM_IMPORT|IM_EX_MASK, _T("xcf"), _T("xcf"), 10);
00510 DECLARE_IMAGEMAGICK_FILTER(XPM, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("xpm"), _T("xpm"), 10);
00511 DECLARE_IMAGEMAGICK_FILTER(XWD, IM_IMPORT|IM_EXPORT|IM_EX_MASK, _T("xwd"), _T("xwd"), 10);
00512
00513 #endif // INC_ImageMagickFILTR
00514
00515