public DrawImageCentered ( Microsoft.SPOT.Bitmap screen, byte imageData, Microsoft.SPOT.Bitmap imageType ) : void | ||
screen | Microsoft.SPOT.Bitmap | |
imageData | byte | |
imageType | Microsoft.SPOT.Bitmap | |
return | void |
public void DrawImageCentered(Bitmap screen, byte[] imageData, Bitmap.BitmapImageType imageType)
{
var img = new Bitmap(imageData, imageType);
var p = new Point(AGENT.Contrib.Device.Center.X - (img.Width / 2), AGENT.Contrib.Device.Center.Y - (img.Height / 2));
DrawImageAtPoint(screen, imageData, imageType, p);
}