csound-expression-opcodes-0.0.5.1: opcodes for the library csound-expression
Safe HaskellNone
LanguageHaskell2010

Csound.Typed.Opcode.ImageProcessingOpcodes

Synopsis

Documentation

imagecreate :: D -> D -> SE D Source #

Create an empty image of a given size.

Create an empty image of a given size. Individual pixel values can then be set with. imagegetpixel.

iimagenum  imagecreate  iwidth, iheight

csound doc: http://csound.com/docs/manual/imagecreate.html

imagefree :: D -> SE () Source #

Frees memory allocated for a previously loaded or created image.

 imagefree  iimagenum

csound doc: http://csound.com/docs/manual/imagefree.html

imagegetpixel :: D -> Sig -> Sig -> (Sig, Sig, Sig) Source #

Return the RGB pixel values of a previously opened or created image.

Return the RGB pixel values of a previously opened or created image. An image can be loaded with imageload. An empty image can be created with imagecreate.

ared, agreen, ablue  imagegetpixel  iimagenum, ax, ay
kred, kgreen, kblue  imagegetpixel  iimagenum, kx, ky

csound doc: http://csound.com/docs/manual/imagegetpixel.html

imageload :: Spec -> SE D Source #

Load an image.

Load an image and return a reference to it. Individual pixel values can then be accessed with imagegetpixel.

iimagenum  imageload  filename

csound doc: http://csound.com/docs/manual/imageload.html

imagesave :: D -> Spec -> SE () Source #

Save a previously created image.

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.

 imagesave  iimagenum, filename

csound doc: http://csound.com/docs/manual/imagesave.html

imagesetpixel :: D -> Sig -> Sig -> Sig -> Sig -> Sig -> SE () Source #

Set the RGB value of a pixel inside a previously opened or created image.

Set the RGB value of a pixel inside a previously opened or created image. An image can be loaded with imageload. An empty image can be created with imagecreate and saved with imagesave.

 imagesetpixel  iimagenum, ax, ay, ared, agreen, ablue
 imagesetpixel  iimagenum, kx, ky, kred, kgreen, kblue

csound doc: http://csound.com/docs/manual/imagesetpixel.html

imagesize :: D -> (D, D) Source #

Return the width and height of a previously opened or created image.

Return the width and height of a previously opened or created image. An image can be loaded with imageload. An empty image can be created with imagecreate.

iwidth, iheight  imagesize  iimagenum

csound doc: http://csound.com/docs/manual/imagesize.html