UtilImageCompressImage(String, ImageFormat, Int32) Method

Compresses a image file to the specified filesize and returns the raw image stream of the compressed image.

Definition

Namespace: DevCase.Core.Media.Graphics
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static MemoryStream CompressImage(
	string srcFilepath,
	ImageFormat newImageFormat,
	int newFileSize
)

Parameters

srcFilepath  String
The source image filepath.
newImageFormat  ImageFormat
The target image format.
newFileSize  Int32
The target filesize, in bytes.

Return Value

MemoryStream

[Missing <returns> documentation for "M:DevCase.Core.Media.Graphics.UtilImage.CompressImage(System.String,System.Drawing.Imaging.ImageFormat,System.Int32)"]

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also