Hi Tony,

 

Thanks so much for the pointer to SkiaSharp. That certainly looks interesting.

 

Regards,

 

Greg

 

Dr Greg Low

 

1300SQLSQL (1300 775 775) office | +61 419201410 mobile

SQL Down Under | Web: https://sqldownunder.com | About Greg:  https://about.me/greg.low

 

From: Tony McGee via ozdotnet <ozdotnet@ozdotnet.com>
Sent: Thursday, 16 March 2023 12:32 PM
To: ozdotnet@ozdotnet.com
Cc: Tony McGee <tmcgee.au@gmail.com>
Subject: Re: Replacement for old PictureBox

 

Hi Greg,

 

The WinForms PictureBox control is pretty basic, it's mostly designed for displaying images, not really for drawing.

In the distant past I've used Leadtools Imaging Pro for a WinForms document management project that required annotation, but that can get expensive if your needs are basic and looking towards the future I can't quite tell what their .NET 7+ story is anymore.
These days it might be worth looking into SkiaSharp canvas drawing, and there are also some PDF export samples in the github repository.

 

cheers,

Tony

 

 

On 16/03/2023 09:45, Dr Greg Low via ozdotnet wrote:

Hi Everyone,

 

I’m migrating an old VB6 app to .NET. It used a PictureBox control and of course that had all sorts of options for drawing all over it.

 

In the end, it was used to generate JPG images that were printed.

 

I’d really prefer to use PDF as output anyway.

 

Does anyone have a favourite control that presents a drawable surface that you can output as a PDF? (Or ideally as a JPG as well?)

 

I get the impression that the .NET version of the PictureBox is way different, although it does seem to expose a Graphics object that you can then draw on. Is it better to stick with the standard .NET control and work out how to migrate the code?

 

Regards,

 

Greg

 

Dr Greg Low

 

1300SQLSQL (1300 775 775) office | +61 419201410 mobile

SQL Down Under | Web: https://sqldownunder.com | About Greg:  https://about.me/greg.low