How do I create a new picture in windows? The following works on my Mac but not on a PC.
dim pic as new picture (1024,800)
When I run it on a PC I get a PlatformNotSupported Exception
The Language Reference says, On Windows, alpha channels require GDI+ to be enabled. Unfortunately this means nothing to me. I don’t care about an Alpha channel, I just want a picture object in order to use Monkeybread software’s screenshotRectMBS function to get a pic of the screen.
Thanks for both those comments. I thought GDI was something I had to turn on in Windows. The program now runs and I know how to add an alpha channel if I need one.
app.UseGDIPlus = true
dim p as new picture(640,480)
app.UseGDIPlus = false
That’s working here. What kind of project are you building? UseGDIPlus is not available in Console or Web apps.