LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)

CurrentYScaleFactor Property (ImageBox)

Show in webframe





Gets the current vertical scale factor
Syntax
public double CurrentYScaleFactor {get;}
'Declaration
 
Public ReadOnly Property CurrentYScaleFactor As Double
'Usage
 
Dim instance As ImageBox
Dim value As Double
 
value = instance.CurrentYScaleFactor

            

            
public:
property double CurrentYScaleFactor {
   double get();
}

Property Value

The current vertical scale factor. Default value is 1.0
Remarks

The CurrentXScaleFactor and CurrentYScaleFactor properties will always contain the current horizontal and vertical scale factors used to calculate the current display properties of the image in the control.

The following properties determine the final transformation of the image:

You can use the Transform property to calculate where a location or bounds on the image will be displayed on the control and vice versa using the Matrix.Transform methods, you can easily achieve this task with the control PointToImageCoordinates, BoundsToImageCoordinates, PointFromImageCoordinates and BoundsFromImageCoordinates methods

The CurrentXScaleFactor and CurrentYScaleFactor properties are read-only and cannot be changed by the user. To set a uniform scaling factor into the control, use the ScaleFactor property. To set a non-uniform scale factor in the control use the AspectRatioCorrection property.

Example

For C#/VB examples, refer to CurrentXScaleFactor.

Requirements

Target Platforms

See Also

Reference

ImageBox Class
ImageBox Members

 

 


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