prepareDrawingCanvas Method

Summary

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

Syntax

JavaScript Syntax
MPRCell.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 optional back canvas, which contains the raw 16-bit data), which will be used to render the frame.

Return Value

The same chunk that was sent as a parameter.

Remarks

To create a customizable cell, override this method and add the special canvas to be used for rendering instead.

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