Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

PlayGif dosn't work

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

PlayGif dosn't work

Postby ClipFix1 » Tue Aug 24, 2010 1:21 pm

In GdpictureSample Viewer.PlayGif is correctly work

Bild2.jpg


In my own application it is not work, please have a look at the snapshot of Contextmenu

Bild1.jpg
Bild1.jpg (38.33 KiB) Viewed 109 times


What's wrong? I don't no, please help.
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: PlayGif dosn't work

Postby Loïc » Tue Aug 24, 2010 3:18 pm

Hi,

How do you load the GIF ?

Could you attach it here for investigation ?

Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4226
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PlayGif dosn't work

Postby ClipFix1 » Tue Aug 24, 2010 4:47 pm

Code: Select all
  Dim GdViewerHandle As Integer
  Imaging.CreateImageFromFile(Datei)
  Dim nClonedImage As Long = Imaging.CreateClonedImageI(Imaging.GetNativeImage)
  Imaging.CloseNativeImage()
  Imaging.SetNativeImage(nClonedImage)
  GdViewer.SetNativeImage(nClonedImage)
  GdViewer = GdViewer.GetNativeImage()
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: PlayGif dosn't work

Postby Loïc » Tue Aug 24, 2010 4:50 pm

OK, the problem is here:


Code: Select all
  Dim nClonedImage As Long = Imaging.CreateClonedImageI(Imaging.GetNativeImage)

The CreateClonedImageI clones only the selected frame/page in a multibitmap image.

You should use this code:


Code: Select all
Imaging.CreateImageFromFile(Datei)
GdViewer.SetNativeImage(Imaging.GetNativeImage)



Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4226
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PlayGif dosn't work

Postby ClipFix1 » Tue Aug 24, 2010 4:56 pm

Loïc wrote:You should use this code:
Code: Select all
Imaging.CreateImageFromFile(Datei)
GdViewer.SetNativeImage(Imaging.GetNativeImage)


Thx

If I not clone the image, than it will be writeprotected
I can't delete or save the file.

:(
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm

Re: PlayGif dosn't work

Postby Loïc » Tue Aug 24, 2010 5:00 pm

Hi,

2 solutions:

- 1 create a new multiframe gif in memory (see reference guide)
-2:

Code: Select all
 GdViewer.ImageForceTemporaryMode = True
 GdViewer.DisplayFromFile (Datei)
 imaging.SetNativeImage (GdViewer1.GetNativeImage)



Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4226
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: PlayGif dosn't work

Postby ClipFix1 » Tue Aug 24, 2010 5:48 pm

GIF-File is OK now on this time, thx. But JPG-Files allready writeprotect, I see in this moment also with Imaging.CreateClonedImageI

I can not save outside my project, if is open with Viewer-Control :?

I convert an older project, the same code is ok in GdViewer 4, I can delete or save the file, but do not work in GdViewer 5

I think, I lost my mind :wink:
ClipFix1
 
Posts: 15
Joined: Tue Aug 24, 2010 1:12 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Google [Bot] and 1 guest