Debian Codegraph @

opcodes/imagecreate.xml

raw symbols SCIP
1
2 <refentry id="imagecreate">
3 <indexterm id="IndexImagecreate"><primary>imagecreate</primary></indexterm>
4 <refentryinfo><title>Image Processing Opcodes</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>imagecreate</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>imagecreate</refname>
11 <refpurpose>
12 Create an empty image of a given size.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>Plugin opcode in image. This opcode is part of the plugin repository and has to be installed separately.
19 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
20 <para>
21 Create an empty image of a given size. Individual pixel values can then be set with <link linkend="imagesetpixel"><citetitle>imagesetpixel</citetitle></link>.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>iimagenum <command>imagecreate</command> iwidth, iheight</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>iimagenum</emphasis> -- number assigned to the created image.
34 </para>
35 <para>
36 <emphasis>iwidth</emphasis> -- desired image width.
37 </para>
38 <para>
39 <emphasis>iheight</emphasis> -- desired image height.
40 </para>
41 </refsect1>
42
43 <refsect1>
44 <title>Examples</title>
45 <para>
46 Here is an example of the imagecreate opcode. It uses the file <ulink url="examples/imageopcodes.csd"><citetitle>imageopcodes.csd</citetitle></ulink> and <ulink url="examples/imageOpcode01.png"><citetitle>imageOpcode01.png</citetitle></ulink>.
47 <example>
48 <title>Example of the imagecreate opcode.</title>
49 <xi:include href="examples-xml/imageopcodes.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
50 </example>
51 <para>
52 This is what the image <citetitle>imageOpcode01.png</citetitle> looks like:
53 </para>
54 <imageobject>
55 <imagedata fileref="images/imageOpcode01small.png" format="PNG"/>
56 </imageobject>
57 <para>
58 and this is what the created image <citetitle>imageOUT.png</citetitle> looks like:
59 </para>
60 <imageobject>
61 <imagedata fileref="images/imageOUTsmall.png" format="PNG"/>
62 </imageobject>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="ImageopcodesTop"><citetitle>Image processing opcodes</citetitle></link></para>
69 </refsect1>
70
71 <refsect1>
72 <title>Credits</title>
73 <para>
74 <simplelist>
75 <member>Author: Cesare Marilungo</member>
76 </simplelist>
77 </para>
78 <para>New in version 5.08</para>
79 </refsect1>
80 </refentry>