home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!hela.iti.org!usc!rpi!raffuj
- From: raffuj@rebecca.its.rpi.edu (Jose Raffucci)
- Subject: 8 bit graphics help needed...
- Message-ID: <x!s3=ff@rpi.edu>
- Nntp-Posting-Host: rebecca.its.rpi.edu
- Organization: Rensselaer Polytechnic Institute, Troy, NY
- References: <1993Jan28.164650.3857@dxcern.cern.ch> <1993Jan28.194422.11770@crd.ge.com>
- Date: Thu, 28 Jan 1993 23:21:59 GMT
- Lines: 32
-
- I'm writing some routines to read in some pictures, and a couple of
- things occurred to me.
-
- The images are 8bit grayscale, and I'm wondering what would be the
- fastest way to get them copied to an 8bit gworld. I was previously
- using SetCPixel() since I didn't know what ressolution I was going
- to have to deal with, but since now the images will all be 8bit, I'd
- like to make it faster. As of right now, I have all of the data stored
- in arrays by rows.
-
- What is the 'correct' way to convert this to a pixmap, forgetting
- everything about the colortable and palette. I started playing
- with BlockMove() to copy each row directly to the pixMap->baseAddr
- locations, but I was bombing bigtime. Maybe it was because you're
- not supposed to do this, or whatever. Yes, I locked my handles.
-
- Anyways, I can't seem to find any reference on how to do these types
- of things anywhere. IM V & VI don't really explain the differences
- between the different resolution modes. Well, I'm sure someone will
- prove me wrong, but I just started looking at this stuff today.
-
- So, will the blockmove to the baseAddr work, or is there a better
- way?
-
- thanks,
-
- -hOz
-
-
- --
- Jose Raffucci raffuj@rpi.edu (518) 276-4810 "I don't like macs, I just //
- Lighting Research Center, RPI, Troy, NY 12810 have to program them" \X/
-