At 3:11 PM -0500 11/15/03, Peter Gatti wrote:
Joe replied: Because it's not a PICT. It's a JPEG -- or more
generically, an opaque QuickTime image. This will need to be
converted to a PICT if you want to store it in a PICT resource. OK
Joe, that is exactly what I need to know. How do I convert JPEG to
PICT programmatically? I looked everywhere and I can't find out how.
Dim p As Picture
p = NewPicture( myJPEG.width, myJPEG.height, 32 )
p.graphics.DrawPicture myJPEG, 0, 0
Now, p is in a format you can stuff into a PICT resource. But you
never answered how you're adding this item to your resource fork.
Depending on what RB method you're using to do this, it's possible
that RB should do the conversion for you.
Best,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|