private void ShowBitmapDrawer(BitmapDrawerForm drawerForm, Bitmap bitmap) { if (InvokeRequired) { BeginInvoke(new Action <BitmapDrawerForm, Bitmap>(ShowBitmapDrawer), drawerForm, bitmap); return; } drawerForm.DrawBitmap(bitmap); drawerForm.Show(); }
public void Log(Bitmap bmp) { BitmapDrawerForm drawerForm = CreateForm <BitmapDrawerForm>(); ShowBitmapDrawer(drawerForm, bmp); }