Thanks Greg.

I do wonder how I’ll push it into a PDF later but I’m trying the drawing part 
first.

Not sure what I did in a past life to end up doing this at present 😊

Regards,

Greg

Dr Greg Low

1300SQLSQL (1300 775 775) office | +61 419201410 mobile
SQL Down Under | Web: https://sqldownunder.com<https://sqldownunder.com/> | 
About Greg:  https://about.me/greg.low

From: Greg Keogh via ozdotnet <[email protected]>
Sent: Thursday, 16 March 2023 1:17 PM
To: ozDotNet <[email protected]>
Cc: Greg Keogh <[email protected]>
Subject: Re: Replacement for old PictureBox

Dr L,

About 15 years ago I recall drawing to Windows Forms Bitmap then drawing 
(blt-ing) it into a PictureBox. A timer would draw many times per second to 
create a primitive but acceptable animation. I can't find the code now.

I'd construct a Bitmap, then g = bmp.CreateGraphics() and use the various 
Graphics methods to set pixels, draw rectangles, etc. Then g.DrawImageUnscaled 
into the PictureBox.

The C# classes are clearly thin wrappers over GDI+ and the C# code looks a bit 
like C++ code from the 1990s. If you have VB6 code that "draws", then maybe a 
translation to GDI calls would be easy (?!).

I haven't used Skia, but some friends like it in Xamarin apps.

Greg K

Reply via email to