![]()  | 
                        
                             
                                MyCaffe
                                 1.12.2.41
                             
                            Deep learning software for Windows C# programmers. 
                         | 
                    
The DirectBitmap class provides an efficient bitmap creating class. More...
 Public Member Functions | |
| DirectBitmap (int width, int height) | |
| The constructro.  More... | |
| void | SetPixel (int x, int y, Color colour) | 
| Sets a pixel within the bitmap with the specified color.  More... | |
| void | SetRow (int y, Color colour) | 
| Set an entire row to the same color.  More... | |
| Color | GetPixel (int x, int y) | 
| Returns the color of a pixel in the bitmap.  More... | |
| void | Dispose () | 
| Release all resources used.  More... | |
Properties | |
| Bitmap | Bitmap [get] | 
| Returns the Bitmap itself.  More... | |
| Int32[] | Bits [get] | 
| Returns an array containing the raw bitmap data.  More... | |
| bool | Disposed [get] | 
| Returns true when disposed.  More... | |
| int | Height [get] | 
| Returns the bitmap height.  More... | |
| int | Width [get] | 
| Returns the bitmap width.  More... | |
| GCHandle | BitsHandle [get] | 
| Returns the bitmap memory handle.  More... | |
The DirectBitmap class provides an efficient bitmap creating class.
Definition at line 18 of file DirectBitmap.cs.
| MyCaffe.basecode.DirectBitmap.DirectBitmap | ( | int | width, | 
| int | height | ||
| ) | 
The constructro.
| width | Specifies the bitmap width. | 
| height | Specifies the bitmap height. | 
Definition at line 50 of file DirectBitmap.cs.
| void MyCaffe.basecode.DirectBitmap.Dispose | ( | ) | 
Release all resources used.
Definition at line 107 of file DirectBitmap.cs.
| Color MyCaffe.basecode.DirectBitmap.GetPixel | ( | int | x, | 
| int | y | ||
| ) | 
Returns the color of a pixel in the bitmap.
| x | Specifies the x position of the pixel. | 
| y | Specifies the y position of the pixel. | 
Definition at line 95 of file DirectBitmap.cs.
| void MyCaffe.basecode.DirectBitmap.SetPixel | ( | int | x, | 
| int | y, | ||
| Color | colour | ||
| ) | 
Sets a pixel within the bitmap with the specified color.
| x | Specifies the x position of the pixel. | 
| y | Specifies the y position of the pixel. | 
| colour | Specifies the color to set the pixel. | 
Definition at line 65 of file DirectBitmap.cs.
| void MyCaffe.basecode.DirectBitmap.SetRow | ( | int | y, | 
| Color | colour | ||
| ) | 
Set an entire row to the same color.
| y | Specifies the row. | 
| colour | Specifies the color. | 
Definition at line 78 of file DirectBitmap.cs.
      
  | 
  get | 
Returns the Bitmap itself.
Definition at line 23 of file DirectBitmap.cs.
      
  | 
  get | 
Returns an array containing the raw bitmap data.
Definition at line 27 of file DirectBitmap.cs.
      
  | 
  getprotected | 
Returns the bitmap memory handle.
Definition at line 43 of file DirectBitmap.cs.
      
  | 
  get | 
Returns true when disposed.
Definition at line 31 of file DirectBitmap.cs.
      
  | 
  get | 
Returns the bitmap height.
Definition at line 35 of file DirectBitmap.cs.
      
  | 
  get | 
Returns the bitmap width.
Definition at line 39 of file DirectBitmap.cs.