Page 1 of 1

How to draw shapes

Posted: Wed Jun 27, 2007 10:54 am
by ngocvan_cntt48
I want to draw on GdPicture (x,y). Ex: draw a rectangle or circle (x,y)

Posted: Wed Jun 27, 2007 10:57 am
by Loïc
Hi,

vb6 sample:


Code: Select all

Dim oGdPicture As New GdpicturePro.cGdPicture
  
Call oGdPicture.CreateImage(800, 600, 32)
Call oGdPicture.DrawCircle(400, 300, 200, oGdPicture.ARGB(200, 200, 100, 150), 2) 
Call oGdPicture.DrawRectangle(10, 10, 100, 100, 4)
  

Loïc