SetNativeImage
SetNativeImage
Hi
I'm just looking to convert from GDPicture Pro 5 to .NET...still using VFP at the moment.
I see there is no SetNativeImage function anymore...what is the alternative for switching between images?
Thanks in advance.
I'm just looking to convert from GDPicture Pro 5 to .NET...still using VFP at the moment.
I see there is no SetNativeImage function anymore...what is the alternative for switching between images?
Thanks in advance.
Re: SetNativeImage
Hello,
Which class are you taking about, GdViewer ?
Kind regards,
Loïc
Which class are you taking about, GdViewer ?
Kind regards,
Loïc
Re: SetNativeImage
Hi Loïc
Yes...gdviewer
I'm using the imaging class to open a file and make a clone of it.
I'm then using gdviewer to display on screen
I allow the user to change brightness, contrast etc.
I thn wanted to give them the option of 'undoing' their changes....I thought the easiest way to do this would be to switch back to the cloned imageID?
Yes...gdviewer
I'm using the imaging class to open a file and make a clone of it.
I'm then using gdviewer to display on screen
I allow the user to change brightness, contrast etc.
I thn wanted to give them the option of 'undoing' their changes....I thought the easiest way to do this would be to switch back to the cloned imageID?
Re: SetNativeImage
Hello again,
OK I see. SetNativeImage.GetNativeImage have been doped.
Now you have to use the DisplayFromGdPictureImage() method. This is the equivalent of the old GdViewer.SetNativeImage().
Let me know if you need other information.
Kind regards,
Loïc
OK I see. SetNativeImage.GetNativeImage have been doped.
Now you have to use the DisplayFromGdPictureImage() method. This is the equivalent of the old GdViewer.SetNativeImage().
Let me know if you need other information.
Kind regards,
Loïc
Re: SetNativeImage
That all makes sense Loic.
Another problem I have is using the ARGB function
It throws up an error message: OLE error code 0x8013509: Unknown COM status code whenever I try to call it.
Don't know if this is just related to VFP / Active-X?
Another problem I have is using the ARGB function
It throws up an error message: OLE error code 0x8013509: Unknown COM status code whenever I try to call it.
Code: Select all
oImaging = CREATEOBJECT("gdpicture.gdpictureimaging")
oImaging.SetLicenseNumber("XXXX")
nImage = oImaging.CreateGdPictureImageFromFile("c:\test.jpg")
oImaging.SetTransparency(nImage, oImaging.ARGB(255,0,255,0))
Who is online
Users browsing this forum: No registered users and 2 guests