ASPPainter::Gradient::Bezier.vbs
Dim pic
Dim coords(100)
Set pic = CreateObject("ASPPAinter.Pictures.1")
pic.SetBKColor 255,0,0,255
pic.Create 300,300
coords(0) = 10
coords(1) = 100
coords(2) = 75
coords(3) = 10
coords(4) = 80
coords(5) = 50
coords(6) = 100
coords(7) = 150
coords(8) = 294
coords(9) = 178
coords(10) = 205
coords(11) = 195
coords(12) = 167
coords(13) = 170
'coords(14) = 133
'coords(15) = 3
pic.SetColor 0,0,255,255
pic.SetColorIndex 1
pic.SetColor 255,0,0,255
pic.SetGradient 0,0, 300,300
pic.SetLineWidth 5
pic.DrawBezier coords, 14
pic.saveToFile "C:\gradientbeziers.png"
pic.DestroyALL
Set pic = Nothing
 |
Picture 1. gradientbeziers.png |
More samples:
Arc,
Bezier,
Circle,
Ellipse,
Gradient,
Pie,
Polygon,
Rectangle,
Unclosed polygon
See also:
SetGradient,
DrawFilledArc, DrawFilledCircle
, DrawLine
, DrawFilledRectangle
, DrawPie
, DrawFilledPie
, DrawFilledPolygon
, DrawPolygon
, DrawRectangle
, DrawUnclosedPolygon ,
DrawBezier,
DrawEllipse, SaveToFile,
DestroyALL,
SetFormat, SetImageIndex,
SetLineWidth,
SetColor, DrawFilledEllipse,
LoadFile,
SetBKColor, Create,
Width,
DrawArc,SetColorIndex,
Height, SaveToFile