[comp.graphics] PICT to Sun-Raster ?

ee86ccb@EE.Surrey.Ac.UK (BAILIFF Cris) (05/27/90)

I have just cobbled together a MacPaint to rasterfile converter -
embarassingly easy once I had a few hex dumps and sample pictures
to work on - This might be of use - I assume that as you
require a rasterfile, you don't mind the fact that you are moving from
a vector/object representation to a bit map - a more or less one
way conversion. (Actually I also have a copy of rasterfile->pict
converter as well - this produces strips of bitmaps as a PICT, not a
PAINT image).

Anyway - if you have SuperPaint, you can transfer a PICT image to the
paint plane and save it out for conversion as a Paint document,
or if you only want to convert screen sized images, you can load your
draw image, fkey-3 to do a screen snapshot, then edit/convert the
paint file. (If you have a Mac-II, you can do this for a bigger  PICT,
as the screen is bigger!)

The program is complete and working in its role as a screen-dump to
rasterfile converter for standard Mac screens (& HyperCard), but it
actually converts the whole PAINT  (8"x11") and then takes a bite out
of the top corner - its a 30 second job to save the whole image - I
might even add it as an command line option (its only a few dozen lines
anyway) 

BTW - Its in C for Sun with Sunview  - the rasterfile -> PICT I
mentioned is a Mac application.

Interested ?

Cris Bailiff   :-
)
-------------------------------------------------------------------
ee86ccb@ee.surrey.ac.uk - University of Surrey, Guildford, England.

ee86ccb@EE.Surrey.Ac.UK (BAILIFF Cris) (05/27/90)

I have just cobbled together a MacPaint to rasterfile converter -
embarassingly easy once I had a few hex dumps and sample pictures
to work on - This might be of use - I assume that as you
require a rasterfile, you don't mind the fact that you are moving from
a vector/object representation to a bit map - a more or less one
way conversion. (Actually I also have a copy of rasterfile->pict
converter as well - this produces strips of bitmaps as a PICT, not a
PAINT image).

Anyway - if you have SuperPaint, you can transfer a PICT image to the
paint plane and save it out for conversion as a Paint document,
or if you only want to convert screen sized images, you can load your
draw image, fkey-3 to do a screen snapshot, then edit/convert the
paint file. (If you have a Mac-II, you can do this for a bigger  PICT,
as the screen is bigger!)

The program is complete and working in its role as a screen-dump to
rasterfile converter for standard Mac screens (& HyperCard), but it
actually converts the whole PAINT  (8"x11") and then takes a bite out
of the top corner - its a 30 second job to save the whole image - I
might even add it as an command line option (its only a few dozen lines
anyway) 

BTW - Its in C for Sun with Sunview  - the rasterfile -> PICT I
mentioned is a Mac application.

Interested ?

Cris Bailiff   :-)
-------------------------------------------------------------------
ee86ccb@ee.surrey.ac.uk - University of Surrey, Guildford, England.