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
|
From: =?utf-8?q?Bastien_ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Wed, 14 Dec 2016 15:18:12 +0100
Subject: Fix api/Image++.html
Forwarded: Yes, https://github.com/ImageMagick/ImageMagick/issues/304
---
www/api/Image++.html | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/www/api/Image++.html b/www/api/Image++.html
index 40349ce..db90089 100644
--- a/www/api/Image++.html
+++ b/www/api/Image++.html
@@ -152,7 +152,7 @@ int main(int argc,char **argv)
// Write the image to a file
image.write( "x.gif" );
}
- catch( Exception &error_ )
+ catch( Exception &error_ )
{
cout << "Caught exception: " << error_.what() << endl;
return 1;
@@ -176,8 +176,8 @@ following:
<li> Write the third image to a file.</li>
</ol>
<pre class="code">
-#include <Magick++.h>
-#include <iostream>
+#include <Magick++.h>
+#include <iostream>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
@@ -200,7 +200,7 @@ and the image data is never copied.
a 100 by 100 pixel white image with a red pixel in the center and
writes it to a file: </p>
<pre class="code">
-#include <Magick++.h>
+#include <Magick++.h>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
@@ -219,7 +219,6 @@ image.quantizeColorSpace( GRAYColorspace );
image.quantizeColors( 256 );
image.quantize( );
</pre>
-</p>
<p>or, more simply: </p>
<pre class="code">
image.type( GrayscaleType );
@@ -243,7 +242,7 @@ a <a href="Image++.html#constructor_blob">constructor</a> or <a href="Image++.ht
<p>An example of using Image to write to a Blob follows: <br />
</p>
<pre class="code">
-#include <Magick++.h>
+#include <Magick++.h>
using namespace std;
using namespace Magick;
int main(int argc,char **argv)
@@ -255,7 +254,7 @@ int main(int argc,char **argv)
// Write to BLOB in JPEG format
Blob blob;
image.magick( "JPEG" ) // Set JPEG output format
- image.write( &blob );
+ image.write( &blob );
[ Use BLOB data (in JPEG format) here ]
@@ -789,8 +788,8 @@ background color.</font></td>
</tr>
<tr>
<td style="text-align: center;" rowspan="4">
- <center><a name="extent"></a> <font size="-1">extent</font></td>
- <td><font size="-1">const <a href="http://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &geometry_</font></td>
+ <center><a name="extent"></a> <font size="-1">extent</font></center></td>
+ <td><font size="-1">const <a href="https://www.imagemagick.org/Magick++/Geometry.html"> Geometry</a> &geometry_</font></td>
<td rowspan="2"><font size="-1">extends the image as defined by the geometry, gravity, and image background color.</font></td>
</tr>
<tr>
|