prepareDrawingCanvas Method

Summary

Generates the canvas that will be used to display the frame for the attached cell items.

Syntax
TypeScript
JavaScript
Cell.prototype.prepareDrawingCanvas = function( 
   frame, 
   chunk 
) 
prepareDrawingCanvas( 
   frame: Frame, 
   chunk: ChunkData 
): ChunkData; // protected 

Parameters

frame

The frame that got attached to the cell item

chunk

An instance that will contain the canvas and (optionally back canvas, which contains the raw 16-bit data), which will be used to render that frame.

Return Value

The same chunk that was sent as a parameter.

Remarks

Use this command to create a customizable cell. This method can be overridden in order to display one's own canvas.

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly