Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / GetResizedImage Method / GetResizedImage(Image,Int32,Int32,Color) Method
The input image
The desired width
The desired height
Background color used when resizing the image.
In This Topic
    GetResizedImage(Image,Int32,Int32,Color) 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,
       Color backgroundColor
    )

    Parameters

    imgPhoto
    The input image
    width
    The desired width
    height
    The desired height
    backgroundColor
    Background color used when resizing the image.

    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