Class ImageUtils
Assembly: DotNetNuke.dll
Syntax
Constructors
ImageUtils()
Declaration
Methods
CreateImage(Stream, int, int, string)
Declaration
public static Stream CreateImage(Stream stream, int intHeight, int intWidth, string extension)
Parameters
Returns
CreateImage(string)
Declaration
public static string CreateImage(string sFile)
Parameters
Type |
Name |
Description |
string |
sFile |
|
Returns
CreateImage(string, int, int)
Declaration
public static string CreateImage(string sFile, int intHeight, int intWidth)
Parameters
Type |
Name |
Description |
string |
sFile |
|
int |
intHeight |
|
int |
intWidth |
|
Returns
CreateImageForDB(Stream, int, int)
Declaration
public static MemoryStream CreateImageForDB(Stream sFile, int intHeight, int intWidth)
Parameters
Type |
Name |
Description |
Stream |
sFile |
|
int |
intHeight |
|
int |
intWidth |
|
Returns
CreateJPG(string, Bitmap, int)
Declaration
public static string CreateJPG(string sFile, Bitmap img, int compressionLevel)
Parameters
Returns
GetEncoderInfo(string)
Declaration
public static ImageCodecInfo GetEncoderInfo(string myMimeType)
Parameters
Type |
Name |
Description |
string |
myMimeType |
|
Returns
GetHeight(string)
Declaration
public static int GetHeight(string sPath)
Parameters
Type |
Name |
Description |
string |
sPath |
|
Returns
GetHeightFromStream(Stream)
Declaration
public static int GetHeightFromStream(Stream sFile)
Parameters
Type |
Name |
Description |
Stream |
sFile |
|
Returns
GetSize(string)
Declaration
public static Size GetSize(string sPath)
Parameters
Type |
Name |
Description |
string |
sPath |
|
Returns
GetWidth(string)
Declaration
public static int GetWidth(string sPath)
Parameters
Type |
Name |
Description |
string |
sPath |
|
Returns
GetWidthFromStream(Stream)
Declaration
public static int GetWidthFromStream(Stream sFile)
Parameters
Type |
Name |
Description |
Stream |
sFile |
|
Returns
NewImageSize(int, int, int, int)
Declaration
public static Size NewImageSize(int currentWidth, int currentHeight, int newWidth, int newHeight)
Parameters
Type |
Name |
Description |
int |
currentWidth |
|
int |
currentHeight |
|
int |
newWidth |
|
int |
newHeight |
|
Returns
Extension Methods