Hi, I've added c# file for using with BGRABitmapLibrary
This is a test:
using BGRABitmapLibrary;
// Create a new bitmap and save to file
BGRABitmap.bgraCreateWithSize(0,100,100);
BGRABitmap.bgraSaveToFile(0,"file.png");
// Create another bitmap
BGRABitmap.bgraCreate(1);
// Get Highest ID available
int id = BGRABitmap.bgraGetHighestID();
// Display highest ID (1)
MessageBox.Show(id.ToString());
// Destroy bitmaps
BGRABitmap.bgraDestroy(1);
BGRABitmap.bgraDestroy(0);
// Create a new bitmap from file
BGRABitmap.bgraCreateFromFile(0, @"C:\lazarus\images\LazarusSource.bmp");
// Get bitmap 0 pixel at 19 37 (somewhat brown)
// Is getting the pixel
uint pixel = BGRABitmap.bgraGetPixel(0, 19, 37);
// Is setting the pixel
BGRABitmap.bgraSetPixel(0, 1, 1, pixel);
// and saving a modified copy
BGRABitmap.bgraSaveToFile(0, "file2.png");
// Destroy bitmap
BGRABitmap.bgraDestroy(0);