MCPcopy
hub / github.com/williamngan/pts / getForm

Method getForm

src/Image.ts:334–339  ·  view source on GitHub ↗

* Get a CanvasForm for drawing on the internal canvas if this Img is editable

()

Source from the content-addressed store, hash-verified

332 * Get a CanvasForm for drawing on the internal canvas if this Img is editable
333 */
334 getForm():CanvasForm {
335 if (!this._editable) {
336 console.error( "Cannot get a CanvasForm because this Img is not editable" );
337 }
338 return this._ctx ? new CanvasForm( this._ctx ) : undefined;
339 }
340
341 /**
342 * Get current image source. If editable, this will return the canvas, otherwise it will return the original image.

Callers 15

cover.jsFile · 0.45
tempo_progress.jsFile · 0.45
sound_visual.jsFile · 0.45
image_load2.jsFile · 0.45
sound_mic.jsFile · 0.45
op_bspline_2.jsFile · 0.45
getting_started.jsFile · 0.45
op_intersect.jsFile · 0.45
sound_frequency.jsFile · 0.45
image_pattern2.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected