Свойство | Тип | Описание | |
---|---|---|---|
ClearExif | void |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes the object and frees resources for the Garbage Collector.
|
Метод | Описание | |
---|---|---|
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. /// |
Результат |
public BackgroundColor ( Color color ) : |
||
color | Color |
/// The |
Результат |
public BitDepth ( long bitDepth ) : |
||
bitDepth | long | A value over 0. |
Результат |
public Brightness ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images brightness. /// Any integer between -100 and 100. /// |
Результат |
public Constrain ( |
||
size |
/// The |
|
Результат |
public Contrast ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images contrast. /// Any integer between -100 and 100. /// |
Результат |
public Crop ( |
||
cropLayer |
/// The |
|
Результат |
public Crop ( |
||
rectangle |
/// The |
|
Результат |
public DetectEdges ( IEdgeFilter filter, bool greyscale = true ) : |
||
filter | IEdgeFilter |
/// The |
greyscale | bool | /// Whether to convert the image to greyscale first - Defaults to true. /// |
Результат |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If true, the object gets disposed. |
Результат | void |
public EntropyCrop ( byte threshold = 128 ) : |
||
threshold | byte | /// The threshold in bytes to control the entropy. /// |
Результат |
public Filter ( IMatrixFilter matrixFilter ) : |
||
matrixFilter | IMatrixFilter |
/// The |
Результат |
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. /// |
Результат |
public Format ( ISupportedImageFormat format ) : |
||
format | ISupportedImageFormat | The |
Результат |
public Gamma ( float value ) : |
||
value | float | /// The value to adjust the gamma by (typically between .2 and 5). /// |
Результат |
public GaussianBlur ( |
||
gaussianLayer |
/// The |
|
Результат |
public GaussianBlur ( int size ) : |
||
size | int | /// The size to set the Gaussian kernel to. /// |
Результат |
public GaussianSharpen ( |
||
gaussianLayer |
/// The |
|
Результат |
public GaussianSharpen ( int size ) : |
||
size | int | /// The size to set the Gaussian kernel to. /// |
Результат |
public Halftone ( bool comicMode = false ) : |
||
comicMode | bool | /// Whether to trace over the current image and add borders to add a comic book effect. /// |
Результат |
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 /// |
Результат |
public ImageFactory ( bool preserveExifData = false ) : System | ||
preserveExifData | bool | /// Whether to preserve exif metadata. Defaults to false. /// |
Результат | 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. /// |
Результат | System |
public Load ( Stream stream ) : |
||
stream | Stream |
/// The |
Результат |
public Load ( byte bytes ) : |
||
bytes | byte |
/// The |
Результат |
public Load ( string imagePath ) : |
||
imagePath | string | The absolute path to the image to load. |
Результат |
public Mask ( Image imageMask, Point point = null ) : |
||
imageMask | Image | /// The image containing the mask to apply. /// |
point | Point |
/// The |
Результат |
public Overlay ( ImageProcessor.Imaging.ImageLayer imageLayer ) : |
||
imageLayer | ImageProcessor.Imaging.ImageLayer |
/// The |
Результат |
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. /// | |
Результат |
public Quality ( int percentage ) : |
||
percentage | int | A value between 1 and 100 to set the quality to. |
Результат |
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. /// |
Результат |
public Resize ( |
||
resizeLayer |
/// The |
|
Результат |
public Resize ( |
||
size |
/// The |
|
Результат |
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 /// |
Результат |
public Rotate ( float degrees ) : |
||
degrees | float | /// The angle at which to rotate the image in degrees. /// |
Результат |
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.
/// |
Результат |
public RoundedCorners ( |
||
roundedCornerLayer |
/// The |
|
Результат |
public RoundedCorners ( int radius ) : |
||
radius | int | /// The radius at which the corner will be rounded. /// |
Результат |
public Saturation ( int percentage ) : |
||
percentage | int | /// The percentage by which to alter the images saturation. /// Any integer between -100 and 100. /// |
Результат |
public Save ( Stream stream ) : |
||
stream | Stream |
/// The |
Результат |
public Save ( string filePath ) : |
||
filePath | string | The path to save the image to. |
Результат |
public Tint ( Color color ) : |
||
color | Color |
/// The |
Результат |
public Vignette ( Color color = null ) : |
||
color | Color |
/// The |
Результат |
public Watermark ( ImageProcessor.Imaging.TextLayer textLayer ) : |
||
textLayer | ImageProcessor.Imaging.TextLayer |
/// The |
Результат |