Contents

drawOSC(withWidth:height:activePart:destinationImage:at:)

Draws a control on an image. This is the main method the host application calls to draw a plug-in parameter control.

Declaration

func drawOSC(withWidth width: Int, height: Int, activePart: Int, destinationImage: FxImageTile!, at time: CMTime)

Parameters

  • width:

    Width of the current image where the control will be drawn.

  • height:

    Height of the current image where the control will be drawn.

  • activePart:

    The active part of the control to draw.

  • destinationImage:

    An Iosurface into which you should draw your OSCs.

  • time:

    The time at which to draw the control.

Discussion

This method is called when the host application wants you to draw your onscreen controls. You should draw them into the destination image. The activePart parameter tells which part of the control is currently selected so you can draw that control with proper highlighting.

See Also

Instance Methods