CanvasToTexture Op

CanvasToTexture

convert a canvas to texture


<p>this operator uses texImage2D functionality <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D">context drawimage</a></p> <p>this can be an Image Element, Canvas Element or HTML Video Element</p>


Full Name
  • Ops.Gl.CanvasToTexture
Visibility
  • Core Op - Official cables op
License
  • MIT
Authorgithub


INPUT PORTS


canvas (Object)
filter index (Number:

<i>integer</i>

)

wrap index (Number:

<i>integer</i>

)

Force Update (Trigger)

OUTPUT PORTS


texture (Object)
width (Number)
height (Number)

Patches using CanvasToTexture

  • Examples
  • Public
  • My Patches

Changelog


improvementAdded workaround for detecting correct size of video elementsuser avatarpandur - 2024-04-22 14:07
featureAdd trigger input to force an update of the texture, needed for video elementsuser avatarpandur - 2024-04-22 14:07