Méthode | Description | |
---|---|---|
Clone ( |
Clone image. The original |
|
Clone ( |
Clone image. The original |
|
Clone ( |
Clone image.
|
|
Convert16bppTo8bpp ( |
Convert bitmap with 16 bits per plane to a bitmap with 8 bits per plane. The routine does the next pixel format conversions: |
|
Convert8bppTo16bpp ( |
Convert bitmap with 8 bits per plane to a bitmap with 16 bits per plane. The routine does the next pixel format conversions: |
|
CreateGrayscaleImage ( int width, int height ) : |
Create and initialize new 8 bpp grayscale image. The method creates new 8 bpp grayscale image and initializes its palette. Grayscale image is represented as |
|
FromFile ( string fileName ) : |
Load bitmap from file. The method is provided as an alternative of System.Drawing.Image.FromFile(string) method to solve the issues of locked file. The standard .NET's method locks the source file until image's object is disposed, so the file can not be deleted or overwritten. This method workarounds the issue and does not lock the source file. Sample usage: Bitmap image = AForge.Imaging.Image.FromFile( "test.jpg" ); |
|
IsGrayscale ( |
Check if specified 8 bpp image is grayscale. The methods checks if the image is a grayscale image of 256 gradients. The method first examines if the image's pixel format is |
|
SetGrayscalePalette ( |
Set pallete of the 8 bpp indexed image to grayscale. The method initializes palette of |
Méthode | Description | |
---|---|---|
FormatImage ( |
public static Clone ( |
||
source | Source image. | |
Résultat |
public static Clone ( |
||
source | Source image. | |
format | PixelFormat | Pixel format of result image. |
Résultat |
public static Clone ( |
||
sourceData | Source image data. | |
Résultat |
public static Convert16bppTo8bpp ( |
||
bimap | Source image to convert. | |
Résultat |
public static Convert8bppTo16bpp ( |
||
bimap | Source image to convert. | |
Résultat |
public static CreateGrayscaleImage ( int width, int height ) : |
||
width | int | Image width. |
height | int | Image height. |
Résultat |
public static FromFile ( string fileName ) : |
||
fileName | string | File name to load bitmap from. |
Résultat |
public static IsGrayscale ( |
||
image | Image to check. | |
Résultat | bool |
public static SetGrayscalePalette ( |
||
image | Image to initialize. | |
Résultat | void |