[futurebasic] Re: [FB] C-->FB 3/QT Helppppp...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2000 : Group Archive : Group : All Groups

From: "Brian J. Hughes" <BrianHughes@...>
Date: Fri, 26 May 2000 14:18:31 -0700
At 9:56 PM -0400 on 5/25/00, Robert Covington wrote:


>I have been working on a PICTs to Movie thingie for a while, and it works
>(PPC). Sort of. In that it makes a movie, but no image shows up. Some of
>the info is getting passed on, but not enough or something else is busting.
>

This is what I found in ImageCompression.tlbx:

TOOLBOX FN CompressImage 
(PixMapHandle,@Rect,CodecQ,CodecType,ImageDescriptionHandle,Ptr) = 
OSErr `0x7006,0xAAA3

#DEFINE PixMapPtr AS POINTER TO PixMap
#DEFINE PixMapHandle AS POINTER TO PixMapPtr

First it looks like you'll need a handle to a record of PixMap

After looking through the ToolBox file QuickDraw.tlbx I found the 
record for a PixMap but after doing some reading I found out that you 
don't usually need to create a PixMap record.  It's done for you as 
described in Color QuickDraw chapter of Inside Mac

If you are trying to do the PICT to movie without opening a window, 
it might be best to use the OffScreen GWorlds method.

Also take a look at the 'Tlbx Standard.Incl' file in the Header 
folder, the PixMap Record is defined in there already and search for 
'begin record GDevice'.  This is what you want in that record : 'dim 
gdPMap as PixMapHandle'

Another way is to take a look at the record for CGrafPort described 
in the ToolBox procedure OpenCPort, it also creates a PixMapHandle.

For starters get your hands on the QuickTime chapter of Inside Mac. 
It explains what each parameter is in these functions.

For instance, it looks like ImageDescriptionHandle is a handle to a 
block of memory that you provide so the function can return an image 
description.  The type 'ImageDescription' is a record described in 
ImageCompression.tlbx

I'd also recommend doing all this in steps, see if you can get 
CompressImage to work on a single static window with a PICT in it, to 
start with.

Brian Hughes