Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Re: Saving a 32 bit PICT to a file? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Resource PICTs are unreliable?
Next thread: Can't get QuickTime movies to show up!


Re: Saving a 32 bit PICT to a file?   -   AnimEigo
  Re: Saving a 32 bit PICT to a file?   -   Lazarus Plath

Re: Saving a 32 bit PICT to a file?
Date: 10.08.01 04:10 (Thu, 9 Aug 2001 23:10:27 -0400)
From: AnimEigo
>
> > So (1) is what I want to do possible in RB (saving 32 bit images with
> > a mask) and (2) what am I doing wrong.
>
>Have you verified that it was not a out-of-memory problem?

It doesn't seem to be, since before and after the write to the file,
I can paint either the image or the mask to a canvas and see that
it's OK.

Re: Saving a 32 bit PICT to a file?
Date: 12.08.01 23:06 (Sun, 12 Aug 2001 15:06:44 -0700)
From: Lazarus Plath
On Thursday, August 9, 2001, at 08:10 PM, Robert J. Woodhead (AnimEigo)
wrote:

>> > So (1) is what I want to do possible in RB (saving 32 bit images
>> with
>> > a mask) and (2) what am I doing wrong.
>>
>> Have you verified that it was not a out-of-memory problem?
>
> It doesn't seem to be, since before and after the write to the file, I
> can paint either the image or the mask to a canvas and see that it's OK.

When you save a picture a new image is created. So even though your
image has enough memory, when you save it you need more memory to hold a
second copy for the save. Have you tried a small image or doubling the
apps memory or using OSX?

I discovered this when using the QTgraphicsexporter. I was getting empty
picts or no file at all when trying to save a large image as 32bit. But
if I set the compression setting to bitmap (B&W) then the file was saved
properly because there was enough memory to create the B&W image.

About the mask, I havnt tried but I think RB does not save the mask as
an alpha channel. I forget the reason why, something to do with the use
of the 4th byte has never been officially defined and may change in the
future. If the mask isnt saved as an alpha channel you could look up the
file specs and write you're own file; maybe its already been done.

HTH -Laz

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>