Page 1 of 1

Posted: Wed Mar 26, 2003 1:48 pm
by BackupUser
Restored from previous forum. Originally posted by KPiTN.

I want to use GdipGetImageWidth function from GdiPluss.dll

I use Windev

Width is an integer
ImageLoad is a variant
AppelDLL32("gdiplus.dll","GdipLoadImageFromFile","c:\MSI.jpg",ImageLoad)
AppelDLL32("gdiplus.dll","GdipGetImageWidth",ImageLoad,Width)
Trace(ImageLoad)

I suppose i must use GdipLoadImageFromFile to point my picture
But the problem is that ImageLoad must be a "GpImage **image"
see that here http://msdn.microsoft.com/library/defau ... gdicpp/gdi /gdi reference/flatimage.asp

How can i load the picture to use GdipGetImageWidth function by api?
It's not C or C++ , it's Windev


Scuse my english, i'm french

Posted: Thu Mar 27, 2003 10:44 am
by BackupUser
Restored from previous forum. Originally posted by KPiTN.

If you don't understand me, tell me :)

Posted: Thu Mar 27, 2003 11:06 am
by BackupUser
Restored from previous forum. Originally posted by gnozal.

Sorry, don't know.
It's not a Windev forum, it's a Purebasic one

Posted: Thu Mar 27, 2003 12:45 pm
by BackupUser
Restored from previous forum. Originally posted by KPiTN.

I know, but my question is how i can use GdipGetImageWidth

Syntax :
GpStatus WINGDIPAPI GdipGetImageWidth(GpImage *image, UINT *width)

So i must know what can i put in GpImage *image ?

I believe that i can get GpImage with GdipLoadImageFromFile

Syntax:
GpStatus WINGDIPAPI GdipLoadImageFromFile(GDIPCONST WCHAR* filename, GpImage **image)

But i don't know , how i can find GpImage


In windev the syntax is
AppelDLL32("gdiplus.dll","GdipLoadImageFromFile","c:\MSI.jpg",ImageLoad)
AppelDLL32("gdiplus.dll","GdipGetImageWidth",ImageLoad,Width)
But ImageLoad is not a GPimage

I don't know what can i do !