ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  The Return of the Blue Q
Subject:   Having trouble with frame grabbing (code from another article)
Date:   2004-07-22 10:27:30
From:   invalidname
Response to: Having trouble with frame grabbing (code from another article)

This is coming in a soon-to-be-announced QTJ book from O'Reilly (pause for effect of thundering applause), which I'm just now able to talk about. I'm trying to get the example code posted on an open-source site (probably java.net) ASAP.

Anyways, I did the QuickDraw chapter a few weeks ago. What you've done is shockingly close to something in the book.

Two catches:

  • you don't need to write the Picts to disk. Copy a Pict's bytes to a buffer that's 512 bytes larger, so you have a 512-byte header pad. Point the GraphicsImporter to that memory with setDataReference().
  • there are two GraphicsImporterDrawers. You seem to be picking up the deprecated one from quicktime.app.image (all of which is gone). Check your imports to make sure you're getting the new one from quicktime.app.view.

--Chris (invalidname)



1 to 1 of 1
  1. Having trouble with frame grabbing (code from another article)
    2004-09-13 19:16:07  ktown [View]

    • Chris Adamson photo Having trouble with frame grabbing (code from another article)
      2004-09-25 11:03:30  Chris Adamson | O'Reilly AuthorO'Reilly Blogger [View]

      • Having trouble with frame grabbing (code from another article)
        2005-01-23 13:27:32  johnmangum [View]

      • Having trouble with frame grabbing (code from another article)
        2005-01-23 13:26:16  johnmangum [View]

1 to 1 of 1