imagesaveImage Processing Opcodesimagesaveimagesave
Save a previously created image.
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
Save a previously created image. An empty image can be created with imagecreate and its pixel RGB values can be set with imagesetpixel. The image will be saved in PNG format.
Syntaximagesave iimagenum, filenameInitializationiimagenum -- the reference of the image to be save. It should be a value returned by imagecreate.
filename -- The filename to use to save the image.
Examples
Here is an example of the imagesave opcode. It uses the file imageopcodes.csd and imageOpcode01.png.
Example of the imagesave opcode.
This is what the saved image imageOUT.png looks like:
See alsoImage processing opcodesCreditsAuthor: Cesare MarilungoNew in version 5.08