couleur sur StartDrawing()
Publié : mar. 01/janv./2008 23:31
bonsoir, voila je voie que dans l'aide de purebasic c'est notée que :
exemple:
@++
et il n'existe pas de fonction permettant de changer la couleur de fond d'un StartDrawing() ????La couleur d'arrière plan est le noir (ie: RGB(0,0,0)) et la couleur d'avant plan est le blanc (ie: RGB(255,255,255)).
exemple:
Code : Tout sélectionner
If OpenWindow(0, 100, 200, 300, 200, "2D Drawing Test")
If CreateImage(0, 300, 200)
If StartDrawing(ImageOutput(0))
BackColor(RGB(0,0,0))
FrontColor(RGB(255,255,255))
DrawText(10,50,"changer le fond actuellement noir ?")
StopDrawing()
EndIf
EndIf
CreateGadgetList(WindowID(0))
ImageGadget(0, 0, 0, 0, 0, ImageID(0))
Repeat
EventID = WaitWindowEvent()
Until EventID = #PB_Event_CloseWindow
EndIf
@++