WIP
DirectOutput framework for virtual pinball cabinets WIP
|
Go to: Overview |
Public Member Functions | |
PixelData | 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. More... | |
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. More... | |
void | 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. More... | |
void | Load (Image Image) |
Loads the currently active frame of the specified Image into the FastBitmap object. More... | |
void | Load (Bitmap Bitmap) |
Loads the currently active frame of the specified bitmap into the FastBitmap object. More... | |
FastBitmap () | |
Initializes a new instance of the FastBitmap class. More... | |
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. More... | |
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.. More... | |
Properties | |
PixelData[,] | Pixels [get] |
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... | |
Definition at line 9 of file FastBitmap.cs.
DirectOutput.General.BitmapHandling.FastBitmap.FastBitmap | ( | ) |
Initializes a new instance of the FastBitmap class.
Definition at line 366 of file FastBitmap.cs.
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.
Bitmap | The bitmap. |
Definition at line 372 of file FastBitmap.cs.
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..
Image | The image. |
Definition at line 381 of file FastBitmap.cs.
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.
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. |
Definition at line 73 of file FastBitmap.cs.
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.
X | The X position of the pixel. |
Y | The Y position of the pixel. |
Definition at line 40 of file FastBitmap.cs.
void DirectOutput.General.BitmapHandling.FastBitmap.Load | ( | Image | Image | ) |
Loads the currently active frame of the specified Image into the FastBitmap object.
Bitmap | The bitmap. |
Definition at line 326 of file FastBitmap.cs.
void DirectOutput.General.BitmapHandling.FastBitmap.Load | ( | Bitmap | Bitmap | ) |
Loads the currently active frame of the specified bitmap into the FastBitmap object.
Bitmap | The bitmap. |
Definition at line 335 of file FastBitmap.cs.
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.
Width | The width of the frame. |
Height | The height of the frame. |
Definition at line 280 of file FastBitmap.cs.
|
get |
|
get |
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.
Definition at line 21 of file FastBitmap.cs.
|
get |