Hi DK
I'm trying to achieve that goal too, I need Bitmap class in order to easily draw Text onto my TFT panel. I had a quick look tonight on the content of the Porting Kit in revisoin 4.3.1, and identified the files that list the features to be included. My guess is that you might have to modify the following file :
netduinofirmware_source_4.3.1.0\MicroFrameworkPK_v4_3\Solutions\NetduinoPlus2\TinyCLR\TinyCLR.proj
From Line 114 to 117 it is specified that the Graphics name space is linked to a stub version :
<ItemGroup>
<PlatformIndependentLibs Include="Graphics_stub.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\Graphics\dotNetMF_stub.proj" />
</ItemGroup>
So it is probably the following modification to apply :
<ItemGroup>
<PlatformIndependentLibs Include="Graphics.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\Graphics\dotNetMF.proj" />
</ItemGroup>
I assume also that we might have to add entries for the SPOT_Graphics library to that file using the following info :
<ItemGroup>
<PlatformIndependentLibs Include="SPOT_Graphics.$(LIB_EXT)" />
<RequiredProjects Include="$(SPOCLIENT)\CLR\Libraries\SPOT_Graphics\dotNetMF.proj" />
</ItemGroup>
This is a suggestion, I haven't been able to launch the build yet. So if you have time, please try it and let me know.
- Billounet