Hi,

I'm trying to create a multi-frame tga with the DirectImage Xtra, and
it's not working. The relevant part of the code looks like this:

  if (pAnimType = #tgaGrp) then
    if (frameNum > 1) then
      ok = imageAddFrame(gImageXtra)
    end if
    ok = imageSetCurrentFrame(gImageXtra, frameNum)
    frameNum = frameNum + 1
  end if
  ok = imageLoadFromImage (gImageXtra, frameImage)

Everything looks kosher in the debugger. gImageXtra is a valid instance;
frameImage is a valid image; and imageAddFrame works. However, when I
try imageSetCurrentFrame(gImageXtra, frameNum), and frameNum == 2, it
throws error 12007, and imageGetFrameCount() is reset from 2 to 1.

Any ideas?

Cordially,

Kerry Thompson


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to