home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / programm / 17817 < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!news.cs.indiana.edu!babbage.ece.uc.edu!uceng.uc.edu!rbatra
  3. From: rbatra@uceng.uc.edu (Rajesh Batra)
  4. Subject: Help reading particular Pixels
  5. Message-ID: <BzvIv4.G2o@uceng.uc.edu>
  6. Organization: University of Cincinnati
  7. Distribution: na
  8. Date: Sat, 26 Dec 1992 15:54:39 GMT
  9. Lines: 26
  10.  
  11.  
  12. Hi,
  13.  
  14.     I'm attempting to copy only certain pixels from my bitmap. Once
  15.     copied, I stamp them down one pixel to the left.  I need this to
  16.     be done fast, so readpixel() / writepixel() wasn't doing the trick. 
  17.  
  18.     I am trying to use 
  19.  
  20.     BltMaskBitMapRastPort(...,minterm,bltMask), 
  21.  
  22.     where minterm is 0xc0 (exact copy) and my bltMask contains only 1's
  23.     where I want to read the information.  Basically, I went into DPaint,
  24.     created a 2 bitplane brush containing my points placed the data 
  25.     into an array by using one of the many iff to C source programs.
  26.  
  27.     Is the logistics correct? I'm not getting what I anticipated.
  28.     Is there a faster way to copy only certain pixels (272 of them)?
  29.  
  30.  
  31.                     Thank you for your time,
  32.  
  33.                     Rajesh Batra
  34.                     Dept. of Aerospace Engineering
  35.                     University of Cincinnati
  36.                     rbatra@uceng.uc.edu
  37.