Visual Basic (Declaration) | |
---|---|
Public Property MaintainAspectRatio As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool MaintainAspectRatio {get; set;} |
Managed Extensions for C++ | |
---|---|
public: __property bool get_MaintainAspectRatio(); public: __property void set_MaintainAspectRatio( bool value ); |
Return Value
true to indicates that the aspect ratio of the image should be maintained when creating the thumbnail, otherwise; false.For an example, refer to RasterCodecs.ReadThumbnail.
When set to true, the generated thumbnail's width and height will not match both Width and Height if the original aspect ratio was not 1:1.
If you desire the thumbnail be generated with exactly the requested width and height while still maintaining the aspect ratio of the actual image, set both MaintainAspectRatio and ForceSize to true.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family