MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The LockBitmap class provides very efficient SetPixel and GetPixel functionality of a bitmap by using LockBits to directly access the bitmap data. More...
Public Member Functions | |
LockBitmap (Bitmap source) | |
Sets the source bitmap. More... | |
void | LockBits () |
Lock bitmap data to access its underlying raw data. More... | |
void | UnlockBits () |
Unlock bitmap data, releasing its underlying data. More... | |
Color | GetPixel (int x, int y) |
Get the color of the specified pixel More... | |
void | SetPixel (int x, int y, Color color) |
Set the color of the specified pixel More... | |
Properties | |
byte[] | Pixels [getset] |
Get/set the raw pixel byte data. More... | |
int | Depth [get] |
Returns the depth of the bitmap. More... | |
int | Width [get] |
Returns the width of the bitmap. More... | |
int | Height [get] |
Returns the height of the bitmap. More... | |
The LockBitmap class provides very efficient SetPixel and GetPixel functionality of a bitmap by using LockBits to directly access the bitmap data.
Definition at line 20 of file LockBitmap.cs.
MyCaffe.basecode.LockBitmap.LockBitmap | ( | Bitmap | source | ) |
Sets the source bitmap.
source | Specifies the source bitmap to use. |
Definition at line 47 of file LockBitmap.cs.
Color MyCaffe.basecode.LockBitmap.GetPixel | ( | int | x, |
int | y | ||
) |
Get the color of the specified pixel
x | Specifies the pixel x location. |
y | Specifies the pixel y location. |
Definition at line 121 of file LockBitmap.cs.
void MyCaffe.basecode.LockBitmap.LockBits | ( | ) |
Lock bitmap data to access its underlying raw data.
Definition at line 55 of file LockBitmap.cs.
void MyCaffe.basecode.LockBitmap.SetPixel | ( | int | x, |
int | y, | ||
Color | color | ||
) |
Set the color of the specified pixel
x | Specifies the pixel x location. |
y | Specifies the pixel y location. |
color | Specifies the color to set the pixel. |
Definition at line 164 of file LockBitmap.cs.
void MyCaffe.basecode.LockBitmap.UnlockBits | ( | ) |
Unlock bitmap data, releasing its underlying data.
Definition at line 99 of file LockBitmap.cs.
|
get |
Returns the depth of the bitmap.
Definition at line 33 of file LockBitmap.cs.
|
get |
Returns the height of the bitmap.
Definition at line 41 of file LockBitmap.cs.
|
getset |
Get/set the raw pixel byte data.
Definition at line 29 of file LockBitmap.cs.
|
get |
Returns the width of the bitmap.
Definition at line 37 of file LockBitmap.cs.