Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / GetResizeInfo Method / GetResizeInfo(Int32,Int32,Int32,Int32,Boolean,Int32,Int32) Method
Original width of image
Original height of image
Desired width of image
Desired height of image
Indicates whether resizing should maintain the original aspect ratio of the image
The resulting width of the image for use in resizing
The resulting height of the image for use in resizing
In This Topic
    GetResizeInfo(Int32,Int32,Int32,Int32,Boolean,Int32,Int32) Method
    In This Topic
    Determines the best resize dimensions for an image.
    Syntax

    Parameters

    originalWidth
    Original width of image
    originalHeight
    Original height of image
    desiredWidth
    Desired width of image
    desiredHeight
    Desired height of image
    maintainAspectRatio
    Indicates whether resizing should maintain the original aspect ratio of the image
    resizeWidth
    The resulting width of the image for use in resizing
    resizeHeight
    The resulting height of the image for use in resizing
    Requirements

    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