How to draw shapes

Discussions about image processing and document imaging.
Post Reply
ngocvan_cntt48
Posts: 1
Joined: Wed Jun 27, 2007 10:05 am

How to draw shapes

Post by ngocvan_cntt48 » Wed Jun 27, 2007 10:54 am

I want to draw on GdPicture (x,y). Ex: draw a rectangle or circle (x,y)

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Wed Jun 27, 2007 10:57 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests