Method | Description | |
---|---|---|
Clone ( ) : |
Clone the unmanaged images. The method does complete cloning of the object. |
|
Collect16bppPixelValues ( List |
Collect pixel values from the specified list of coordinates. The method goes through the specified list of points and for each point retrievs corresponding pixel's value from the unmanaged image. |
|
Collect8bppPixelValues ( List |
Collect pixel values from the specified list of coordinates. The method goes through the specified list of points and for each point retrievs corresponding pixel's value from the unmanaged image. |
|
CollectActivePixels ( ) : List |
Collect coordinates of none black pixels in the image.
|
|
CollectActivePixels ( |
Collect coordinates of none black pixels within specified rectangle of the image.
|
|
Copy ( |
Copy unmanaged image. The method copies current unmanaged image to the specified image. Size and pixel format of the destination image must be exactly the same. |
|
Create ( int width, int height, PixelFormat pixelFormat ) : |
Allocate new image in unmanaged memory. Allocate new image with specified attributes in unmanaged memory. |
|
Dispose ( ) : void |
Dispose the object. Frees unmanaged resources used by the object. The object becomes unusable after that. |
|
FromManagedImage ( |
Create unmanaged image from the specified managed image. The method creates an exact copy of specified managed image, but allocated in unmanaged memory. |
|
FromManagedImage ( |
Create unmanaged image from the specified managed image. The method creates an exact copy of specified managed image, but allocated in unmanaged memory. This means that managed image may be unlocked right after call to this method. |
|
GetPixel ( IntPoint point ) : Color |
Get color of the pixel with the specified coordinates. See GetPixel(int, int) for more information. |
|
GetPixel ( int x, int y ) : Color |
Get color of the pixel with the specified coordinates. |
|
SetPixel ( IntPoint point, Color color ) : void |
Set pixel with the specified coordinates to the specified color. See SetPixel(int, int, Color) for more information. |
|
SetPixel ( int x, int y, Color color ) : void |
Set pixel with the specified coordinates to the specified color. For grayscale images this method will calculate intensity value based on the below formula: |
|
SetPixel ( int x, int y, byte value ) : void |
Set pixel with the specified coordinates to the specified value. The method sets all color components of the pixel to the specified value. If it is a grayscale image, then pixel's intensity is set to the specified value. If it is a color image, then pixel's R/G/B components are set to the same specified value (if an image has alpha channel, then it is set to maximum value - 255 or 65535). |
|
SetPixels ( List |
Set pixels with the specified coordinates to the specified color. |
|
ToManagedImage ( ) : Bitmap |
Create managed image from the unmanaged. The method creates a managed copy of the unmanaged image with the same size and pixel format (it calls ToManagedImage(bool) specifying |
|
ToManagedImage ( bool makeCopy ) : Bitmap |
Create managed image from the unmanaged. If the makeCopy is set to |
|
UnmanagedImage ( BitmapData bitmapData ) : System |
Initializes a new instance of the UnmanagedImage class. |
|
UnmanagedImage ( IntPtr imageData, int width, int height, int stride, PixelFormat pixelFormat ) : System |
Initializes a new instance of the UnmanagedImage class. |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the object.
|
Method | Description | |
---|---|---|
SetPixel ( int x, int y, byte r, byte g, byte b, byte a ) : void |
public Collect16bppPixelValues ( List |
||
points | List |
List of coordinates to collect pixels' value from. |
return | ushort[] |
public Collect8bppPixelValues ( List |
||
points | List |
List of coordinates to collect pixels' value from. |
return | byte[] |
public CollectActivePixels ( |
||
rect | Image's rectangle to process. | |
return | List |
public Copy ( |
||
destImage | Destination image to copy this image to. | |
return | void |
public static Create ( int width, int height, PixelFormat pixelFormat ) : |
||
width | int | Image width. |
height | int | Image height. |
pixelFormat | PixelFormat | Image pixel format. |
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Indicates if disposing was initiated manually. |
return | void |
public static FromManagedImage ( |
||
image | Source managed image. | |
return |
public static FromManagedImage ( |
||
imageData | Source locked image data. | |
return |
public GetPixel ( IntPoint point ) : Color | ||
point | IntPoint | Point's coordiates to get color of. |
return | Color |
public GetPixel ( int x, int y ) : Color | ||
x | int | X coordinate of the pixel to get. |
y | int | Y coordinate of the pixel to get. |
return | Color |
public SetPixel ( IntPoint point, Color color ) : void | ||
point | IntPoint | Point's coordiates to set color for. |
color | Color | Color to set for the pixel. |
return | void |
public SetPixel ( int x, int y, Color color ) : void | ||
x | int | X coordinate of the pixel to set. |
y | int | Y coordinate of the pixel to set. |
color | Color | Color to set for the pixel. |
return | void |
public SetPixel ( int x, int y, byte value ) : void | ||
x | int | X coordinate of the pixel to set. |
y | int | Y coordinate of the pixel to set. |
value | byte | Pixel value to set. |
return | void |
public SetPixels ( List |
||
coordinates | List |
List of points to set color for. |
color | Color | Color to set for the specified points. |
return | void |
public ToManagedImage ( bool makeCopy ) : Bitmap | ||
makeCopy | bool | Make a copy of the unmanaged image or not. |
return | Bitmap |
public UnmanagedImage ( BitmapData bitmapData ) : System | ||
bitmapData | BitmapData | Locked bitmap data. |
return | System |
public UnmanagedImage ( IntPtr imageData, int width, int height, int stride, PixelFormat pixelFormat ) : System | ||
imageData | IntPtr | Pointer to image data in unmanaged memory. |
width | int | Image width in pixels. |
height | int | Image height in pixels. |
stride | int | Image stride (line size in bytes). |
pixelFormat | PixelFormat | Image pixel format. |
return | System |