LEADTOOLS JavaScript (Leadtools.Controls.Medical)
LEAD Technologies, Inc

ShouldResize Method

The desired render width.
The desired render height.
Calculates whether or not the DICOMImageInformationRenderer object should resize its output.
Syntax
 function Leadtools.Controls.Medical.DICOMImageInformationRenderer.shouldResize( 
   width ,
   height 
)

Parameters

ParameterTypeDescription
widthintThe desired render width.
heightintThe desired render height.

Return Value

TypeDescription
int

A value indicating whether or not the renderer can handle the specified width and height.

Remarks
This method returns the one of the following values:
Value Description
0 The machine/browser is fast enough to process the window level in real time without having to resize the image first.
1 The image needs to be resized once. The new image size will be (Width >> 1 or Width / 2) (Height >> 1 or Height / 2).
2 The image needs to be resized twice. The new image size will be (Width >> 2 or Width / 4) (Height >> 2 or Height / 4).
See Also

Reference

DICOMImageInformationRenderer Object
DICOMImageInformationRenderer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.