Code: Select all
;why DrawVectorImage() color(here is #red) is (blend,mixed,varied)?
If OpenWindow(0, 0, 0, 900, 100, "DrawAddBorder", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
LoadFont(0, "Tahoma", 0,#PB_Font_Bold)
CreateImage(0, 900, 100,32,$ffffffff)
If StartVectorDrawing(ImageVectorOutput(0))
VectorFont(FontID(0), 60)
;***********#red:
VectorSourceColor(RGBA(255, 0, 0, 255))
Text$ = "The quick 框是左键按下 jumped over the lazy doc"
MovePathCursor(0,0)
DrawVectorText(Text$)
For x= 1 To 3
MovePathCursor(x,0)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(4,0)
DrawVectorText(Text$)
For y= 1 To 3
MovePathCursor(0,y)
DrawVectorImage(ImageID(0), 255)
Next
MovePathCursor(0,1)
DrawVectorImage(ImageID(0), 255)
; VectorSourceColor(RGBA(0, 0, 0, 255))
; MovePathCursor(3,3)
; DrawVectorText(Text$)
StopVectorDrawing()
ImageGadget(2, 0, 0, 900, 100,ImageID(0))
EndIf
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf