csound-expression-0.0.2: Csound combinator library

CsoundExpr.Opcodes.Imageopcodes.Top

Description

Image processing opcodes

Synopsis

Documentation

imagecreate :: Irate -> Irate -> IrateSource

  • opcode : imagecreate
  • syntax :
   iimagenum imagecreate iwidth, iheight
  • description :

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

imagesize :: Irate -> MultiOutSource

  • opcode : imagesize
  • syntax :
   iwidth iheight imagesize iimagenum
  • description :

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.

imagegetpixelA :: Irate -> Arate -> Arate -> MultiOutSource

  • opcode : imagegetpixel
  • syntax :
   ared agreen ablue imagegetpixel iimagenum, ax, ay
   kred kgreen kblue imagegetpixel iimagenum, kx, ky
  • description :

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.

imagegetpixelK :: (K k0, K k1) => Irate -> k0 -> k1 -> MultiOutSource

  • opcode : imagegetpixel
  • syntax :
   ared agreen ablue imagegetpixel iimagenum, ax, ay
   kred kgreen kblue imagegetpixel iimagenum, kx, ky
  • description :

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.

imagefree :: Irate -> SignalOutSource

  • opcode : imagefree
  • syntax :
   imagefree iimagenum
  • description :

Frees memory allocated for a previously loaded or created image.