I want to draw lines.
Bitmap LCD = new Bitmap(SystemMetrics.ScreenWidth,
SystemMetrics.ScreenHeight);
void ProgramStarted()
{
…
LCD.Clear();
LCD.DrawLine(Colors.Green, 1, 10, 10, 40, 40);
LCD.Flush();
…
}
But, Bitmap is a namespace.
How do I do this?
Tom Dean
BMP file? There is a method in premium libs that does just that.
Not from a file. I want to create a bitmap to draw on, lines, etc.
And, put characters on.
I eventually want to create a form and fill it with data.
I have a FEZ Spider, display T35, and, a button.
When I press the button, if the led is on, I want to draw a line.
If the Led is off, I want to update a counter and display the result at some location, x.y.
Microsoft.SPOT.Bitmap.
Perhaps there’s a Bitmap naming conflict in Gadgeteer? normally as long as you have a reference to Microsoft.SPOT.Graphics and a using for Microsoft.SPOT you can create a bitmap exactly as your code shows. It must be exactly the size of the screen to flush.
My Error.
I had a name Bitmap which should have been myBitmap.
Confused things when I tried to define a Bitmap variable.
Sorry for the noise.
Tom Dean