Updating Image Problem
Posted: Tue Mar 23, 2010 11:24 pm
I have a small (200 x 200) image that is being created & updated, but setting the image to the ImageGadget to update the image isn't working.
I'm using Ubuntu 9.10 x64. Any ideas?
I'm using Ubuntu 9.10 x64. Any ideas?
Code: Select all
Procedure DrawIt(width, height)
If Not IsImage(0)
CreateImage(0, Width, Height, 32)
EndIf
StartDrawing(ImageOutput(0))
DrawText(0, 0, StrD(minValue))
DrawText(0, 20, StrD(maxValue))
DrawText(0, 44, Str(ElapsedMilliseconds()))
StopDrawing()
EndProcedure
#width = 200
#height = 200
DrawIt(#width, #height)
OpenWindow(0, 100, 100, #width, #height, "twizzle")
ImageGadget(0, 0, 0, #width, #height, ImageID(image))
Repeat
DrawIt(#width, #height)
SetGadgetState(0, ImageID(0))
Until WaitWindowEvent(100) = #PB_Event_CloseWindow