Bitmap on SC13048Q fails to init

Using the SC13048Q dev board with SC13048Q processor.

I get this error:

An unhandled exception of type ‘System.NotSupportedException’ occurred in GHIElectronics.TinyCLR.Drawing.dll

When I define the bitmap:

var mybmp = new Bitmap(SCREEN_WIDTH, SCREEN_HEIGHT);

Program stops with exception on that line.

The screen inits with random data just fine. When I try to create a display buffer the program faults.

Why can’t I create a bitmap? And is there a way around this?

The exception does not lie!

The SC13048Q processor does not support Graphics.

Check out the following page in the documentation:

https://docs.ghielectronics.com/software/tinyclr/drivers/display.html

Thank you for the response!

So is the solution to switch to a processor with native parallel graphics or use basicgraphics?
Where would I find documentation on what is/is not implemented on each processor?
My plan is to use several different processors with identical class implements.
Sorry, new to this product line (<10hrs). Aside from a small bump with graphics, this is awesome!!!

The documentation is at https://docs.ghielectronics.com. You should go through all of the hardware and software sections. I like to skim through all of the documentation so later, when I have a question, I remember seeing something and can go look for it.

Yes, when the native graphics are not available, then you can use basic graphics.

All of the library software is available on https://github.com. If something is missing, I usually go to the library code and see if the function has been entirely implement in managed code(c#). Then I can steal, I mean borrow, the code. Search for “tinyclr libraries”

The hardware, the software or the people on this forum? :innocent:

Mike,

As long as you give me the right answers then:

It’s all you!!! (Also the hardware and software rocks) But mostly you!

There is always a catch…

You need to use basic graphics library on SC13