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 22.0.2023.2.14
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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