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
GdiPluss.dll and GdipGetImageWidth
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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 !
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 !