I’m making a lot of progress learning my new cobra. It’s quite easy to make it do what I want.
But I can’t figure out how to rotate an image/bitmap. Is there a built-in function that I just don’t know about?
This is what I’m trying:
_pressedButton.RotateImage(90, 1, 1, _pressedButton, 1, 1, 100, 100, 1);
_imgButton.Bitmap = _pressedButton;
And I get:
Exception System.ArgumentException - 0xfd000000 (1)
#### Message:
#### Microsoft.SPOT.Bitmap::RotateImage [IP: 0000] ####
#### GadgeteerApp3.Program::display_GestureDetected [IP: 0017] ####
#### Gadgeteer.Modules.GHIElectronics.Display_CP7::OnTouchEvent [IP: 00a1] ####
#### Gadgeteer.Modules.GHIElectronics.Display_CP7::_input_Interrupt [IP: 0006] ####
#### Gadgeteer.Interfaces.InterruptInput::OnInterruptEvent [IP: 0055] ####
#### System.Reflection.MethodBase::Invoke [IP: 0000] ####
#### Gadgeteer.Program::DoOperation [IP: 001a] ####
#### Microsoft.SPOT.Dispatcher::PushFrameImpl [IP: 0054] ####
#### Microsoft.SPOT.Dispatcher::PushFrame [IP: 001a] ####
#### Microsoft.SPOT.Dispatcher::Run [IP: 0006] ####
#### Gadgeteer.Program::Run [IP: 0020] ####
Justin