Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!uw-beaver!cornell!batcomputer!itsgw!imagine!pawl4.pawl.rpi.edu!kyriazis From: kyriazis@pawl4.pawl.rpi.edu (George Kyriazis) Newsgroups: comp.graphics Subject: Re: Sun rasterfiles. Message-ID: <818@imagine.PAWL.RPI.EDU> Date: 1 May 88 19:08:54 GMT References: <1051@luth.luth.se> Sender: news@imagine.PAWL.RPI.EDU Reply-To: kyriazis@pawl4.pawl.rpi.edu (George Kyriazis) Organization: RPI Public Access Workstation Lab - Troy, NY Lines: 25 In article <1051@luth.luth.se> Sven-Ove Westberg writes: > >Did anyone know the format of Suns runlength encoding in the >Run rasterfiles. I also appreciate a RTFM if you enclose the >manual name and page number. The only information I have found >is this short comment in the "rasterfile.h". > >#define RT_BYTE_ENCODED 2 /* Run-length compression of bytes */ > >Please note, I am asking for the format not how to read a rasterfile >with the sunlibraries. > You can certainly write a RT_BYTE_ENCODED rasterfile pretty easy using the appropriate pixrect routine. You have a pixrect and you dump it to a rasterfile with pr_dump(). You can give the RT_BYTE_ENCODED option there. ******************************************************* *George C. Kyriazis * Gravity is a myth *kyriazis@mts.rpi.edu or kyriazis@rpitsmts.bitnet * \ / *kyriazis@life.pawl.rpi.edu kyriazis@docsun.rpi.edu * \ / *Electrical and Computer Systems Engineering Dept. * || *Rensselaer Polytechnic Institute, Troy, NY 12180 * Earth sucks *******************************************************