Summary description for wwImaging.
Westwind.Utilities.ImageUtils
public static class ImageUtils : object
Class Members
Member | Description | |
---|---|---|
GetImageFormatFromFilename |
Tries to return an image format public static ImageFormat GetImageFormatFromFilename(string filename) |
|
ResizeImage |
Creates a resized bitmap from an existing image on disk. Resizes the image by creating an aspect ratio safe image. Image is sized to the larger size of width height and then smaller size is adjusted by aspect ratio. public static Bitmap ResizeImage(string filename, int width, int height, InterpolationMode mode) public static Bitmap ResizeImage(Byte[] data, int width, int height, InterpolationMode mode) public static bool ResizeImage(string filename, string outputFilename, int width, int height, InterpolationMode mode, int jpegCompressionMode) public static Bitmap ResizeImage(Bitmap bmp, int width, int height, InterpolationMode mode) |
|
RoateImage |
Rotates an image and writes out the rotated image to a file. public static bool RoateImage(string filename, string outputFilename, RotateFlipType type, int jpegCompressionMode) public static Byte[] RoateImage(Byte[] data, RotateFlipType type) |
|
SaveJpeg |
Saves a jpeg BitMap to disk with a jpeg quality setting. Does not dispose the bitmap. public static bool SaveJpeg(Bitmap bmp, string outputFileName, long jpegQuality) |
|
Encoders |
A quick lookup for getting image encoders |
Requirements
Namespace: Westwind.UtilitiesAssembly: westwind.utilities.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic