Class ImageUtils

Summary description for wwImaging.

public static class ImageUtils : object

Class Members



Tries to return an image format

public static ImageFormat GetImageFormatFromFilename(string filename)


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)


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)


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)


A quick lookup for getting image encoders


Namespace: Westwind.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic