ImageUtils.FormatImage Method

Moxiecode ImageManager

MCManager classes

ImageUtils.FormatImage Method 

Formats a image based in the input parameter. Format parameters: %f - Filename. %e - Extension. %w - Image width. %h - Image height. %tw - Target width. %th - Target height. %ow - Original width. %oh - Original height. Examples: 320x240|gif=%f_%w_%h.gif,320x240=%f_%w_%h.%e

public static void FormatImage(
   string path,
   string format,
   int quality
);

Parameters

path
File name to format.
format
Format string to process.
quality
JPEG quality in percent.

See Also

ImageUtils Class | Moxiecode.ImageManager.Utils Namespace