Exemple #1
0
        private void ShowBitmapDrawer(BitmapDrawerForm drawerForm, Bitmap bitmap)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new Action <BitmapDrawerForm, Bitmap>(ShowBitmapDrawer), drawerForm, bitmap);
                return;
            }

            drawerForm.DrawBitmap(bitmap);
            drawerForm.Show();
        }
Exemple #2
0
        public void Log(Bitmap bmp)
        {
            BitmapDrawerForm drawerForm = CreateForm <BitmapDrawerForm>();

            ShowBitmapDrawer(drawerForm, bmp);
        }