Stefano$
Stefano

03/05/2007 :: 14:26

Anonyme

Dear Loic first of all thanks for your help.
I need some help for using gdpicture.
Is it possible
a) create a new pdf file
b) add a shape like rettangle , line, and so on, using code like this

vp1.DrawRectangle(nDstx, nDsty, nWidht, nHeight, 1)

e then save as pdf and view it ?

I try but i have no one results.

If I repeat the above instruction with tif file it works.
But i have another trouble how is possible give the dimension of A4 paper using create image in pixel ?
Loïc$2006306
Loïc

03/09/2007 » 07:25

Registered

Hi,

-1-
To draw shape into pdf you have to download the last 3.1.0 edition: http://www.gdpicture.com/ressources/betas/

You can use this method: PdfDrawRectangle() http://www.gdpicture.com/references/gdpicturepro/content/cGdPicture-PdfDrawRectangle.html

-2-

If you want to create an A4 empty image:

Dim DPI As Long
Dim nImageID As Long
Dim oGdPicture As gdpicturepro.cGdPicture

DPI = 200
nImageID = oGdPicture.CreateNewImage(DPI * (21 / 2.54), DPI * (29.7 / 2.54), 32)
oGdPicture.SetHorizontalResolution (DPI)
oGdPicture.SetVerticalResolution (DPI)


Best regards,

Loïc Carrère

Edited by @lcarrere  
back to forum