|
PixelData[,] | Pixels [get, set] |
| The pixel data array of the frame.
Dimension 0 if the array is the x/horizontal direction. Dimension 1 of the array is the y/vertical direction. More...
|
|
int | Width [get] |
| Gets the width of the frame.
More...
|
|
int | Height [get] |
| Get the height of the frame.
More...
|
|
DirectOutput.General.BitmapHandling.FastBitmap.FastBitmap |
( |
| ) |
|
Initializes a new instance of the FastBitmap class.
DirectOutput.General.BitmapHandling.FastBitmap.FastBitmap |
( |
Bitmap |
Bitmap | ) |
|
Initializes a new instance of the FastBitmap class and loads the currently active frame of the specified bitmap into the FastBitmap object.
- Parameters
-
DirectOutput.General.BitmapHandling.FastBitmap.FastBitmap |
( |
Image |
Image | ) |
|
Initializes a new instance of the FastBitmap class and loads the currently active frame of the specified image into the FastBitmap object..
- Parameters
-
FastBitmap DirectOutput.General.BitmapHandling.FastBitmap.GetClip |
( |
int |
ResultWidth, |
|
|
int |
ResultHeight, |
|
|
int |
SourceLeft = 0 , |
|
|
int |
SourceTop = 0 , |
|
|
int |
SourceWidth = -1 , |
|
|
int |
SourceHeight = -1 , |
|
|
FastBitmapDataExtractModeEnum |
DataExtractMode = FastBitmapDataExtractModeEnum.SinglePixelCenter |
|
) |
| |
Gets a FastBitmap with a specified size representing a defineable section of the current object.
- Parameters
-
ResultWidth | Width of the resulting FastBitmap object. |
ResultHeight | Height of the resulting FastBitmap object. |
SourceLeft | The left boundary for the source area. |
SourceTop | The top boundary of the source arrea. |
SourceWidth | Width of the source area. |
SourceHeight | Height of the source area. |
DataExtractMode | The data extract mode enum. |
- Returns
- FastBitmap object with a specified size representing a defineable section of the current object
PixelData DirectOutput.General.BitmapHandling.FastBitmap.GetPixel |
( |
int |
X, |
|
|
int |
Y |
|
) |
| |
Gets the PixelData for the specified pixel of the frame.
For positions outside the frame, the method will return PixelData for a fully transparent black pixel.
- Parameters
-
X | The X position of the pixel. |
Y | The Y position of the pixel. |
- Returns
- PixelData for the specified pixel.
void DirectOutput.General.BitmapHandling.FastBitmap.Load |
( |
Image |
Image | ) |
|
Loads the currently active frame of the specified Image into the FastBitmap object.
- Parameters
-
void DirectOutput.General.BitmapHandling.FastBitmap.Load |
( |
Bitmap |
Bitmap | ) |
|
Loads the currently active frame of the specified bitmap into the FastBitmap object.
- Parameters
-
void DirectOutput.General.BitmapHandling.FastBitmap.SetFrameSize |
( |
int |
Width, |
|
|
int |
Height |
|
) |
| |
Sets the size (width/height) of the frame.
Setting the framesize will discard all existing pixel data of the frame.
- Parameters
-
Width | The width of the frame. |
Height | The height of the frame. |
int DirectOutput.General.BitmapHandling.FastBitmap.Height |
|
get |
Get the height of the frame.
The height of the frame.
PixelData [,] DirectOutput.General.BitmapHandling.FastBitmap.Pixels |
|
getset |
The pixel data array of the frame.
Dimension 0 if the array is the x/horizontal direction. Dimension 1 of the array is the y/vertical direction.
The pixels array of the frame.
int DirectOutput.General.BitmapHandling.FastBitmap.Width |
|
get |
Gets the width of the frame.
The width of the frame.
The documentation for this class was generated from the following file:
- C:/Users/Tom/Documents/GitHub/DirectOutput/DirectOutput/General/BitmapHandling/FastBitmap.cs