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
|
<!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: plsubbmp.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>plsubbmp.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: plsubbmp_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_PLSUBBMP</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLSUBBMP</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#ifndef INCL_PLBITMAP</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#include "plbitmap.h"</span>
00016 <span class="preprocessor">#endif</span>
00017 <span class="preprocessor"></span>
00018 <span class="keyword">class </span><a class="code" href="classPLRect.html">PLRect</a>;
00019
00020 <span class="comment"></span>
00021 <span class="comment">//! A PLSubBmp is a way to manipulate bitmap data in an application-defined </span>
00022 <span class="comment">//! memory region or a rectangular subsection of another PLBmp. All operations</span>
00023 <span class="comment">//! on PLBmps that don't change the size or bpp of the image can be performed</span>
00024 <span class="comment">//! on a PLSubBmp. A PLSubBmp can be used as source for all filter operations. </span>
00025 <span class="comment">//! It doesn't own the pixel data it manipulates, so care must be taken to ensure</span>
00026 <span class="comment">//! that the data remains valid as long as the PLSubBmp exists.</span>
<a name="l00027"></a><a class="code" href="classPLSubBmp.html">00027</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classPLSubBmp.html">PLSubBmp</a> : <span class="keyword">public</span> <a class="code" href="classPLBmpBase.html">PLBmpBase</a>
00028 {
00029
00030 <span class="keyword">public</span>:<span class="comment"></span>
00031 <span class="comment"> //! Creates an empty bitmap.</span>
00032 <span class="comment"></span> <a class="code" href="classPLSubBmp.html">PLSubBmp</a>
00033 ();
00034 <span class="comment"></span>
00035 <span class="comment"> //! Destroys the bitmap.</span>
00036 <span class="comment"></span> <span class="keyword">virtual</span> ~<a class="code" href="classPLSubBmp.html">PLSubBmp</a>
00037 ();
00038 <span class="comment"></span>
00039 <span class="comment"> //! Creates a PLSubBmp as a rectangle in another bitmap.</span>
00040 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLSubBmp.html#a2">Create</a>
00041 ( <a class="code" href="classPLBmpBase.html">PLBmpBase</a> & SrcBmp,
00042 <span class="keyword">const</span> <a class="code" href="classPLRect.html">PLRect</a> & SrcRect
00043 );
00044 <span class="comment"></span>
00045 <span class="comment"> //! Creates a PLSubBmp from an arbitrary memory region. Stride</span>
00046 <span class="comment"> //! is the distance in bytes from one line of the bitmap to the</span>
00047 <span class="comment"> //! next.</span>
00048 <span class="comment"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPLSubBmp.html#a2">Create</a>
00049 ( <span class="keywordtype">int</span> Width,
00050 <span class="keywordtype">int</span> Height,
00051 <span class="keyword">const</span> PLPixelFormat& pf,
00052 PLBYTE * pBits,
00053 <span class="keywordtype">int</span> Stride
00054 );
00055
00056 <span class="keyword">private</span>:
00057
00058 <span class="comment">// Deletes memory allocated by member variables.</span>
00059 <span class="keyword">virtual</span> <span class="keywordtype">void</span> freeMembers
00060 ();
00061 };
00062
00063
00064
00065 <span class="preprocessor">#endif</span>
00066 <span class="preprocessor"></span><span class="comment">/*</span>
00067 <span class="comment">/--------------------------------------------------------------------</span>
00068 <span class="comment">|</span>
00069 <span class="comment">| $Log: plsubbmp_8h-source.html,v $
00069 <span class="comment">| Revision 1.2 2004/09/15 15:26:32 uzadow
00069 <span class="comment">| Linux compatibility changes, doc update.
00069 <span class="comment">|</span>
00070 <span class="comment">| Revision 1.3 2004/09/09 16:52:49 artcom</span>
00071 <span class="comment">| refactored PixelFormat</span>
00072 <span class="comment">|</span>
00073 <span class="comment">| Revision 1.2 2004/06/19 17:34:27 uzadow</span>
00074 <span class="comment">| Documentation update</span>
00075 <span class="comment">|</span>
00076 <span class="comment">| Revision 1.1 2004/06/15 14:17:11 uzadow</span>
00077 <span class="comment">| First working version of PLSubBmp.</span>
00078 <span class="comment">|</span>
00079 <span class="comment">|</span>
00080 <span class="comment">\--------------------------------------------------------------------</span>
00081 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:40 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>
|