[comp.sys.mac.programmer] NEED CODE TO REED MAC GRAPHICS FORMATS.

halam@umnd-cpe-cola.d.umn.edu (haseen alam) (02/06/90)

 
 Hi to all Mac programmers,

 I have done some Mac type programming and have been working on a Unix
 platform for 3+ years now.  I wrote a small program in C that takes an
 8-bit image of a given size and doubles the size.  The results look
 quite allright.  The images that I am playing with were saved in Sun
 Raster format.  I convert them to 8-bit, then run my program to expand,
 the image, then I can print on the laser printer with another program
 that someone else wrote.  Also I have utilities to convert it back to
 Raster and then Raster to TIFF format.  Then I can view the Raster on a
 Sun and the TIFF on a Mac.

 My program works in a very simple manner.  It makes no assumption about
 the input image format.  I read the entire image in a linear array and
 write out the enlarged image on a seccond array. Mapping 1->2 or 2->1
 dimensional array is fairly simple.  I just play with numbers that
 range between 0 to 255 as grayscale values.  So I am hoping that it
 will also work for color images.

 Now here is a list of things that I am looking for.

 1) Code to read in images on the mac, with their x and y size from any
    format as unsigned char values.  And code to write it out in the
    original format.  I will do the in between step of enlarging it.  I
    would like to be able to read in gray-scale as well as color.

 2) How can I create images (prefferably in TIFF format) on the Mac,
    that will be exactly 128x128, 256x256 ... etc.  I have access to an
    HP scanner, PixelPaint, Image, ImageStudio, Studio/8 in our graphics
    lab.  Some of these can read/write TIFF and other file formats.
    Also I would like to convert some of my images to Raster at a later
    time.

 3) I am also interested in some C source code that I will be able to
    compile on our Unix based mainframe to convert 8-bit images to TIFF
    format, without having to convert them to Raster first.

 4) Some sort of a terminal imulator that will be able to display
    TIFF/Raster/8-bit images on the Mac while I am using the mainframes
    processors.

 Any help will be greatly appreciated.  Thanks.

 Haseen.
 e-mail: halam@ub.d.umn.edu
	 halam@umnd-cpe-cola.d.umn.edu