1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: plwemfdec.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>plwemfdec.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment">/--------------------------------------------------------------------</span>
00003 <span class="comment">|</span>
00004 <span class="comment">| $Id: plwemfdec_8h-source.html,v 1.2 2004/09/15 15:26:32 uzadow Exp $</span>
00005 <span class="comment">|</span>
00006 <span class="comment">| Copyright (c) 1996-2002 Ulrich von Zadow</span>
00007 <span class="comment">|</span>
00008 <span class="comment">--------------------------------------------------------------------</span>
00009 <span class="comment">*/</span>
00010
00011 <span class="preprocessor">#ifndef INCL_WEMFDEC_H</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define INCL_WEMFDEC_H</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#ifndef INCL_PLPICDEC</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#include "plpicdec.h"</span>
00016 <span class="preprocessor">#endif</span>
00017 <span class="preprocessor"></span>
00018 <span class="comment">// This only makes sense for Windows</span>
00019 <span class="preprocessor">#ifdef _WINDOWS</span>
00020 <span class="preprocessor"></span>
00021 <span class="preprocessor">#if _MSC_VER > 1000</span>
00022 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER > 1000</span>
00024 <span class="preprocessor"></span>
00025 <span class="comment"></span>
00026 <span class="comment">//! Decoder for 16-Bit Windows Metafiles (*.wmf) and 16-Bit Adobe </span>
00027 <span class="comment">//! Placeable Metafiles (*,wmf) and 32-Bit Enhanced Windows </span>
00028 <span class="comment">//! Metafiles (*.emf) for Windows 95, Windows 98 and Windows NT </span>
00029 <span class="comment">//! >= 3.1.</span>
00030 <span class="comment">//!</span>
00031 <span class="comment">//! Comments by the author, Mario Westphal:<BR></span>
00032 <span class="comment">//! <I>It can handle at least the 500 tested images I've got</span>
00033 <span class="comment">//! from various free and commercial clipart sources. If</span>
00034 <span class="comment">//! you find a WMF/EMF file it cannot handle, attach it to</span>
00035 <span class="comment">//! an email and send it to mw@mwlabs.de. I'll see what I</span>
00036 <span class="comment">//! can do. But, please, test it with another program</span>
00037 <span class="comment">//! before you send it in to see if it is really a valid </span>
00038 <span class="comment">//! metafile.</I></span>
00039 <span class="comment"></span><span class="keyword">class </span>PLWEMFDecoder : <span class="keyword">public</span> <a class="code" href="classPLPicDecoder.html">PLPicDecoder</a>
00040 {
00041 <span class="keyword">public</span>:<span class="comment"></span>
00042 <span class="comment"> //!</span>
00043 <span class="comment"></span> PLWEMFDecoder();
00044 <span class="comment"></span>
00045 <span class="comment"> //!</span>
00046 <span class="comment"></span> <span class="keyword">virtual</span> ~PLWEMFDecoder();
00047 <span class="comment"></span>
00048 <span class="comment"> //! Fills the PLBmpInfo fields. To do this, the routine reads the complete</span>
00049 <span class="comment"> //! file.</span>
00050 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Open (<a class="code" href="classPLDataSource.html">PLDataSource</a> * pDataSrc);
00051 <span class="comment"></span>
00052 <span class="comment"> //! Fills the bitmap with the image. </span>
00053 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLPicDecoder.html#a9">GetImage</a> (<a class="code" href="classPLBmpBase.html">PLBmpBase</a> & Bmp);
00054 <span class="comment"></span>
00055 <span class="comment"> //!</span>
00056 <span class="comment"></span> <span class="keywordtype">void</span> Close();
00057
00058 <span class="preprocessor">#ifdef _DEBUG</span>
00059 <span class="preprocessor"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> AssertValid() <span class="keyword">const</span>;
00060 <span class="preprocessor">#endif</span>
00061 <span class="preprocessor"></span>
00062 <span class="keyword">private</span>:
00063 HENHMETAFILE m_hemf;
00064 HDC m_memdc;
00065 HDC m_dc;
00066 HBITMAP m_bm;
00067 HPALETTE m_holdpal;
00068 HGDIOBJ m_holdbm;
00069 LPENHMETAHEADER m_phdr;
00070
00071 };
00072
00073 <span class="preprocessor">#endif // _WINDOWS</span>
00074 <span class="preprocessor"></span>
00075 <span class="preprocessor">#endif // INCL_WEMFDEC_H</span>
00076 <span class="preprocessor"></span>
00077 <span class="comment">/*</span>
00078 <span class="comment">/--------------------------------------------------------------------</span>
00079 <span class="comment">|</span>
00080 <span class="comment">| $Log: plwemfdec_8h-source.html,v $
00080 <span class="comment">| Revision 1.2 2004/09/15 15:26:32 uzadow
00080 <span class="comment">| Linux compatibility changes, doc update.
00080 <span class="comment">|</span>
00081 <span class="comment">| Revision 1.6 2004/06/19 16:49:11 uzadow</span>
00082 <span class="comment">| Changed GetImage so it works with PLBmpBase</span>
00083 <span class="comment">|</span>
00084 <span class="comment">| Revision 1.5 2003/08/03 12:03:22 uzadow</span>
00085 <span class="comment">| Added unicode support; fixed some header includes.</span>
00086 <span class="comment">|</span>
00087 <span class="comment">| Revision 1.4 2002/08/04 20:08:01 uzadow</span>
00088 <span class="comment">| Added PLBmpInfo class, ability to extract metainformation from images without loading the whole image and proper greyscale support.</span>
00089 <span class="comment">|</span>
00090 <span class="comment">| Revision 1.3 2002/03/31 13:36:42 uzadow</span>
00091 <span class="comment">| Updated copyright.</span>
00092 <span class="comment">|</span>
00093 <span class="comment">| Revision 1.2 2001/10/21 17:12:40 uzadow</span>
00094 <span class="comment">| Added PSD decoder beta, removed BPPWanted from all decoders, added PLFilterPixel.</span>
00095 <span class="comment">|</span>
00096 <span class="comment">| Revision 1.1 2001/09/16 19:03:23 uzadow</span>
00097 <span class="comment">| Added global name prefix PL, changed most filenames.</span>
00098 <span class="comment">|</span>
00099 <span class="comment">| Revision 1.5 2000/12/18 22:42:53 uzadow</span>
00100 <span class="comment">| Replaced RGBAPIXEL with PLPixel32.</span>
00101 <span class="comment">|</span>
00102 <span class="comment">| Revision 1.4 2000/01/16 20:43:18 anonymous</span>
00103 <span class="comment">| Removed MFC dependencies</span>
00104 <span class="comment">|</span>
00105 <span class="comment">| Revision 1.3 1999/12/02 17:07:35 Ulrich von Zadow</span>
00106 <span class="comment">| Changes by bdelmee.</span>
00107 <span class="comment">|</span>
00108 <span class="comment">|</span>
00109 <span class="comment">\--------------------------------------------------------------------</span>
00110 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:41 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|