Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.mac » Macpaint files from programs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Macpaint files from programs [message #224292] Fri, 01 November 1985 00:01 Go to next message
ir320 is currently offline  ir320
Messages: 41
Registered: May 2013
Karma: 0
Member
Article-I.D.: sdcc6.2271
Posted: Fri Nov  1 00:01:48 1985
Date-Received: Sun, 3-Nov-85 12:58:29 EST
Organization: U.C. San Diego, Academic Computer Center
Lines: 21

Does anyone out there know how to write a screen bitmap into a MacPaint
type document from program control.  I wan't my program to be able to 
save images it creates in MacPaint type files.

Any ideas?

John Antypas
UC San Diego

uucp: ...!{ucbvax,ihnp4,decvax}\
      ...!{bang,bmcg,noscvax  } >!sdcsvax!sdcc6!ir320
      ...!{sdchem,ihuxm,sdcarl}/

      ...!sdcsvax!gwsd!man!wolf!u0236879

arpa: ir320%sdcc6@sdcsvax.ARPA gwsd!man!wolf!u0236879@sdcsvax.ARPA
csnet: (Here that apple!) ir320%sdcc6@sdcsvax.ARPA@CSNET-RELAY.CSNET

Incidentally Apple, you can get to me either by saying:
     ...!dual!ucbvax!sdcsvax!sdcc6!ir320 -- or --
     "ir320%sdcc6"%sdcsvax.ARPA@CSNET-RELAY.CSNET
Re: Macpaint files from programs [message #224310 is a reply to message #224292] Mon, 04 November 1985 08:10 Go to previous message
vishniac is currently offline  vishniac
Messages: 57
Registered: May 2013
Karma: 0
Member
Article-I.D.: wanginst.1270
Posted: Mon Nov  4 08:10:27 1985
Date-Received: Tue, 5-Nov-85 21:26:16 EST
References: <2271@sdcc6.UUCP>
Organization: Wang Institute, Tyngsboro, Ma.  01879
Lines: 18

 >  Does anyone out there know how to write a screen bitmap into a MacPaint
 >  type document from program control.  I wan't my program to be able to 
 >  save images it creates in MacPaint type files.
 >  
A MacPaint painting file is type "PNTG", creator "MPNT".  It consists
of a 512 byte header, which can be all zeroes, followed by the page
image.  The page image consists of 720 rows (ten inches worth).
A row consists of 72 bytes (576 pixels = 8 inches), compressed using
PackBits.  If you're too lazy to really use packbits, just precede
each row of data with a 71 (decimal) to indicate that 72 bytes of
uncompressed data follow.  The file will be compressed the first time
that it's re-saved from MacPaint.


-- 
Ephraim Vishniac
  [apollo, bbncca, cadmus, decvax, harvard, linus, masscomp]!wanginst!vishniac
  vishniac%Wang-Inst@Csnet-Relay
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ResEdit (The Mac Resource editor)
Next Topic: Delphi Digest Volume 1 Issue 2
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Apr 20 12:13:10 EDT 2024

Total time taken to generate the page: 0.03916 seconds