Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / GetResizeInfo Method / GetResizeInfo(Int32,Int32,Int32,Int32,Int32,Int32) Method
Original width of image
Original height of image
Desired width of image
Desired height of 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,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
    resizeWidth
    The resulting width of the image for use in resizing
    resizeHeight
    The resulting height of the image for use in resizing
    Remarks
    This method always retains aspect ratio
    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