MainExamplesDocumentationRegistration  


 Info
What is ShotGraph
Why use ShotGraph
Download
How to register
FAQ


 Making images
Common principles
Palettes
OLE support
VB & VBA notes
Creating animations
Trick: anti-aliased fonts
 

VB and VBA notes

If you use ShotGraph with VB and VBA, use VBALine function instead of Line. Line is reserved word in VBA and VB, so usage of 'Line' function will produce the compilation error.
Example

Sub shot()
Set a = CreateObject("shotgraph.image")
a.CreateImage 201, 201, 4
a.SetColor 0, 255, 255, 255
a.SetColor 1, 0, 0, 0
a.SetDrawColor 1
a.SetBgColor 0
a.FillRect 0, 0, 200, 200
a.VBALine 0, 0, 200, 200
a.GifImage -1, 0, "c:\test.gif"
End Sub

© 1998-2001 Mikhail Tchikalov
Email to contact: mtchikalov@usa.com