No red when showing an image

Monkey Targets Forums/Android/No red when showing an image

Gary Leeds(Posted 2011) [#1]
I am trying a simple picture display on a Samsung Galaxy Apollo but when I display it I have no red colour in the picture. It displays fine using HTML5 as the build target

The code I am using is

Import mojo
	
Class ShowPicture Extends App
    Field picture:Image

   	Method OnCreate ()
        picture = LoadImage ("picture.png")
        SetUpdateRate 60
	End

    Method OnUpdate()
	End

	Method OnRender ()
		Cls (0,0,0)
		DrawImage picture,0,0
	End

End 

Function Main()
		New ShowPicture
End


Am I missing anything when I set the device up? I have tried with a png and jpg and both do the same. It also does it on the Android emulator

Thanks
Gary


therevills(Posted 2011) [#2]
Are you using the latest Monkey (v41) and does your image not have alpha?

If yes then its this bug:

http://www.monkeycoder.co.nz/Community/posts.php?topic=934