hey frnds tell me one thing,Graphics is used in Projects or not.
Because I think so its a waste material given in all the books & it is used not in any projects.

Any Suggestions.

Hi sonia
Do u mean VB Graphics, or in General. How ever Graphics is very important to all projects. I give more User Friendly and Look and Feel. The best example is Winamp and its skins. These graphics acheived by lines and circle.

I mean like v have programs in Graphics
Drawing Ellipses?
Drawing Arcs?
Drawing Curves & so on??

The prograns given above are if no use na??Am i Rite???

I mean like v have programs in Graphics
Drawing Ellipses?
Drawing Arcs?
Drawing Curves & so on??

The prograns given above are if no use na??Am i Rite???

Hey Friend,
Ellipses, Arcs, Curves, lines ... are the primitive for graphics. These simple primitives contribute to a good graphics. For example Try this simple code with only line primitive

Start a New Standard Exe Project and
Draw a Picture box (Picture1) and a Command Button (Command1)

copy this code and run it.

Private Sub Command1_Click()
   Dim i As Integer
   Dim sV As Single
   Dim sR As Single
   
   Picture1.ScaleMode = vbTwips
   Picture1.AutoRedraw = True
   ' Maximum Color Value for a single color is 255
   sR = 255 / (Picture1.ScaleHeight - Picture1.ScaleTop)
   For i = 0 To Picture1.ScaleHeight
      Picture1.Line (0, i)-(Picture1.ScaleWidth, i), RGB(sV, 0, 0)
      sV = sV + sR
   Next i
End Sub

This may helpful I think so If i am right. Similarly We do lot of things with these primitives.

This article has been dead for over six months. Start a new discussion instead.