gettingstarted
[Top] [All Lists]

Re: This makes no sense

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: This makes no sense
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Sat, 15 Nov 2003 14:47:16 -0600
References: <200311150605 dot 1al13o7Df3NZFji0 at eagle> <3FB68875 dot 2090807 at ix dot netcom dot com>
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>

<Prev in Thread] Current Thread [Next in Thread>