/usr/share/doc/iipimage-doc/html/classWatermark.html is in iipimage-doc 0.9.9-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>iipsrv: Watermark Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">iipsrv
 <span id="projectnumber">0.9.9</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classWatermark.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classWatermark-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Watermark Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classWatermark.html" title="Watermark class. ">Watermark</a> class.
<a href="classWatermark.html#details">More...</a></p>
<p><code>#include <<a class="el" href="Watermark_8h_source.html">Watermark.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a274317a27cb523b519b28be6d622f2bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a274317a27cb523b519b28be6d622f2bf"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a274317a27cb523b519b28be6d622f2bf">Watermark</a> ()</td></tr>
<tr class="memdesc:a274317a27cb523b519b28be6d622f2bf"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a274317a27cb523b519b28be6d622f2bf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96a43470184588ea58d0b529213a7ec7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a96a43470184588ea58d0b529213a7ec7">Watermark</a> (const std::string &file, float opacity, float probability)</td></tr>
<tr class="memdesc:a96a43470184588ea58d0b529213a7ec7"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a96a43470184588ea58d0b529213a7ec7">More...</a><br /></td></tr>
<tr class="separator:a96a43470184588ea58d0b529213a7ec7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e484cce31c3d67dceb751df8e48a8ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e484cce31c3d67dceb751df8e48a8ef"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a5e484cce31c3d67dceb751df8e48a8ef">~Watermark</a> ()</td></tr>
<tr class="memdesc:a5e484cce31c3d67dceb751df8e48a8ef"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a5e484cce31c3d67dceb751df8e48a8ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a32e861948948b0ef070cb1a60439f58f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a32e861948948b0ef070cb1a60439f58f">apply</a> (void *data, unsigned int width, unsigned int height, unsigned int channels, unsigned int bpc)</td></tr>
<tr class="memdesc:a32e861948948b0ef070cb1a60439f58f"><td class="mdescLeft"> </td><td class="mdescRight">Apply the watermark to a data buffer. <a href="#a32e861948948b0ef070cb1a60439f58f">More...</a><br /></td></tr>
<tr class="separator:a32e861948948b0ef070cb1a60439f58f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af18c0054dceec80c7ab1a5d2c8d10967"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af18c0054dceec80c7ab1a5d2c8d10967"></a>
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#af18c0054dceec80c7ab1a5d2c8d10967">getImage</a> ()</td></tr>
<tr class="memdesc:af18c0054dceec80c7ab1a5d2c8d10967"><td class="mdescLeft"> </td><td class="mdescRight">Return watermark image path. <br /></td></tr>
<tr class="separator:af18c0054dceec80c7ab1a5d2c8d10967"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a497b6518f7470e5048bb6be853d4f85e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a497b6518f7470e5048bb6be853d4f85e"></a>
float </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a497b6518f7470e5048bb6be853d4f85e">getOpacity</a> ()</td></tr>
<tr class="memdesc:a497b6518f7470e5048bb6be853d4f85e"><td class="mdescLeft"> </td><td class="mdescRight">Return watermark opacity. <br /></td></tr>
<tr class="separator:a497b6518f7470e5048bb6be853d4f85e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7fe56ff07579dc3b432dc6daa699f25c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7fe56ff07579dc3b432dc6daa699f25c"></a>
float </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#a7fe56ff07579dc3b432dc6daa699f25c">getProbability</a> ()</td></tr>
<tr class="memdesc:a7fe56ff07579dc3b432dc6daa699f25c"><td class="mdescLeft"> </td><td class="mdescRight">Return watermark probability. <br /></td></tr>
<tr class="separator:a7fe56ff07579dc3b432dc6daa699f25c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afae57d5f76c3f9c813a56cc39dd10604"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afae57d5f76c3f9c813a56cc39dd10604"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#afae57d5f76c3f9c813a56cc39dd10604">init</a> ()</td></tr>
<tr class="memdesc:afae57d5f76c3f9c813a56cc39dd10604"><td class="mdescLeft"> </td><td class="mdescRight">Initialize our watermark image. <br /></td></tr>
<tr class="separator:afae57d5f76c3f9c813a56cc39dd10604"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac52684304e9900866b0e890ca68257f1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac52684304e9900866b0e890ca68257f1"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWatermark.html#ac52684304e9900866b0e890ca68257f1">isSet</a> ()</td></tr>
<tr class="memdesc:ac52684304e9900866b0e890ca68257f1"><td class="mdescLeft"> </td><td class="mdescRight">Determine whether a watermark has been specified. <br /></td></tr>
<tr class="separator:ac52684304e9900866b0e890ca68257f1"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classWatermark.html" title="Watermark class. ">Watermark</a> class. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a96a43470184588ea58d0b529213a7ec7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Watermark::Watermark </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>opacity</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float </td>
<td class="paramname"><em>probability</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>image file path </td></tr>
<tr><td class="paramname">opacity</td><td>opacity applied to watermark </td></tr>
<tr><td class="paramname">probability</td><td>probability that watermark will be applied to a particular tile </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a32e861948948b0ef070cb1a60439f58f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Watermark::apply </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>channels</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int </td>
<td class="paramname"><em>bpc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply the watermark to a data buffer. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>buffer of image data </td></tr>
<tr><td class="paramname">width</td><td>tile width </td></tr>
<tr><td class="paramname">height</td><td>tile height </td></tr>
<tr><td class="paramname">channels</td><td>number of channels </td></tr>
<tr><td class="paramname">bpc</td><td>bits per channel (8 or 16) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="Watermark_8h_source.html">Watermark.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="classWatermark.html">Watermark</a></li>
<li class="footer">Generated on Fri Sep 12 2014 12:40:37 for iipsrv by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.8 </li>
</ul>
</div>
</body>
</html>
|