ImageUtilsResizeImage Method |
Resizes an image
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string ResizeImage(
IAppContext cxt,
string sourceFile,
bool physicalPath,
string outPath,
string thmbPath,
bool createThumb,
int minSize,
bool forceToFormat,
ImageFileFormat imgFmt,
ImageFileQuality imgQual,
ImageFileSize imgSize,
ImageFileFormat thmbFmt,
ImageFileQuality thmbQuality,
ImageFileSize thmbSize
)
Public Shared Function ResizeImage (
cxt As IAppContext,
sourceFile As String,
physicalPath As Boolean,
outPath As String,
thmbPath As String,
createThumb As Boolean,
minSize As Integer,
forceToFormat As Boolean,
imgFmt As ImageFileFormat,
imgQual As ImageFileQuality,
imgSize As ImageFileSize,
thmbFmt As ImageFileFormat,
thmbQuality As ImageFileQuality,
thmbSize As ImageFileSize
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application object. - sourceFile
- Type: SystemString
The file to resize - physicalPath
- Type: SystemBoolean
Specifies whether the outPath is a physical or logical path. - outPath
- Type: SystemString
The output path for the resized image. - thmbPath
- Type: SystemString
The output path for the thumbnail image, if one is to be created. - createThumb
- Type: SystemBoolean
Specifies whether or not a thumbnail image should be generated. - minSize
- Type: SystemInt32
Specifies the filesize threshhold, in kilobytes, below which file is should not be resized. - forceToFormat
- Type: SystemBoolean
Specifies whether the output image should be forced to the specified imgFmt vs. output with the same format as the original file. - imgFmt
- Type: NetQuarry.Util.ImageImageFileFormat
The output image format (ignored unless forceToFormat is set). - imgQual
- Type: NetQuarry.Util.ImageImageFileQuality
The desired output image quality. - imgSize
- Type: NetQuarry.Util.ImageImageFileSize
The output file size to which to resize. - thmbFmt
- Type: NetQuarry.Util.ImageImageFileFormat
The desired thumbnail image format. - thmbQuality
- Type: NetQuarry.Util.ImageImageFileQuality
The desired thumbnail image quality. - thmbSize
- Type: NetQuarry.Util.ImageImageFileSize
The desired thumbnail file size.
Return Value
Type:
Stringthe source file string
See Also