imgmgkft.h

Go to the documentation of this file.
00001 // $Id: pngfiltr.h 809 2006-04-13 11:28:42Z phil $
00002 /* @@tag:xara-cn@@ DO NOT MODIFY THIS LINE
00003 ================================XARAHEADERSTART===========================
00004  
00005                Xara LX, a vector drawing and manipulation program.
00006                     Copyright (C) 1993-2006 Xara Group Ltd.
00007        Copyright on certain contributions may be held in joint with their
00008               respective authors. See AUTHORS file for details.
00009 
00010 LICENSE TO USE AND MODIFY SOFTWARE
00011 ----------------------------------
00012 
00013 This file is part of Xara LX.
00014 
00015 Xara LX is free software; you can redistribute it and/or modify it
00016 under the terms of the GNU General Public License version 2 as published
00017 by the Free Software Foundation.
00018 
00019 Xara LX and its component source files are distributed in the hope
00020 that it will be useful, but WITHOUT ANY WARRANTY; without even the
00021 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00022 See the GNU General Public License for more details.
00023 
00024 You should have received a copy of the GNU General Public License along
00025 with Xara LX (see the file GPL in the root directory of the
00026 distribution); if not, write to the Free Software Foundation, Inc., 51
00027 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00028 
00029 
00030 ADDITIONAL RIGHTS
00031 -----------------
00032 
00033 Conditional upon your continuing compliance with the GNU General Public
00034 License described above, Xara Group Ltd grants to you certain additional
00035 rights. 
00036 
00037 The additional rights are to use, modify, and distribute the software
00038 together with the wxWidgets library, the wxXtra library, and the "CDraw"
00039 library and any other such library that any version of Xara LX relased
00040 by Xara Group Ltd requires in order to compile and execute, including
00041 the static linking of that library to XaraLX. In the case of the
00042 "CDraw" library, you may satisfy obligation under the GNU General Public
00043 License to provide source code by providing a binary copy of the library
00044 concerned and a copy of the license accompanying it.
00045 
00046 Nothing in this section restricts any of the rights you have under
00047 the GNU General Public License.
00048 
00049 
00050 SCOPE OF LICENSE
00051 ----------------
00052 
00053 This license applies to this program (XaraLX) and its constituent source
00054 files only, and does not necessarily apply to other Xara products which may
00055 in part share the same code base, and are subject to their own licensing
00056 terms.
00057 
00058 This license does not apply to files in the wxXtra directory, which
00059 are built into a separate library, and are subject to the wxWindows
00060 license contained within that directory in the file "WXXTRA-LICENSE".
00061 
00062 This license does not apply to the binary libraries (if any) within
00063 the "libs" directory, which are subject to a separate license contained
00064 within that directory in the file "LIBS-LICENSE".
00065 
00066 
00067 ARRANGEMENTS FOR CONTRIBUTION OF MODIFICATIONS
00068 ----------------------------------------------
00069 
00070 Subject to the terms of the GNU Public License (see above), you are
00071 free to do whatever you like with your modifications. However, you may
00072 (at your option) wish contribute them to Xara's source tree. You can
00073 find details of how to do this at:
00074   http://www.xaraxtreme.org/developers/
00075 
00076 Prior to contributing your modifications, you will need to complete our
00077 contributor agreement. This can be found at:
00078   http://www.xaraxtreme.org/developers/contribute/
00079 
00080 Please note that Xara will not accept modifications which modify any of
00081 the text between the start and end of this header (marked
00082 XARAHEADERSTART and XARAHEADEREND).
00083 
00084 
00085 MARKS
00086 -----
00087 
00088 Xara, Xara LX, Xara X, Xara X/Xtreme, Xara Xtreme, the Xtreme and Xara
00089 designs are registered or unregistered trademarks, design-marks, and/or
00090 service marks of Xara Group Ltd. All rights in these marks are reserved.
00091 
00092 
00093       Xara Group Ltd, Gaddesden Place, Hemel Hempstead, HP2 6EX, UK.
00094                         http://www.xara.com/
00095 
00096 =================================XARAHEADEREND============================
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"   // SelectionType
00106 //#include "filtrres.h"
00107 
00108 class KernelBitmap;
00109 
00110 enum ImageMagickFlags
00111 {
00112     IM_IMPORT       = 1<<0,     // Can import
00113     IM_EXPORT       = 1<<1,     // Can export
00114     IM_EX_MASK      = 1<<2,     // Can use mask on export
00115     IM_EX_INTERLACE = 1<<3,     // Can use interlace on export
00116     IM_EX_ALPHA     = 1<<3,     // Can use alpha on import
00117     IM_IM_DPI       = 1<<4,     // Can use DPI on import (e.g. vector formats
00118 
00119     IM_DEFAULT      = 0
00120 };
00121 
00122 /********************************************************************************************
00123 
00124 >   class ImageMagickExportOptions : public MaskedFilterExportOptions
00125 
00126     Author:     Colin_Barfoot (Xara Group Ltd) <camelotdev@xara.com>
00127     Created:    30/10/96
00128     Purpose:    Base class for storing information about the bitmap we're exporting.
00129 
00130 ********************************************************************************************/
00131 
00132 // Need a type for the hash data or we get duplicate const error
00133 typedef const TCHAR * IMFilterString;
00134 
00135 // Declare the hash map from IMFilterString to UINT32
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 >   class ImageMagickFilter : public MaskedFilter
00184 
00185     Author:     Neville_Humphrys (Xara Group Ltd) <camelotdev@xara.com>
00186     Created:    26/4/96
00187     Purpose:    Encapsulates a ImageMagick export filter.
00188                 Derives off the masked filter which provides funcitonality for doing masked
00189                 bitmap export and import.
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     // Import related functions
00209     virtual BOOL ReadFromFile(OILBitmap* pOilBitmap);
00210     // This is the function for native/web files to use
00211     virtual BOOL ReadFromFile(OILBitmap* pOilBitmap, BaseCamelotFilter* pFilter,
00212                             CCLexFile* pFile, BOOL IsCompressed);
00213 
00214     // Function for web/native filters to use to write out the bitmap data to file
00215     virtual BOOL WriteBitmapToFile(KernelBitmap* pKernelBitmap, BaseCamelotFilter* pFilter,
00216                                 CCLexFile* pFile, INT32 Compression);
00217 
00218     // Check if this Bitmap filter can cope with saving at this Bpp/Colour depth
00219     virtual BOOL IsThisBppOk(UINT32 Bpp);
00220 
00221     // Public way of finding out how compatable the ImageMagick filter thought the file was
00222     // We might want to bring in the Accusoft filter to help out.
00223     virtual INT32 GetImageMagickCompatibility() { return ImageMagickHowCompatible; }
00224 
00225     ImageMagickFlags GetCapabilities() {return m_Capabilities;}
00226     BOOL HasFlag(ImageMagickFlags f) {return (GetCapabilities() & f)!=0;}
00227 
00228     // These get overridden in the derived classes
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     // Overide the DPI functions
00239     virtual BOOL CanDoImportDPI() { return HasFlag(IM_IM_DPI); }
00240     virtual void SetImportDPI(DPI ImportDPI) {m_ImportDPI = ImportDPI;}
00241 
00242     // Virtual overrides
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     // Invert the alpha channel.
00252     virtual void InvertAlpha ( LPBITMAPINFO lpBitmapInfo,
00253                             LPBYTE      lpBits );
00254 
00255     // Get the correct output DIB.
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     // this is used for the actual writing of the file
00275     BOOL WriteDataToFile( BOOL End, UINT32 Bpp, UINT32 Compression);
00276     BOOL WriteToFile ( CCLexFile*, LPBITMAPINFO Info, LPBYTE Bits,
00277                             String_64* ProgressString = NULL);
00278 
00279     // This is the form used for direct saving bitmaps into the native/web file format
00280     BOOL WriteToFile ( CCLexFile*, LPBITMAPINFO Info, LPBYTE Bits,
00281                             BOOL Interlace, INT32 TransparentColour,
00282                             BaseCamelotFilter* pFilter = NULL);
00283 
00284     void AlterPaletteContents( LPLOGPALETTE pPalette );//ap
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     // The class we use for actually outputting the ImageMagick data and converting from 32 to n bpps
00293     static OutputPNG DestImageMagick;
00294 #endif
00295 
00296     ResourceID FilterExtID;
00297     
00298     // This is so we can remember what we thought of the GIF file.
00299     INT32 ImageMagickHowCompatible;
00300 
00301     static FilterType s_FilterType;                     // Type of filter in use i.e. ImageMagick
00302 
00303     // The string to display when exporting the second stage.
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     // These allow us to use a single filter type
00319     static BOOL s_OutputTransparent;
00320     static BOOL s_OutputInterlaced;
00321 };
00322 
00323 /********************************************************************************************
00324 
00325 >   class ImageMagickOILFilter : public OILFilter
00326 
00327     Author:     Alex Bligh <alex@alex.org.uk>
00328     Created:    18/07/2006
00329     Purpose:    The PNG File format Oil Filter (Extension etc)
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 // Instructions on adding a new ImageMagickFilter
00365 // ==============================================
00366 //
00367 // 1. Declare the filter below (let's say you give it the classname FOO)
00368 // 2. Add "IMAGEMAGIK_FOO" to the enum in below
00369 // 3. Add "ADD_FILTER(ImageMagickFilterFOO)" to filters.cpp
00370 // 4. Add appropriate resources to wxOil/xrc/EN/imagemagick-strings.xrc
00371 //    These would be
00372 //      IDS_IMAGEMAGICK_FOO_FILTERNAME
00373 //      IDS_IMAGEMAGICK_FOO_FILTERINFO
00374 //      IDS_IMAGEMAGICK_FOO_FILTEREXT
00375 //      IDS_IMAGEMAGICK_FOO_IMPORTMSG
00376 //      IDS_IMAGEMAGICK_FOO_PREPAREMSG
00377 //      IDS_IMAGEMAGICK_FOO_EXPORTMSG
00378 //      IDS_IMAGEMAGICK_FOO_MASKINGMSG
00379 //
00380 
00381 enum ImageMagickFilterID
00382 {
00383     FILTERID_IMAGEMAGICK = FILTERID_IMAGEMAGICK_START,      // This one should never be used
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     // add the others above this line
00447     FILTERID_IMAGEMAGICK_TOP
00448 };
00449 
00450 //                        ClassName Import  Export  Transp  Int'lce Tag         Extension   Compat
00451 DECLARE_IMAGEMAGICK_FILTER(BMP,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("bmp"),  _T("bmp"),  10); // Microsoft Windows Bitmap
00452 DECLARE_IMAGEMAGICK_FILTER(CUR,     IM_IMPORT|IM_EX_MASK,                       _T("cur"),  _T("cur"),  10); // Microsoft Cursor Icon
00453 DECLARE_IMAGEMAGICK_FILTER(CUT,     IM_IMPORT|IM_EX_MASK,                       _T("cut"),  _T("cut"),  10); // DR Halo
00454 DECLARE_IMAGEMAGICK_FILTER(DCM,     IM_IMPORT|IM_EX_MASK,                       _T("dcm"),  _T("dcm"),  10); // DICOM Image
00455 DECLARE_IMAGEMAGICK_FILTER(DCX,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("dcx"),  _T("dcx"),  10); // ZSoft Paintbrush
00456 DECLARE_IMAGEMAGICK_FILTER(DIB,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("dib"),  _T("dib"),  10); // Microsoft Windows Device Independent Bitmap
00457 DECLARE_IMAGEMAGICK_FILTER(DNG,     IM_IMPORT|IM_EX_MASK,                       _T("dng"),  _T("dng"),  10); // Digital Negative
00458 DECLARE_IMAGEMAGICK_FILTER(EPDF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("epdf"), _T("epdf"), 10); // Encapsulated Portable Document Format
00459 DECLARE_IMAGEMAGICK_FILTER(EPI,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("epi"),  _T("epi"),  10); // Adobe Encapsulated PostScript Interchange format
00460 DECLARE_IMAGEMAGICK_FILTER(EPS,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("eps"),  _T("eps"),  10); // Adobe Encapsulated PostScript
00461 DECLARE_IMAGEMAGICK_FILTER(EPS2,    IM_EXPORT|IM_EX_MASK|IM_IM_DPI,             _T("eps2"), _T("eps2"), 10); // Adobe Level II Encapsulated PostScript
00462 DECLARE_IMAGEMAGICK_FILTER(EPS3,    IM_EXPORT|IM_EX_MASK|IM_IM_DPI,             _T("eps3"), _T("eps3"), 10); // Adobe Level III Encapsulated PostScript
00463 DECLARE_IMAGEMAGICK_FILTER(EPSF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("epsf"), _T("epsf"), 10); // Adobe Encapsulated PostScript
00464 DECLARE_IMAGEMAGICK_FILTER(EPSI,    IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("epsi"), _T("epsi"), 10); // Adobe Encapsulated PostScript Interchange format
00465 DECLARE_IMAGEMAGICK_FILTER(EPT,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("ept"),  _T("ept"),  10); // Adobe Encapsulated PostScript Interchange format with TIFF preview
00466 DECLARE_IMAGEMAGICK_FILTER(FAX,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("fax"),  _T("fax"),  10); // Group 3 TIFF
00467 DECLARE_IMAGEMAGICK_FILTER(FITS,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("fits"), _T("fits"), 10); // Flexible Image Transport System
00468 DECLARE_IMAGEMAGICK_FILTER(ICO,     IM_IMPORT|IM_EX_MASK,                       _T("ico"),  _T("ico"),  10); // Microsoft Icon
00469 DECLARE_IMAGEMAGICK_FILTER(JNG,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("jng"),  _T("jng"),  10); // Multiple-image Network Graphics
00470 DECLARE_IMAGEMAGICK_FILTER(MIFF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("miff"), _T("miff"), 10); // Magick image file format
00471 DECLARE_IMAGEMAGICK_FILTER(MPC,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("mpc"),  _T("mpc"),  10); // Magick Persistent Cache image file format
00472 DECLARE_IMAGEMAGICK_FILTER(OTB,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("otb"),  _T("otb"),  10); // On-the-air Bitmap
00473 DECLARE_IMAGEMAGICK_FILTER(P7,      IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("p7"),   _T("p7"),   10); // Xv's Visual Schnauzer thumbnail format
00474 DECLARE_IMAGEMAGICK_FILTER(PALM,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("palm"), _T("palm"), 10); // Palm pixmap
00475 DECLARE_IMAGEMAGICK_FILTER(PAM,     IM_EXPORT|IM_EX_MASK,                       _T("pam"),  _T("pam"),  10); // Common 2-dimensional bitmap format
00476 DECLARE_IMAGEMAGICK_FILTER(PBM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pbm"),  _T("pbm"),  10); // Portable bitmap format (black and white)
00477 DECLARE_IMAGEMAGICK_FILTER(PCD,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pcd"),  _T("pcd"),  10); // Photo CD
00478 DECLARE_IMAGEMAGICK_FILTER(PCDS,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pcds"), _T("pcds"), 10); // Photo CD
00479 DECLARE_IMAGEMAGICK_FILTER(PCL,     IM_EXPORT|IM_EX_MASK|IM_IM_DPI,             _T("pcl"),  _T("pcl"),  10); // HP Page Control Language
00480 DECLARE_IMAGEMAGICK_FILTER(PCX,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pcx"),  _T("pcx"),  10); // ZSoft IBM PC Paintbrush file
00481 DECLARE_IMAGEMAGICK_FILTER(PDB,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pdb"),  _T("pdb"),  10); // Palm Database ImageViewer Format
00482 DECLARE_IMAGEMAGICK_FILTER(PDF,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("pdf"),  _T("pdf"),  10); // Portable Document Format
00483 DECLARE_IMAGEMAGICK_FILTER(PGM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pgm"),  _T("pgm"),  10); // Portable graymap format (gray scale)
00484 DECLARE_IMAGEMAGICK_FILTER(PICT,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pict"), _T("pict"), 10); // Apple Macintosh QuickDraw/PICT file
00485 DECLARE_IMAGEMAGICK_FILTER(PIX,     IM_IMPORT|IM_EX_MASK,                       _T("pix"),  _T("pix"),  10); // Alias/Wavefront RLE image format
00486 DECLARE_IMAGEMAGICK_FILTER(PNM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("pnm"),  _T("pnm"),  10); // Portable anymap
00487 DECLARE_IMAGEMAGICK_FILTER(PPM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("ppm"),  _T("ppm"),  10); // Portable pixmap format (color)
00488 DECLARE_IMAGEMAGICK_FILTER(PS,      IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("ps"),   _T("ps"),   10); // Adobe PostScript file
00489 DECLARE_IMAGEMAGICK_FILTER(PS2,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("ps2"),  _T("ps2"),  10); // Adobe Level II PostScript file
00490 DECLARE_IMAGEMAGICK_FILTER(PS3,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("ps3"),  _T("ps3"),  10); // Adobe Level III PostScript file
00491 DECLARE_IMAGEMAGICK_FILTER(PSD,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("psd"),  _T("psd"),  10); // Adobe Photoshop bitmap file
00492 DECLARE_IMAGEMAGICK_FILTER(PTIF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("ptif"), _T("ptif"), 10); // Pyramid encoded TIFF
00493 DECLARE_IMAGEMAGICK_FILTER(PWP,     IM_IMPORT|IM_EX_MASK,                       _T("pwp"),  _T("pwp"),  10); // Seattle File Works multi-image file
00494 DECLARE_IMAGEMAGICK_FILTER(RLA,     IM_IMPORT|IM_EX_MASK,                       _T("rla"),  _T("rla"),  10); // Alias/Wavefront image file
00495 DECLARE_IMAGEMAGICK_FILTER(RLE,     IM_IMPORT|IM_EX_MASK,                       _T("rle"),  _T("rle"),  10); // Utah Run length encoded image file
00496 DECLARE_IMAGEMAGICK_FILTER(SCT,     IM_IMPORT|IM_EX_MASK,                       _T("sct"),  _T("sct"),  10); // Scitex Continuous Tone Picture
00497 DECLARE_IMAGEMAGICK_FILTER(SFW,     IM_IMPORT|IM_EX_MASK,                       _T("sfw"),  _T("sfw"),  10); // Seattle File Works image
00498 DECLARE_IMAGEMAGICK_FILTER(SUN,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("sun"),  _T("sun"),  10); // SUN Rasterfile
00499 DECLARE_IMAGEMAGICK_FILTER(SVG,     IM_IMPORT|IM_EXPORT|IM_EX_MASK|IM_IM_DPI,   _T("svg"),  _T("svg"),  10); // Scalable Vector Graphics
00500 DECLARE_IMAGEMAGICK_FILTER(TGA,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("tga"),  _T("tga"),  10); // Truevision Targa image
00501 DECLARE_IMAGEMAGICK_FILTER(TIFF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("tiff"), _T("tiff"), 10); // Tagged Image File Format
00502 DECLARE_IMAGEMAGICK_FILTER(TIM,     IM_IMPORT|IM_EX_MASK,                       _T("tim"),  _T("tim"),  10); // PSX TIM file
00503 DECLARE_IMAGEMAGICK_FILTER(TTF,     IM_IMPORT|IM_EX_MASK,                       _T("ttf"),  _T("ttf"),  10); // TrueType font file
00504 DECLARE_IMAGEMAGICK_FILTER(VICAR,   IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("vicar"),_T("vicar"),10); // VICAR rasterfile format
00505 DECLARE_IMAGEMAGICK_FILTER(VIFF,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("viff"), _T("viff"), 10); // Khoros Visualization Image File Format
00506 DECLARE_IMAGEMAGICK_FILTER(WBMP,    IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("wbmp"), _T("wbmp"), 10); // Wireless bitmap
00507 DECLARE_IMAGEMAGICK_FILTER(WPG,     IM_IMPORT|IM_EX_MASK,                       _T("wpg"),  _T("wpg"),  10); // Word Perfect Graphics File
00508 DECLARE_IMAGEMAGICK_FILTER(XBM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("xbm"),  _T("xbm"),  10); // X Windows system bitmap, black and white only
00509 DECLARE_IMAGEMAGICK_FILTER(XCF,     IM_IMPORT|IM_EX_MASK,                       _T("xcf"),  _T("xcf"),  10); // GIMP image
00510 DECLARE_IMAGEMAGICK_FILTER(XPM,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("xpm"),  _T("xpm"),  10); // X Windows system pixmap
00511 DECLARE_IMAGEMAGICK_FILTER(XWD,     IM_IMPORT|IM_EXPORT|IM_EX_MASK,             _T("xwd"),  _T("xwd"),  10); // X Windows system window dump
00512 
00513 #endif // INC_ImageMagickFILTR
00514 
00515 

Generated on Sat Nov 10 03:48:37 2007 for Camelot by  doxygen 1.4.4