GED 2006 (C++)
Detail souboru
Zdrojový kód
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>GED 2006: pngimage.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>File Members</span></a></li>
</ul>
</div>
<h1>pngimage.h</h1><a href="pngimage_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * File: pngimage.h - Module loading/saving PNG images</span>
<a name="l00003"></a>00003 <span class="comment"> * Project: GED - bitmap editor (ICP)</span>
<a name="l00004"></a>00004 <span class="comment"> * Author: Jakbub Filak, xfilak01</span>
<a name="l00005"></a>00005 <span class="comment"> * Team: xdudka00, xfilak01, xhefka00, xhradi08</span>
<a name="l00006"></a>00006 <span class="comment"> * Created: 2006-03-10</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00008"></a>00008
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef PNGIMAGE_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define PNGIMAGE_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include <string></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include <png.h></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include "<a class="code" href="image_8h.html">image.h</a>"</span>
<a name="l00015"></a>00015
<a name="l00019"></a><a class="code" href="classPNGImage.html">00019</a> <span class="keyword">class </span><a class="code" href="classPNGImage.html">PNGImage</a>: <span class="keyword">public</span> <a class="code" href="classImage.html">Image</a> {
<a name="l00020"></a>00020 <span class="keyword">public</span>:
<a name="l00025"></a>00025 <a class="code" href="classPNGImage.html#31624f3f14cf1fc0f08c1b6ac35297a7">PNGImage</a> (<span class="keyword">const</span> <a class="code" href="structBoxSize.html">BoxSize</a> &<a class="code" href="classFrameBuffer.html#ca5cc2ea29283153451c37104b0daf8b">size</a>);
<a name="l00026"></a>00026
<a name="l00032"></a>00032 <a class="code" href="classPNGImage.html#31624f3f14cf1fc0f08c1b6ac35297a7">PNGImage</a> (<span class="keyword">const</span> std::string &fileName);
<a name="l00033"></a>00033
<a name="l00038"></a>00038 <a class="code" href="classPNGImage.html#31624f3f14cf1fc0f08c1b6ac35297a7">PNGImage</a> (<span class="keyword">const</span> <a class="code" href="classImage.html">Image</a> &img);
<a name="l00039"></a>00039 <span class="keyword">virtual</span> <a class="code" href="classPNGImage.html#ed894a79556cb9a7422d5b8171b95f01">~PNGImage</a>();
<a name="l00040"></a>00040
<a name="l00046"></a>00046 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPNGImage.html#7b0afa1f4cc1d19a3f25f78f1b37386b">save</a> (<span class="keyword">const</span> std::string &fileName);
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <span class="keyword">private</span>:
<a name="l00049"></a>00049 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> _png_sig_num_bytes = 4;
<a name="l00050"></a>00050 png_structp _png_read;
<a name="l00051"></a>00051 png_infop _info;
<a name="l00052"></a>00052 <span class="keywordtype">int</span> _n_of_passes;
<a name="l00053"></a>00053 <span class="keywordtype">int</span> _color_type;
<a name="l00054"></a>00054 <span class="keywordtype">void</span> createPNGInfo();
<a name="l00055"></a>00055 <span class="keywordtype">void</span> initPNGInfo();
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>