prepareDrawingCanvas Method

Summary

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

Syntax

JavaScript Syntax
Cell.prototype.prepareDrawingCanvas = function( 
   frame, 
   chunk 
) 
TypeScript Syntax
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly