🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #41530

Re: PICT file format

#41530
From: Ken "Turk" Turkowski
Date: Mon, 01 May 1989 06:55
29 lines
1832 bytes
In article <404@coriander.UUCP> colm@ukfca1 (Colm Gavin) writes:
>We have some colour
>images (in our own in-house 8-bit format) which we would like to transfer to a
>PICT type file on the Mac.
>
>The problem we face is that Mac files seem to have a 128 byte header containing
>things such as the filename. In order to construct a file to be transfered to
>the Mac we need to know what to put in there. Leaving them blank doesn't seem
>to be very successful! We also need to know how to store the PICT resource,
>what format it is and how it is stored in the rest of the file?

Actually, PICT files contain a 512 byte header, which can contain just
about anything, such as image description, copyright, etc.  The rest of
the file is a Picture (aka PICT) and is described in Inside Macintosh
volume 5.

The easiest way to generate the rest of the file is to put all of the
data into a PixMap, then call OpenPicture(), CopyBits(), etc.

Alternatively, you can try to do the same yourself.  Normally, images
are compressed by Quickdraw, but there seems to be both a BitsRect
(rectangle clipped copybits) opcode as well as a PackBitsRect
(rectangle clipped copybits, packed with Copybits) opcode (pp. V-96 -
V-105).  Try the BitsRect opcode and see what happens.
-- 
Ken Turkowski @ Apple Computer, Inc., Cupertino, CA
Internet: turk@apple.com
Applelink: TURKOWSKI1
UUCP: sun!apple!turk
Technical Details
Message-ID: <1609@internal.Apple.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!turk
References: <404@coriander.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!apple!turk
From: turk@Apple.COM (Ken "Turk" Turkowski)
Newsgroups: comp.sys.mac,comp.graphics
Subject: Re: PICT file format
Keywords: PICT
Message-ID: <1609@internal.Apple.COM>
Date: 1 May 89 06:55:17 GMT
References: <404@coriander.UUCP>
Organization: Advanced Technology Graphics, Apple Computer, Cupertino, CA, USA
Lines: 29