get_imageSize();
set_imageSize(value);
!MISSING Scrap '_RTJavaScript_PROPERTY_SYNTAX'!
Type | Description |
---|---|
LeadSizeD | The size of the image in viewer. Default value is LeadSizeD.Empty. |
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 with the new requested size. You can then use the BackCanvas property to draw the custom image as shown in the example.
For an example, refer to BackCanvas.