LEADTOOLS JavaScript (Leadtools.Controls)

ImageSize Property

Show in webframe
Gets or sets the size of the image in the viewer.
Syntax
get_imageSize();
set_imageSize(value);
Object.defineProperty('imageSize');

Property Value

TypeDescription
LeadSizeDThe size of the image in viewer. Default value is LeadSizeD.Empty.
Remarks

Initially, the value of ImageSize will be set to LeadSizeD.Empty. This indicates that the viewer does not have an image to view currently.

When you successfully set a new image into the viewer using ImageUrl property, ImageSize will be populated with the width and height of the image in pixels.

You can also set a value directly into ImageSize when performing owner draw painting without an image. Setting a value into ImageSize will remove any image previously set in ImageUrl and re-create the background canvas (BackCanvas) with the new requested size. You can then use the BackCanvas property to draw the custom image as shown in the example.

Example

For an example, refer to BackCanvas.

See Also

Reference

ImageViewer Object
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.