#Include Once "window9.bi"
Var hwnd=OpenWindow("Nr. 5c",100,100,300,300)
CenterWindow(hwnd)
ImageGadget(11,0,0,300,300)
Var hbitmap=Create_Image(300,300)
ImageStartDraw(hbitmap)
Dim As UInteger f=BGR(230,230,255)
'TextDraw(Startpunkt x, y,Text As string, Hintergrundfarbe,Textfarbe, Alpha)
TextDraw(10,10,"PS_SOLID",f,BGR(255,0,0))
'LineDraw (Startpunkt x, y, Endpunkt x, y,Strichstärke,Farbe,Style)
LineDraw(100,20,260,20,2,BGR(255,0,0))
TextDraw(10,40,"PS_DASH",f,BGR(0,255,0))
'Die Stricharten PS_DASH, PS_DOT, PS_DASHDOT und PS_DASHDOTDOT
'können nur mit der Strichstärke 1 benutzt werden.
LineDraw(100,50,260,50,1,BGR(0,255,0),PS_DASH)
LineDraw(100,51,260,51,1,BGR(0,255,0),PS_DASH)
TextDraw(10,70,"PS_DOT",f,BGR(255,255,0))
LineDraw(100,80,260,80,1,BGR(255,255,0),PS_DOT)
LineDraw(100,81,260,81,1,BGR(255,255,0),PS_DOT)
TextDraw(10,100,"PS_DASHDOT",f,BGR(255,0,255))
LineDraw(110,110,260,110,1,BGR(255,0,255),PS_DASHDOT)
LineDraw(110,111,260,111,1,BGR(255,0,255),PS_DASHDOT)
TextDraw(10,130,"PS_DASHDOTDOT",f,BGR(255,127,127))
LineDraw(140,140,260,140,1,BGR(255,127,127),PS_DASHDOTDOT)
LineDraw(140,141,260,141,1,BGR(255,127,127),PS_DASHDOTDOT)
'FillRectDraw(x, y, Farbe)
FillRectDraw(1,1,f)
StopDraw
SetImageGadget(11,hbitmap)
Do
Loop Until WaitEvent= EventClose |
|