imagecreateImage Processing Opcodesimagecreateimagecreate
Create an empty image of a given size.
DescriptionPlugin opcode in image. This opcode is part of the plugin repository and has to be installed separately.
The plugin repository can be found here: https://github.com/csound/plugins
Create an empty image of a given size. Individual pixel values can then be set with imagesetpixel.
Syntaxiimagenum imagecreate iwidth, iheightInitializationiimagenum -- number assigned to the created image.
iwidth -- desired image width.
iheight -- desired image height.
Examples
Here is an example of the imagecreate opcode. It uses the file imageopcodes.csd and imageOpcode01.png.
Example of the imagecreate opcode.
This is what the image imageOpcode01.png looks like:
and this is what the created image imageOUT.png looks like:
See alsoImage processing opcodesCreditsAuthor: Cesare MarilungoNew in version 5.08