[]
Represents a grayscale image or transparency mask with 8 bits per pixel.
public class GrayscaleBitmap : IImage, IDisposable
Public Class GrayscaleBitmap
Implements IImage, IDisposable
Name | Description |
---|---|
GrayscaleBitmap(byte[], int, int, bool, bool, float, float) | Initializes a new instance of the GrayscaleBitmap class and sets the existing pixel data to be read/modified in-place. |
GrayscaleBitmap(int, int, bool, bool, float, float) | Initializes a new instance of the GrayscaleBitmap class. |
GrayscaleBitmap(IntPtr, int, int, bool, bool, float, float) | Initializes a new instance of the GrayscaleBitmap class and sets the existing pixel data to be read/modified in-place. |
Name | Description |
---|---|
DpiX | Gets the horizontal dpi of the bitmap. |
DpiY | Gets the vertical dpi of the bitmap. |
ExifProfile | Gets or sets an instance of ExifProfile with Exif metadata of the image. |
IccProfileData | Gets or sets the raw ICC profile data. |
IsDisposed | Gets a value indicating whether the GrayscaleBitmap has been disposed of. |
this[int, int] | Gets or sets a pixel value (from 0 to 255) at the specified coordinates. |
PixelHeight | Gets the pixel height of the image. |
PixelWidth | Gets the pixel width of the image. |
RawData | Gets a pointer to the internal binary data. |
Rotation | Gets the flip and rotate transformations that must be applied to the image. |
TransparencyMask | Gets or sets a value indicating whether the image is used to define an irregularly shaped region of another image. |
WhiteIsZero | Gets or sets a value specifying whether 0 represents white and 255 represents black (if true) or vice versa (if false). |
Name | Description |
---|---|
AdjustLevels(int, int, int, int, float) | Adjusts the levels of an image histogram. The method maps the input range of values (blackPoint..whitePoint) to the output range (outputBlack..outputWhite) using the specified gamma correction (midtone). |
ApplyGaussianBlur(byte, int, GaussianBlurBorderMode) | Applies a Gaussian blur to this GrayscaleBitmap. |
ApplyGaussianBlur(int, GaussianBlurBorderMode) | Applies a Gaussian blur to this GrayscaleBitmap. |
ApplyGlow(int, int) | When applied to a grayscale mask built from a color image using the ToGrayscaleBitmap(ColorChannel, bool) method, modifies it so that the result can be used as a transparency mask to produce Glow or Soft Edges effect. |
ApplyLicenseKey(string) | Applies a license key to an instance of GrayscaleBitmap. |
AutoContrast() | Modifies pixel intensities such that available range of values (0..255) is fully covered. |
AutoContrast(float, float) | Modifies pixel intensities, clipping extremely low and extremely high values, such that available range of values (0..255) is fully covered. |
Clear(int) | Clears the GrayscaleBitmap with the specified value (from 0 to 255). |
Clear(int, Rectangle) | Clears the GrayscaleBitmap with the specified value (from 0 to 255). |
Clip(Rectangle, bool) | Creates a new GrayscaleBitmap with a fragment of the image. |
Clone(bool, bool) | Creates a new GrayscaleBitmap with a copy of the image. |
Dispose() | Clean up any resources being used. |
Dispose(bool) | Performs cleanup operations on managed and unmanaged resources. |
InvertColors() | Inverts the pixel colors from black to white and vice versa. |
SetDpi(float) | Changes the physical resolution of the image. |
SetDpi(float, float) | Changes the physical resolution of the image. |
ShrinkPixelFormat(int, DitheringMethod) | Changes pixel format from 8 bits per pixel to lower value with two-dimensional error diffusion. |
ToGcBitmap() | Creates an instance of the GcBitmap class from the current GrayscaleBitmap. |
ToGcBitmap(GcBitmap, bool) | Copies the image into an existing instance of GcBitmap. |
ToShadowBitmap(GcBitmap, Color, float, bool) | Converts an existing instance of GcBitmap to a semi-transparent bitmap representing the current GrayscaleBitmap. This method treats the current GrayscaleBitmap as a transparency mask, regardless of the TransparencyMask property value. |
ToShadowBitmap(Color, float, bool) | Creates a semi-transparent GcBitmap from the current GrayscaleBitmap. This method treats the current GrayscaleBitmap as a transparency mask, regardless of the TransparencyMask property value. |