public static MemoryStream CompressImage(
string srcFilepath,
ImageFormat newImageFormat,
int newFileSize
)
Public Shared Function CompressImage (
srcFilepath As String,
newImageFormat As ImageFormat,
newFileSize As Integer
) As MemoryStream
Dim srcFilepath As String
Dim newImageFormat As ImageFormat
Dim newFileSize As Integer
Dim returnValue As MemoryStream
returnValue = UtilImage.CompressImage(srcFilepath,
newImageFormat, newFileSize)
public:
static MemoryStream^ CompressImage(
String^ srcFilepath,
ImageFormat^ newImageFormat,
int newFileSize
)
static member CompressImage :
srcFilepath : string *
newImageFormat : ImageFormat *
newFileSize : int -> MemoryStream
No code example is currently available or this language may not be supported.
[Missing <returns> documentation for "M:DevCase.Core.Media.Graphics.UtilImage.CompressImage(System.String,System.Drawing.Imaging.ImageFormat,System.Int32)"]
No code example is currently available or this language may not be supported.
Dim imageFile As String = "C:\Image.jpg"
Dim compressedSize = 1048576 ' 1 Megabyte
Dim compressedImage As MemoryStream = UtilImage.CompressImage(imageFile, ImageFormat.Jpeg, compressedSize)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.