csound-expression-opcodes-0.0.3: opcodes for the library csound-expression

Safe HaskellNone
LanguageHaskell98

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://www.csounds.com/manual/html/imagecreate.html

imagefree :: D -> SE () Source

Frees memory allocated for a previously loaded or created image.

 imagefree  iimagenum

csound doc: http://www.csounds.com/manual/html/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://www.csounds.com/manual/html/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://www.csounds.com/manual/html/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://www.csounds.com/manual/html/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://www.csounds.com/manual/html/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://www.csounds.com/manual/html/imagesize.html