Class/Object

de.sciss.fscape.graph

PenImage

Related Docs: object PenImage | package graph

Permalink

final case class PenImage(src: GE = 1.0, alpha: GE = 1.0, dst: GE = 0.0, width: GE, height: GE, x: GE = 0, y: GE = 0, next: GE = 0, rule: GE = PenImage.SrcOver, op: GE = BinaryOp.Plus.id, wrap: GE = 0, rollOff: GE = 0.86, kaiserBeta: GE = 7.5, zeroCrossings: GE = 0) extends SingleOut with Product with Serializable

A UGen that writes the pixels of an image using an x and y input signal. It uses either a sinc-based band-limited resampling algorithm, or bicubic interpolation, depending on the zeroCrossings parameter.

All window defining parameters (width, height) are polled once per matrix. All writing and filter parameters are polled one per output pixel.

src

the source signal's amplitude or "pen color"

alpha

the alpha component of the source signal (0.0 transparent to 1.0 opaque).

dst

the "background" image to draw on. A DC(0.0) can be used, for example, to have a "black" background.

width

the width (number of columns) of the input and output matrix

height

the height (number of rows) of the input and output matrix

x

horizontal position of the dynamic pen signal

y

vertical position of the dynamic pen signal

next

a trigger that causes the UGen to emit the current image and begin a new one. An image of size width * height will be output, and new background data will be read from in.

rule

quasi-Porter-Duff rule id for composition between background (in) and pen foreground. It is assumed that Ar = Ad = 1, and instead of addition we use a custom binary operation op. Where the constrain leads to otherwise identical rules, we flip the operand order (e.g. SrcOver versus SrcAtop).

op

BinaryOp.Op identifier for the operand in the application of the Porter-Duff composition (+ in the standard definition).

wrap

if non-zero, wraps coordinates around the input images boundaries. TODO: currently wrap = 0 is broken if using sinc interpolation!

rollOff

the FIR anti-aliasing roll-off width. Between zero and one.

kaiserBeta

the FIR windowing function's parameter

zeroCrossings

the number of zero-crossings in the truncated and windowed sinc FIR. If zero (default), algorithm uses bicubic interpolation instead.

See also

ScanImage

Linear Supertypes
Serializable, Serializable, SingleOut, SomeOut[StreamOut], GE.Lazy, GE, UGenSource[UGenInLike, StreamOut], Expander[UGenInLike], Lazy, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PenImage
  2. Serializable
  3. Serializable
  4. SingleOut
  5. SomeOut
  6. Lazy
  7. GE
  8. UGenSource
  9. Expander
  10. Lazy
  11. Product
  12. Equals
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PenImage(src: GE = 1.0, alpha: GE = 1.0, dst: GE = 0.0, width: GE, height: GE, x: GE = 0, y: GE = 0, next: GE = 0, rule: GE = PenImage.SrcOver, op: GE = BinaryOp.Plus.id, wrap: GE = 0, rollOff: GE = 0.86, kaiserBeta: GE = 7.5, zeroCrossings: GE = 0)

    Permalink

    src

    the source signal's amplitude or "pen color"

    alpha

    the alpha component of the source signal (0.0 transparent to 1.0 opaque).

    dst

    the "background" image to draw on. A DC(0.0) can be used, for example, to have a "black" background.

    width

    the width (number of columns) of the input and output matrix

    height

    the height (number of rows) of the input and output matrix

    x

    horizontal position of the dynamic pen signal

    y

    vertical position of the dynamic pen signal

    next

    a trigger that causes the UGen to emit the current image and begin a new one. An image of size width * height will be output, and new background data will be read from in.

    rule

    quasi-Porter-Duff rule id for composition between background (in) and pen foreground. It is assumed that Ar = Ad = 1, and instead of addition we use a custom binary operation op. Where the constrain leads to otherwise identical rules, we flip the operand order (e.g. SrcOver versus SrcAtop).

    op

    BinaryOp.Op identifier for the operand in the application of the Porter-Duff composition (+ in the standard definition).

    wrap

    if non-zero, wraps coordinates around the input images boundaries. TODO: currently wrap = 0 is broken if using sinc interpolation!

    rollOff

    the FIR anti-aliasing roll-off width. Between zero and one.

    kaiserBeta

    the FIR windowing function's parameter

    zeroCrossings

    the number of zero-crossings in the truncated and windowed sinc FIR. If zero (default), algorithm uses bicubic interpolation instead.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val alpha: GE

    Permalink

    the alpha component of the source signal (0.0 transparent to 1.0 opaque).

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val dst: GE

    Permalink

    the "background" image to draw on.

    the "background" image to draw on. A DC(0.0) can be used, for example, to have a "black" background.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. val height: GE

    Permalink

    the height (number of rows) of the input and output matrix

  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val kaiserBeta: GE

    Permalink

    the FIR windowing function's parameter

  14. def makeUGen(args: IndexedSeq[UGenIn])(implicit b: Builder): UGenInLike

    Permalink
    Attributes
    protected
    Definition Classes
    PenImageUGenSource
  15. def makeUGens(implicit b: Builder): UGenInLike

    Permalink

    Abstract method which must be implemented by creating the actual UGens during expansion.

    Abstract method which must be implemented by creating the actual UGens during expansion. This method is at most called once during graph expansion

    returns

    the expanded object (depending on the type parameter U)

    Attributes
    protected
    Definition Classes
    PenImageExpander
  16. final def name: String

    Permalink
    Definition Classes
    UGenSource
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. val next: GE

    Permalink

    a trigger that causes the UGen to emit the current image and begin a new one.

    a trigger that causes the UGen to emit the current image and begin a new one. An image of size width * height will be output, and new background data will be read from in.

  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. val op: GE

    Permalink

    BinaryOp.Op identifier for the operand in the application of the Porter-Duff composition (+ in the standard definition).

  22. val rollOff: GE

    Permalink

    the FIR anti-aliasing roll-off width.

    the FIR anti-aliasing roll-off width. Between zero and one.

  23. val rule: GE

    Permalink

    quasi-Porter-Duff rule id for composition between background (in) and pen foreground.

    quasi-Porter-Duff rule id for composition between background (in) and pen foreground. It is assumed that Ar = Ad = 1, and instead of addition we use a custom binary operation op. Where the constrain leads to otherwise identical rules, we flip the operand order (e.g. SrcOver versus SrcAtop).

  24. val src: GE

    Permalink

    the source signal's amplitude or "pen color"

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val width: GE

    Permalink

    the width (number of columns) of the input and output matrix

  30. val wrap: GE

    Permalink

    if non-zero, wraps coordinates around the input images boundaries.

    if non-zero, wraps coordinates around the input images boundaries. TODO: currently wrap = 0 is broken if using sinc interpolation!

  31. val x: GE

    Permalink

    horizontal position of the dynamic pen signal

  32. val y: GE

    Permalink

    vertical position of the dynamic pen signal

  33. val zeroCrossings: GE

    Permalink

    the number of zero-crossings in the truncated and windowed sinc FIR.

    the number of zero-crossings in the truncated and windowed sinc FIR. If zero (default), algorithm uses bicubic interpolation instead.

Inherited from Serializable

Inherited from Serializable

Inherited from SingleOut

Inherited from SomeOut[StreamOut]

Inherited from GE.Lazy

Inherited from GE

Inherited from UGenSource[UGenInLike, StreamOut]

Inherited from Expander[UGenInLike]

Inherited from Lazy

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped