code2:
Code: Select all
;DrawAddBorder http://ataorj.ys168.com
;http://www.purebasic.fr/english/viewtopic.php?f=12&t=69308
If OpenWindow(0, 0, 0, 900, 200, "DrawAddBorder", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
;LoadFont(0, "Webdings", 55,#PB_Font_Bold)
LoadFont(0, "Tahoma", 55,#PB_Font_Bold)
CreateImage(0, 900, 200,32,$ffffffff)
If StartVectorDrawing(ImageVectorOutput(0))
VectorFont(FontID(0), 55)
VectorSourceColor(RGBA(255, 0, 0, 255))
Text$ = "The quick 框是左键按下 jumped over the lazy doc"
MovePathCursor(55,55)
DrawVectorText(Text$)
For x= 1 To 2
MovePathCursor(x,0)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(59,55)
DrawVectorText(Text$)
For y= 1 To 2
MovePathCursor(0,y)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(0,1)
DrawVectorImage(ImageID(0), 255)
VectorSourceColor(RGBA(0, 0, 0, 255))
MovePathCursor(57,57)
DrawVectorText(Text$)
StopVectorDrawing()
ImageGadget(2, 0, 0, 900, 200,ImageID(0))
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
and
code3:
Code: Select all
;DrawAddBorder http://ataorj.ys168.com
;http://www.purebasic.fr/english/viewtopic.php?f=12&t=69308
If OpenWindow(0, 0, 0, 900, 200, "DrawAddBorder", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
;LoadFont(0, "Webdings", 55,#PB_Font_Bold)
LoadFont(0, "Tahoma", 55,#PB_Font_Bold)
CreateImage(0, 900, 200,32,$ffffffff)
If StartVectorDrawing(ImageVectorOutput(0))
VectorFont(FontID(0), 55)
VectorSourceColor(RGBA(0, 0, 0, 255))
Text$ = "The quick 框是左键按下 jumped over the lazy doc"
MovePathCursor(55,55)
DrawVectorText(Text$)
For x= 1 To 2
MovePathCursor(x,0)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(59,55)
DrawVectorText(Text$)
For y= 1 To 2
MovePathCursor(0,y)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(0,1)
DrawVectorImage(ImageID(0), 255)
VectorSourceColor(RGBA(255, 0, 0, 255))
MovePathCursor(57,57)
DrawVectorText(Text$)
StopVectorDrawing()
ImageGadget(2, 0, 0, 900, 200,ImageID(0))
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf