M
MountainJoy
In a C# application, I want to use a Bitmap loaded from a file, but the
Constructor "new Bitmap("filename.bmp")" keeps throwing an
ArgumentException, when using it on a device with monochrome display (1
bpp).
The exact same routine, used on the same device, but with color display
(8 bpp), works perfectly.
I tried loading the Bitmap in a native application, built with eVC4,
using the native API call "SHLoadDIBitmap", and it loads without
problems on both devices and can be displayed.
Unfortunately, I cannot use this function in C#, since it returns a
HBITMAP, which NETCF does not know of, and I have no idea as how to
wrap this in a Bitmap-derived class.
So, the bitmap file seems to be OK, and the display driver of the
terminal as well.
What remains, is that NETCF seems to have a problem with monochrome
displays with color depth 1 bpp.
Can anyone verify this, or even has a solution for the problem? Someone
from Microsoft, perhaps?
I am using Windows CE .NET 4.2 with NETCF 1.0 (v1.0.5000). CPU is an
ARM9.
Kind regards
Dirk
Constructor "new Bitmap("filename.bmp")" keeps throwing an
ArgumentException, when using it on a device with monochrome display (1
bpp).
The exact same routine, used on the same device, but with color display
(8 bpp), works perfectly.
I tried loading the Bitmap in a native application, built with eVC4,
using the native API call "SHLoadDIBitmap", and it loads without
problems on both devices and can be displayed.
Unfortunately, I cannot use this function in C#, since it returns a
HBITMAP, which NETCF does not know of, and I have no idea as how to
wrap this in a Bitmap-derived class.
So, the bitmap file seems to be OK, and the display driver of the
terminal as well.
What remains, is that NETCF seems to have a problem with monochrome
displays with color depth 1 bpp.
Can anyone verify this, or even has a solution for the problem? Someone
from Microsoft, perhaps?
I am using Windows CE .NET 4.2 with NETCF 1.0 (v1.0.5000). CPU is an
ARM9.
Kind regards
Dirk