prepareDrawingCanvas Method

Summary

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

Syntax
TypeScript
JavaScript
MPRCell.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 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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.