The rowBytes field contains the number of bytes per row in the bit image. The baseAddr field points to the first byte (character) in the bit image. A bit- map is a structure which points to a bit image and associates a coordinate system with it. For example, if we wanted to define the Macintosh screens bit image, the definition would be:īit images are manipulated by Quick- Draw through the use of bitmaps. In C, the easiest way to define a bit image is with an array of characters. Due to the 68000 microprocessor in the Macintosh, every bit image must have an even number of bytes per row, and the rows must begin and end on word boundaries. We can consider the screen bit image as being 342 rows with 64 bytes per row. The bit image in memory takes up 175,104 bits (or 21,888 bytes with 8 bits per byte). The Mac screen is 512 pixels wide by 342 pixels tall. If the bit is 0, then the pixel will be white. If the value of one of these bits is 1, then the pixel corresponding to it will be black. That is, what appears on the screen is actually a collection of consecutive bits in memory that the hardware in the Mac interprets as screen dots (or pixels).
#MACINTOSH 1985 MAC DRAW MAC PAINT HOW TO#
This article will explain that format and show you how to transfer your own images into MacPaint files. The MacPaint file format is rapidly becoming the standard for transferring graphic information from one application to another. MacPaint files Volume Number: 1 Issue Number: 7 Column Tag: C Workshop Educational Institution and Student Discounts.