Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / GetResizedImage Method / GetResizedImage(Image,Int32,Int32) Method
The input image
The desired width
The desired height
In This Topic
    GetResizedImage(Image,Int32,Int32) Method
    In This Topic
    Resizes a given image to the specified width and height
    Syntax
    public static Image GetResizedImage( 
       Image imgPhoto,
       int width,
       int height
    )

    Parameters

    imgPhoto
    The input image
    width
    The desired width
    height
    The desired height

    Return Value

    The resized image
    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