Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Utility Namespace / FileHelper Class / WriteImageFile Method / WriteImageFile(Image,String,Int32,Int32,Boolean,Int32) Method
Image to write
File to write to
Desired width of the image
Desired height of the image
If true aspect ratio is maintained while resizing
Quality of the image in percent
In This Topic
    WriteImageFile(Image,String,Int32,Int32,Boolean,Int32) Method
    In This Topic
    Writes an image to the file name specified
    Syntax

    Parameters

    originalImage
    Image to write
    fileName
    File to write to
    desiredWidth
    Desired width of the image
    desiredHeight
    Desired height of the image
    maintainAspectRatio
    If true aspect ratio is maintained while resizing
    quality
    Quality of the image in percent
    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