ASP Painter
Home
Home
Samples
Samples
Purchase
Purchase
Download
Download
Documentation
Documentation


ASPPainter::Gradient::Grad.vbs

							
'============================================================
'Sample Grad.vbs
'============================================================

Dim pic
Set pic = CreateObject("ASPPainter.Pictures.1")
pic.SetBKColor 255,0,0,255
pic.Create 200,250

pic.SetColor 0,0,255,255
pic.SetColorIndex 1
pic.SetColor 0,0,0,255


pic.DrawLine 0,0,5,10
pic.SetImageIndex 0
pic.SetGradient 10,10, 100,10
pic.DrawFilledRectangle 20,20,160,160
pic.SaveToFile "C:\gradient.png"
pic.Destroy

Set pic = Nothing

Picture 1. gradient.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



home samples purchase documentation download