ImageMan.Net Version 3 Summer 2012 Release
BestFit Property
See Also  Send Feedback
DTI.ImageMan.Commands Namespace > ScaleCommand Class : BestFit Property

Glossary Item Box

By using Best Fit the image will fit within Width and Height while maintaining aspect ratio. Specifies if the command should return an image scaled to fit within the specified rectangle while maintaining the original image's aspect ratio


Visual Basic (Declaration) 
Public Property BestFit As System.Boolean
Visual Basic (Usage)Copy Code
Dim instance As ScaleCommand
Dim value As System.Boolean
instance.BestFit = value
value = instance.BestFit
public System.bool BestFit {get; set;}
public function get,set BestFit : System.boolean
Managed Extensions for C++ 
public: __property System.bool get_BestFit();
public: __property void set_BestFit( 
   System.bool value
property System.bool BestFit {
   System.bool get();
   void set (    System.bool value);


The resulting image will most likely be smaller in one dimension unless the source and destination images have the same aspect ratio.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.