1.1 diff -r 5edfbd3e7a46 -r 1204ebf9340d PTdecode/CImg-1.3.0/html/reference/group__cimg__drawing.html 1.2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 +++ b/PTdecode/CImg-1.3.0/html/reference/group__cimg__drawing.html Mon Aug 03 14:09:20 2009 +0100 1.4 @@ -0,0 +1,147 @@ 1.5 + xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 1.6 +<head> 1.7 +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> 1.8 +<title>The CImg Library - C++ Template Image Processing Toolkit</title> 1.9 +<meta content="David Tschumperle" name="author"></meta> 1.10 +<link rel="shortcut icon" type="image/x-icon" href="http://cimg.sourceforge.net/favicon.ico"></link> 1.11 +<link rel="icon" type="image/png" href="favicon.png"></link> 1.12 +<link href="doxygen.css" rel="stylesheet" type="text/css"> 1.13 +<link href="tabs.css" rel="stylesheet" type="text/css"> 1.14 +<style type="text/css"> 1.15 +<!-- 1.16 +body {background-color:white; font-family:sans-serif; } 1.17 +a:active{text-decoration:none; color:#303090} 1.18 +a:link{text-decoration:none; color:#303090} 1.19 +a:visited{text-decoration:none; color:#303090} 1.20 +a:hover{text-decoration:underline; color:#4E9F71} 1.21 +--> 1.22 +</style> 1.23 +<script language="JavaScript" type="text/javascript"> 1.24 + <!-- Original: Eric King (eric_andrew_king@hotmail.com) is used to display images in popup windows --> 1.25 + <!-- Web Site: http://redrival.com/eak/ --> 1.26 + <!-- This script and many more are available free online at --> 1.27 + <!-- The JavaScript Source!! http://javascript.internet.com --> 1.28 + <!-- Begin 1.29 + function NewWindow(mypage, myname, w, h, scroll) { 1.30 + var winl = (screen.width - w) / 2; 1.31 + var wint = (screen.height - h) / 2; 1.32 + winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' 1.33 + win = window.open(mypage, myname, winprops) 1.34 + if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 1.35 + } 1.36 + // End --> 1.37 +</script> 1.38 +</head> 1.39 +<body> 1.40 + <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%"> 1.41 + <tbody><tr><td> 1.42 + <hr noshade="noshade" size="1" width="90%"></hr> 1.43 + <center> 1.44 + <br/> 1.45 + <a href="http://cimg.sourceforge.net"><img src="http://cimg.sourceforge.net/img/CImgLogo.jpg" alt="" border="0"></img></a><br/> 1.46 + <br/> 1.47 + </center> 1.48 + <hr noshade="noshade" size="1" width="90%"></hr> 1.49 + <center> 1.50 + <table bgcolor="#EEEEFF" style="width: 90%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="3" cellspacing="0"> 1.51 + <tbody><tr><td style="text-align: center; vertical-align: top;"> 1.52 + <font color="#FFFFFF" face="Arial,Helvetica" size="-1"> 1.53 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/index.shtml">Main</a> <b>]</b> 1.54 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/news.shtml">News</a><b>] </b> 1.55 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/download.shtml">Download</a> <b>]</b> 1.56 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/screenshots.shtml">Screenshots</a> <b>]</b> 1.57 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/group__cimg__faq.html">FAQ</a> <b>]</b> 1.58 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/group__cimg__tutorial.html">Tutorial</a> <b>]</b> 1.59 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/reference/index.html">Documentation</a> <b>]</b> 1.60 + <b>[</b> <a target="_parent" href="http://sourceforge.net/forum/forum.php?forum_id=334630">Forum</a> <b>]</b> 1.61 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/chat.shtml">Chat</a> <b>]</b> 1.62 + <b>[</b> <a target="_parent" href="http://cimg.sourceforge.net/links.shtml">Links</a> <b>]</b> 1.63 + </font> 1.64 + </td></tr></tbody> 1.65 + </table> 1.66 + </center> 1.67 + <hr noshade="noshade" size="1" width="90%"></hr> 1.68 + </td></tr></tbody> 1.69 +</table> 1.70 +<!-- Generated by Doxygen 1.5.7.1 --> 1.71 +<script type="text/javascript"> 1.72 +<!-- 1.73 +function changeDisplayState (e){ 1.74 + var num=this.id.replace(/[^[0-9]/g,''); 1.75 + var button=this.firstChild; 1.76 + var sectionDiv=document.getElementById('dynsection'+num); 1.77 + if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){ 1.78 + sectionDiv.style.display='block'; 1.79 + button.src='open.gif'; 1.80 + }else{ 1.81 + sectionDiv.style.display='none'; 1.82 + button.src='closed.gif'; 1.83 + } 1.84 +} 1.85 +function initDynSections(){ 1.86 + var divs=document.getElementsByTagName('div'); 1.87 + var sectionCounter=1; 1.88 + for(var i=0;i<divs.length-1;i++){ 1.89 + if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){ 1.90 + var header=divs[i]; 1.91 + var section=divs[i+1]; 1.92 + var button=header.firstChild; 1.93 + if (button!='IMG'){ 1.94 + divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild); 1.95 + button=document.createElement('img'); 1.96 + divs[i].insertBefore(button,divs[i].firstChild); 1.97 + } 1.98 + header.style.cursor='pointer'; 1.99 + header.onclick=changeDisplayState; 1.100 + header.id='dynheader'+sectionCounter; 1.101 + button.src='closed.gif'; 1.102 + section.id='dynsection'+sectionCounter; 1.103 + section.style.display='none'; 1.104 + section.style.marginLeft='14px'; 1.105 + sectionCounter++; 1.106 + } 1.107 + } 1.108 +} 1.109 +window.onload = initDynSections; 1.110 +--> 1.111 +</script> 1.112 +<div class="navigation" id="top"> 1.113 + <div class="tabs"> 1.114 + <ul> 1.115 + <li><a href="index.html"><span>Main Page</span></a></li> 1.116 + <li><a href="modules.html"><span>Modules</span></a></li> 1.117 + <li><a href="namespaces.html"><span>Namespaces</span></a></li> 1.118 + <li><a href="annotated.html"><span>Classes</span></a></li> 1.119 + </ul> 1.120 + </div> 1.121 +</div> 1.122 +<div class="contents"> 1.123 +<h1>Using Drawing Functions.</h1><table border="0" cellpadding="0" cellspacing="0"> 1.124 +<tr><td></td></tr> 1.125 +</table> 1.126 +<h2><a class="anchor" name="s5"> 1.127 +Using Drawing Functions.</a></h2> 1.128 +This section tells more about drawing features in CImg images. Drawing functions list can be found in <a href="structCImg.html">the CImg functions list</a> (section <b>Drawing</b> Functions), and are all defined on a common basis. Here are the important points to understand before using drawing functions :<p> 1.129 +<ul> 1.130 +<li>Drawing is performed on the instance image. Drawing functions parameters are defined as <em>const</em> variables and return a reference to the current instance <code>(*this)</code>, so that drawing functions can be pipelined (see examples below). Drawing is usually done in 2D color images but can be performed in 3D images with any vector-valued dimension, and with any possible pixel type.</li></ul> 1.131 +<p> 1.132 +<ul> 1.133 +<li>A color parameter is always needed to draw features in an image. The color must be defined as a C-style array whose dimension is at least </li></ul> 1.134 +</div> 1.135 +<hr noshade="noshade" size="1" width="100%"> 1.136 +<a href="http://sourceforge.net"> 1.137 +<img src="http://sourceforge.net/sflogo.php?group_id=96492&type=3" border="0" height="37" width="125"></img> 1.138 +</a> 1.139 +<!-- Start of StatCounter Code --> 1.140 +<script type="text/javascript" language="javascript"> 1.141 +<!-- 1.142 +var sc_project=895001; 1.143 +var sc_invisible=1; 1.144 +var sc_partition=7; 1.145 +var sc_security="5ea85181"; 1.146 +//--> 1.147 +</script> 1.148 +<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c8.statcounter.com/counter.php?sc_project=895001&java=0&security=5ea85181&invisible=1" alt="counter stats" border="0"></a> </noscript> 1.149 +<!-- End of StatCounter Code --> 1.150 +</body> 1.151 +</html>