Метод | Описание | |
---|---|---|
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 ( ) : |
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 ) : |
Create managed image from the unmanaged. If the makeCopy is set to |
|
UnmanagedImage ( |
Initializes a new instance of the UnmanagedImage class. |
|
UnmanagedImage ( |
Initializes a new instance of the UnmanagedImage class. |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the object.
|
Метод | Описание | |
---|---|---|
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. |
Результат | ushort[] |
public Collect8bppPixelValues ( List |
||
points | List |
List of coordinates to collect pixels' value from. |
Результат | byte[] |
public CollectActivePixels ( |
||
rect | Image's rectangle to process. | |
Результат | List |
public Copy ( |
||
destImage | Destination image to copy this image to. | |
Результат | void |
public static Create ( int width, int height, PixelFormat pixelFormat ) : |
||
width | int | Image width. |
height | int | Image height. |
pixelFormat | PixelFormat | Image pixel format. |
Результат |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Indicates if disposing was initiated manually. |
Результат | void |
public static FromManagedImage ( |
||
image | Source managed image. | |
Результат |
public static FromManagedImage ( |
||
imageData | Source locked image data. | |
Результат |
public GetPixel ( IntPoint point ) : Color | ||
point | IntPoint | Point's coordiates to get color of. |
Результат | 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. |
Результат | 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. |
Результат | 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. |
Результат | 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. |
Результат | void |
public SetPixels ( List |
||
coordinates | List |
List of points to set color for. |
color | Color | Color to set for the specified points. |
Результат | void |
public ToManagedImage ( bool makeCopy ) : |
||
makeCopy | bool | Make a copy of the unmanaged image or not. |
Результат |
public UnmanagedImage ( |
||
bitmapData | Locked bitmap data. | |
Результат | System |
public UnmanagedImage ( |
||
imageData | 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. |
Результат | System |