Property | Type | Description | |
---|---|---|---|
ClearExif | void |
Method | Description | |
---|---|---|
Alpha ( int percentage ) : |
Changes the opacity of the current image.
|
|
AutoRotate ( ) : |
Performs auto-rotation to ensure that EXIF defined rotation is reflected in the final image.
|
|
BackgroundColor ( Color color ) : |
Changes the background color of the current image.
|
|
BitDepth ( long bitDepth ) : |
Alters the bit depth of the current image.
|
|
Brightness ( int percentage ) : |
Changes the brightness of the current image.
|
|
Constrain ( |
Constrains the current image, resizing it to fit within the given dimensions whilst keeping its aspect ratio.
|
|
Contrast ( int percentage ) : |
Changes the contrast of the current image.
|
|
Crop ( |
Crops the current image to the given location and size.
|
|
Crop ( |
Crops the current image to the given location and size.
|
|
DetectEdges ( IEdgeFilter filter, bool greyscale = true ) : |
Detects the edges in the current image.
|
|
Dispose ( ) : void |
Disposes the object and frees resources for the Garbage Collector.
|
|
EntropyCrop ( byte threshold = 128 ) : |
Crops an image to the area of greatest entropy.
|
|
Filter ( IMatrixFilter matrixFilter ) : |
Applies a filter to the current image. Use the MatrixFilters class to assign the correct filter.
|
|
Flip ( bool flipVertically = false, bool flipBoth = false ) : |
Flips the current image either horizontally or vertically.
|
|
Format ( ISupportedImageFormat format ) : |
Sets the output format of the current image to the matching T:System.Drawing.Imaging.ImageFormat.
|
|
Gamma ( float value ) : |
Adjust the gamma (intensity of the light) component of the given image.
|
|
GaussianBlur ( |
Uses a Gaussian kernel to blur the current image.
|
|
GaussianBlur ( int size ) : |
Uses a Gaussian kernel to blur the current image. The sigma and threshold values applied to the kernel are 1.4 and 0 respectively.
|
|
GaussianSharpen ( |
Uses a Gaussian kernel to sharpen the current image.
|
|
GaussianSharpen ( int size ) : |
Uses a Gaussian kernel to sharpen the current image. The sigma and threshold values applied to the kernel are 1.4 and 0 respectively.
|
|
Halftone ( bool comicMode = false ) : |
Converts the current image to a CMYK halftone representation of that image.
|
|
Hue ( int degrees, bool rotate = false ) : |
Alters the hue of the current image changing the overall color.
|
|
ImageFactory ( bool preserveExifData = false ) : System |
Initializes a new instance of the ImageFactory class.
|
|
ImageFactory ( bool preserveExifData, bool fixGamma ) : System |
Initializes a new instance of the ImageFactory class.
|
|
Load ( Stream stream ) : |
Loads the image to process. Always call this method first.
|
|
Load ( byte bytes ) : |
Loads the image to process from an array of bytes. Always call this method first.
|
|
Load ( string imagePath ) : |
Loads the image to process. Always call this method first.
|
|
Mask ( Image imageMask, Point point = null ) : |
Applies the given image mask to the current image.
|
|
Overlay ( ImageProcessor.Imaging.ImageLayer imageLayer ) : |
Adds a image overlay to the current image.
|
|
Pixelate ( int pixelSize, |
Pixelates an image with the given size.
|
|
Quality ( int percentage ) : |
Alters the output quality of the current image.
|
|
ReplaceColor ( Color target, Color replacement, int fuzziness ) : |
Replaces a color within the current image.
|
|
Reset ( ) : |
Resets the current image to its original loaded state.
|
|
Resize ( |
Resizes the current image to the given dimensions.
|
|
Resize ( |
Resizes the current image to the given dimensions.
|
|
Resolution ( int horizontal, int vertical, PropertyTagResolutionUnit unit = PropertyTagResolutionUnit.Inch ) : |
Sets the resolution of the image.
|
|
Rotate ( float degrees ) : |
Rotates the current image by the given angle.
|
|
RotateBounded ( float degrees, bool keepSize = false ) : |
Rotates the image without expanding the canvas to fit the image.
|
|
RoundedCorners ( |
Adds rounded corners to the current image.
|
|
RoundedCorners ( int radius ) : |
Adds rounded corners to the current image.
|
|
Saturation ( int percentage ) : |
Changes the saturation of the current image.
|
|
Save ( Stream stream ) : |
Saves the current image to the specified output stream.
|
|
Save ( string filePath ) : |
Saves the current image to the specified file path. If the extension does not match the correct extension for the current format it will be replaced by the correct default value.
|
|
Tint ( Color color ) : |
Tints the current image with the given color.
|
|
Vignette ( Color color = null ) : |
Adds a vignette image effect to the current image.
|
|
Watermark ( ImageProcessor.Imaging.TextLayer textLayer ) : |
Adds a text based watermark to the current image.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes the object and frees resources for the Garbage Collector.
|
Method | Description | |
---|---|---|
ClearExif ( Image image ) : void |
Clears any EXIF metadata from the image
|
public Alpha ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images opacity. /// Any integer between 0 and 100. /// |
return |
public BackgroundColor ( Color color ) : |
||
color | Color |
/// The |
return |
public BitDepth ( long bitDepth ) : |
||
bitDepth | long | A value over 0. |
return |
public Brightness ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images brightness. /// Any integer between -100 and 100. /// |
return |
public Constrain ( |
||
size |
/// The |
|
return |
public Contrast ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images contrast. /// Any integer between -100 and 100. /// |
return |
public Crop ( |
||
cropLayer |
/// The |
|
return |
public Crop ( |
||
rectangle |
/// The |
|
return |
public DetectEdges ( IEdgeFilter filter, bool greyscale = true ) : |
||
filter | IEdgeFilter |
/// The |
greyscale | bool | /// Whether to convert the image to greyscale first - Defaults to true. /// |
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If true, the object gets disposed. |
return | void |
public EntropyCrop ( byte threshold = 128 ) : |
||
threshold | byte | /// The threshold in bytes to control the entropy. /// |
return |
public Filter ( IMatrixFilter matrixFilter ) : |
||
matrixFilter | IMatrixFilter |
/// The |
return |
public Flip ( bool flipVertically = false, bool flipBoth = false ) : |
||
flipVertically | bool | /// Whether to flip the image vertically. /// |
flipBoth | bool | /// Whether to flip the image both vertically and horizontally. /// |
return |
public Format ( ISupportedImageFormat format ) : |
||
format | ISupportedImageFormat | The |
return |
public Gamma ( float value ) : |
||
value | float | /// The value to adjust the gamma by (typically between .2 and 5). /// |
return |
public GaussianBlur ( |
||
gaussianLayer |
/// The |
|
return |
public GaussianBlur ( int size ) : |
||
size | int | /// The size to set the Gaussian kernel to. /// |
return |
public GaussianSharpen ( |
||
gaussianLayer |
/// The |
|
return |
public GaussianSharpen ( int size ) : |
||
size | int | /// The size to set the Gaussian kernel to. /// |
return |
public Halftone ( bool comicMode = false ) : |
||
comicMode | bool | /// Whether to trace over the current image and add borders to add a comic book effect. /// |
return |
public Hue ( int degrees, bool rotate = false ) : |
||
degrees | int | /// The angle by which to alter the images hue. /// Any integer between 0 and 360. /// |
rotate | bool | /// Whether to rotate the hue of the current image altering each color /// |
return |
public ImageFactory ( bool preserveExifData = false ) : System | ||
preserveExifData | bool | /// Whether to preserve exif metadata. Defaults to false. /// |
return | System |
public ImageFactory ( bool preserveExifData, bool fixGamma ) : System | ||
preserveExifData | bool | /// Whether to preserve exif metadata. Defaults to false. /// |
fixGamma | bool | /// Whether to fix the gamma component of the image. Defaults to true. /// |
return | System |
public Load ( Stream stream ) : |
||
stream | Stream |
/// The |
return |
public Load ( byte bytes ) : |
||
bytes | byte |
/// The |
return |
public Load ( string imagePath ) : |
||
imagePath | string | The absolute path to the image to load. |
return |
public Mask ( Image imageMask, Point point = null ) : |
||
imageMask | Image | /// The image containing the mask to apply. /// |
point | Point |
/// The |
return |
public Overlay ( ImageProcessor.Imaging.ImageLayer imageLayer ) : |
||
imageLayer | ImageProcessor.Imaging.ImageLayer |
/// The |
return |
public Pixelate ( int pixelSize, |
||
pixelSize | int | /// The size of the pixels to create. |
rectangle | /// The area in which to pixelate the image. If not set, the whole image is pixelated. /// | |
return |
public Quality ( int percentage ) : |
||
percentage | int | A value between 1 and 100 to set the quality to. |
return |
public ReplaceColor ( Color target, Color replacement, int fuzziness ) : |
||
target | Color |
/// The target |
replacement | Color |
/// The replacement |
fuzziness | int | /// A value between 0 and 128 with which to alter the target detection accuracy. /// |
return |
public Resize ( |
||
resizeLayer |
/// The |
|
return |
public Resize ( |
||
size |
/// The |
|
return |
public Resolution ( int horizontal, int vertical, PropertyTagResolutionUnit unit = PropertyTagResolutionUnit.Inch ) : |
||
horizontal | int | The horizontal resolution. |
vertical | int | The vertical resolution. |
unit | PropertyTagResolutionUnit | /// The unit of measure for the horizontal resolution and the vertical resolution. /// Defaults to inches /// |
return |
public Rotate ( float degrees ) : |
||
degrees | float | /// The angle at which to rotate the image in degrees. /// |
return |
public RotateBounded ( float degrees, bool keepSize = false ) : |
||
degrees | float | /// The angle at which to rotate the image in degrees. /// |
keepSize | bool |
/// Whether to keep the original image dimensions.
/// |
return |
public RoundedCorners ( |
||
roundedCornerLayer |
/// The |
|
return |
public RoundedCorners ( int radius ) : |
||
radius | int | /// The radius at which the corner will be rounded. /// |
return |
public Saturation ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images saturation. /// Any integer between -100 and 100. /// |
return |
public Save ( Stream stream ) : |
||
stream | Stream |
/// The |
return |
public Save ( string filePath ) : |
||
filePath | string | The path to save the image to. |
return |
public Tint ( Color color ) : |
||
color | Color |
/// The |
return |
public Vignette ( Color color = null ) : |
||
color | Color |
/// The |
return |
public Watermark ( ImageProcessor.Imaging.TextLayer textLayer ) : |
||
textLayer | ImageProcessor.Imaging.TextLayer |
/// The |
return |