]> granicus.if.org Git - imagemagick/blob - www/api/colorspace.html
(no commit message)
[imagemagick] / www / api / colorspace.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
4 <head>
5   <style type="text/css" media="screen,projection"><!--
6     @import url("../../www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/www/magick.css");
7   //--></style>
8   <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
9   <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
10   <title>ImageMagick: MagickCore, C API for ImageMagick: Dealing with Image Colorspaces</title>
11   <meta http-equiv="Content-Language" content="en-US"/>
12   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
13   <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
14   <meta name="Generator" content="PHP"/>
15   <meta name="Keywords" content="magickcore, c, api, for, imagemagick:, dealing, with, image, colorspaces, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject"/>
16   <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.  ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems.  The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
17   <meta name="Rating" content="GENERAL"/>
18   <meta name="Robots" content="INDEX, FOLLOW"/>
19   <meta name="Generator" content="ImageMagick Studio LLC"/>
20   <meta name="Author" content="ImageMagick Studio LLC"/>
21   <meta name="Revisit-after" content="2 DAYS"/>
22   <meta name="Resource-type" content="document"/>
23   <meta name="Copyright" content="Copyright (c) 1999-2010 ImageMagick Studio LLC"/>
24   <meta name="Distribution" content="Global"/>
25   <link rel="shortcut icon" href="../../images/wand.ico"  type="images/vnd.microsoft.icon"/>
26 </head>
27
28 <body id="www-imagemagick-org">
29   <table id="titlebar" style="width: 100%;background-color: #f5f5f5" cellpadding="0" cellspacing="0" border="0" summary="ImageMagick">
30     <tbody>
31       <tr valign="top">
32         <td align="left"><a href="../../index.html"><img id="titlebar-west" src="../../images/script.png" alt="[ImageMagick]" width="350" height="60" vspace="28" name="titlebar-west"/></a></td>
33         <td align="left"><a href="https://secure.networkredux.com/affiliate/idevaffiliate.html?id=146" target="395984210"><img id="titlebar-west" src="../../images/networkredux.png" alt="[sponsor]" border="0" vspace="45" name="titlebar-west"/></a></td>
34         <td width="99%"><br /> </td>
35         <td style="background-color: white" align="right"><a href="../../index.html"><img src="../../images/sprite.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
36         <td style="background-color: white" align="right"><a href="http://www.imagemagick.org/discourse-server/" target="1190810736"><img id="titlebar-east" src="../../images/logo.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
37       </tr>
38     </tbody>
39   </table>
40
41   <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" summary="">
42   <tbody>
43
44     <tr valign="top" style="height: 100%;">
45       <td id="menu" width="1%" height="100%">
46       <p><a href="#main">Skip to page contents</a></p>
47       <font size="-1">
48       <span>[</span>
49       <a href="../../index.html">About ImageMagick</a>
50   <span>]</span><br /><span>[</span>
51       <a href="../../www/command-line-tools.html">Command-line Tools</a>
52       <a href="../../www/command-line-processing.html" class="sub">Processing</a>
53       <a href="../../www/command-line-options.html" class="sub">Options</a>
54       <a href="http://www.imagemagick.org/Usage/" target="1124429312" class="sub">Usage</a>
55       <a href="../../www/api.html">Program Interfaces</a>
56       <a href="../../www/magick-wand.html" class="sub">MagickWand</a>
57       <a href="../../www/magick-core.html" class="sub">MagickCore</a>
58       <a href="../../www/perl-magick.css" class="sub">PerlMagick</a>
59       <a href="../../Magick++/" target="663201872" class="sub">Magick++</a>
60       <a href="../../www/architecture.html">Architecture</a>
61   <span>]</span><br /><span>[</span>
62       <a href="../../www/install-source.html">Install from Source</a>
63       <a href="../../www/install-source.html#unix" class="sub">Unix</a>
64       <a href="../../www/install-source.html#windows" class="sub">Windows</a>
65       <a href="../../www/binary-releases.html">Binary Releases</a>
66       <a href="../../www/binary-releases.html#unix" class="sub">Unix</a>
67       <a href="../../www/binary-releases.html#macosx" class="sub">Mac OS X</a>
68       <a href="../../www/binary-releases.html#windows" class="sub">Windows</a>
69       <a href="../../www/resources.html">Resources</a>
70   <span>]</span><br /><span>[</span>
71       <a href="../../www/download.html">Download</a>
72   <span>]</span><br /><span>[</span>
73       <a href="../../www/sitemap.html">Site Map</a>
74                         <a href="../../www/links.html" class="sub">Links</a>
75   <span>]</span><br /><span>[</span>
76       <a href="../../www/sponsors.html">Sponsors:</a>
77       <fieldset>
78   <a href="http://www.neue.autoteile-info.de/auspuff.html" class="sponsor" target="sponsor">Auspuff</a><!-- 200811010100 -->
79       <br />
80       <a href="http://www.callerbase.com" class="sponsor" target="sponsor">Phone Number<br />Search</a><!-- 200812010040 -->
81       <br />
82       <a href="http://www.online-kredit-index.de" class="sponsor" target="sponsor">Kredit</a><!-- 200812010120 -->
83       <br />
84       <a href="http://www.posters555.com" class="sponsor" target="sponsor">Poster</a><!-- 200903010800 -->
85       <br />
86       <a href="http://www.iceposter.com" class="sponsor" target="sponsor">Posters</a><!-- 200812010200 -->
87       <br />
88       <a href="http://meta-preisvergleich.de" class="sponsor" target="sponsor">Preisvergleich</a><!-- 200810010120 -->
89       <br />
90       <a href="http://www.imade-art.de"><img src="../../images/imade_art2.jpg" alt="[Kunst bei imade-art]" width="116" height="28" border="0" name="Kunst bei imade-art"/></a> <!-- 200811010160 -->
91       </fieldset>
92       <span>]</span>
93       </font>
94       </td>
95
96       <td id="main" valign="top">
97 <p class="navigation-index">[ <a href="#TransformImageColorspace">TransformImageColorspace</a> ]</p>
98
99 <div style="margin: auto;">
100   <h2><a href="http://magick.imagemagick.org/viewvc/bin/cgi/viewvc.cgi/svn/ImageMagick/trunk/magick/colorspace.c
101 ?view=markup" target="source" name="TransformImageColorspace">TransformImageColorspace</a></h2>
102 </div>
103
104 <p>TransformImageColorspace() sets the colorspace member of the Image structure.</p></ol>
105
106 <p>The format of the TransformImageColorspace method is:</p>
107
108 <pre class="code">
109   MagickBooleanType TransformImageColorspace(Image *image,
110     const ColorspaceType colorspace)
111 </pre>
112
113 <p>A description of each parameter follows:</p></ol>
114
115 <h5>image</h5>
116 <ol><p>the image.</p></ol>
117
118 <h5>colorspace</h5>
119 <ol><p>the colorspace.</p></ol>
120
121       </td>
122       <td id="margin" width="1%" height="100%" valign="top" align="right">&nbsp;</td>
123     </tr>
124   </tbody>
125   </table>
126   <div id="linkbar">
127     <span id="linkbar-west">
128       <font size="-1">
129       <a href="http://www.downloadroute.com/" target="1008442605">Downloads and Opinions</a><!-- 200810010100 -->
130       </font>
131     </span>
132     <span id="linkbar-center">
133       <a href="http://www.imagemagick.org/discourse-server/" target="32408890">Discourse Server</a> &bull;
134       <a href="../../www/mailing-list.html">Mailing Lists</a> &bull;
135       <a href="http://cafe.imagemagick.org" target="504823470">Cafe</a> &bull;
136     <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi" target="931097531">Studio</a>
137     </span>
138   </div>
139   <div id="footer">
140     <span id="footer-west">&copy; 1999-2010 ImageMagick Studio LLC</span>
141   </div>
142   <div style="clear: both; margin: 0; width: 100%; "></div>
143 </body>
144 </html>