Method | Description | |
---|---|---|
Clone ( this source ) : |
Clone image. The original |
|
Clone ( this source, PixelFormat format ) : |
Clone image. The original |
|
Convert16bppTo8bpp ( this bimap ) : |
Convert bitmap with 16 bits per plane to a bitmap with 8 bits per plane. The routine does the next pixel format conversions: |
|
Convert8bppTo16bpp ( this bimap ) : |
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 = Accord.Imaging.Image.FromFile( "test.jpg" ); |
|
IsGrayscale ( this image ) : bool |
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 ( this image ) : void |
Set pallete of the 8 bpp indexed image to grayscale. The method initializes palette of |
Method | Description | |
---|---|---|
FormatImage ( |
public static Clone ( this source ) : |
||
source | this | Source image. |
return |
public static Clone ( this source, PixelFormat format ) : |
||
source | this | Source image. |
format | PixelFormat | Pixel format of result image. |
return |
public static Convert16bppTo8bpp ( this bimap ) : |
||
bimap | this | Source image to convert. |
return |
public static Convert8bppTo16bpp ( this bimap ) : |
||
bimap | this | Source image to convert. |
return |
public static CreateGrayscaleImage ( int width, int height ) : |
||
width | int | Image width. |
height | int | Image height. |
return |
public static FromFile ( string fileName ) : |
||
fileName | string | File name to load bitmap from. |
return |
public static IsGrayscale ( this image ) : bool | ||
image | this | Image to check. |
return | bool |
public static SetGrayscalePalette ( this image ) : void | ||
image | this | Image to initialize. |
return | void |