Accusoft.ImagXpressSdk Namespace > ImageXView Class : ZoomFactor Property |
'Declaration <BrowsableAttribute(True)> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> <DefaultValueAttribute()> <DescriptionAttribute("The zooming factor for the image to be displayed at.")> Public Property ZoomFactor As Double
'Usage Dim instance As ImageXView Dim value As Double instance.ZoomFactor = value value = instance.ZoomFactor
[Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [DefaultValue()] [Description("The zooming factor for the image to be displayed at.")] public double ZoomFactor {get; set;}
[Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [DefaultValue()] [Description("The zooming factor for the image to be displayed at.")] public: __property double get_ZoomFactor(); public: __property void set_ZoomFactor( double value );
[Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [DefaultValue()] [Description("The zooming factor for the image to be displayed at.")] public: property double ZoomFactor { double get(); void set ( double value); }
The default value is 1.
Values greater than 1 result in the display image being enlarged. For example, a ZoomFactor = 2 doubles the display image height and width.
Values less than 1 result in the display image being reduced. For example, a ZoomFactor = .5 reduces the display image height and width by 50.
Zooming has no effect on the stored image, the aspect ratio of the displayed image, or the aspect ratio of the image's pixels.
Note: If the AutoResize property is set to BestFit, FitWidth, FitHeight or ResizeImage, then the ZoomFactor property is read-only. In the case that the property is set to ResizeImage then the ZoomFactor will always return a -1.0 as there is no uniform ZoomFactor applied to the image.