←Select platform

ImageSize Property

Summary

Gets or sets the size of the image in the viewer.

Syntax

C#
VB
Java
Objective-C
WinRT C#
public virtual Size ImageSize {get; set;} 
Public Overridable Property ImageSize As Size 
public virtual Size ImageSize {get; set;} 
@property (nonatomic, assign) CGSize imageSize 
public LeadSizeF getImageSize() 
public void setImageSize(LeadSize size) 
             
  
get_ImageSize(); 
set_ImageSize(value); 
Object.defineProperty('ImageSize');  

Property Value

The size of the image in viewer. The default value is empty size.

Remarks

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

When you successfully set a new image into the viewer, 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 previously set image .

Example

For an example, refer to InteractiveModeCanvas.

Requirements

Target Platforms

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)