Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83 (MC830707); site sara70.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!tektronix!hplabs!hao!seismo!mcvax!sara70!rick
From: rick@sara70.UUCP (rick)
Newsgroups: net.micro.mac
Subject: QuickDraw routine CopyBits (problems with)
Message-ID: <259@sara70.UUCP>
Date: Thu, 13-Dec-84 09:43:29 EST
Article-I.D.: sara70.259
Posted: Thu Dec 13 09:43:29 1984
Date-Received: Sun, 16-Dec-84 06:08:44 EST
Organization: SARA, Amsterdam, The Netherlands
Lines: 34


I encountered a problem when using CopyBits:


VAR
  MyBitMap : BitMap;
  MyPattrn : Pattern;  { 8 bits by 8 bits }


BEGIN
  MyBitMap.baseAddr:= @MyPattrn;
  MyBitMap.rowBytes:= 1;    { 8*8 pixels }
  SetRect(MyBitMap.bounds,  0,0,8,8);  { 8*8 pixels }

  CopyBits(MyBitMap,
           MyW.port.portBits,
           srcRect,
           dstRect,
           srcXor,
           NIL);      { No mask region }
END;

 
This example causes "System error 02", Address error.
It appears CopyBits cannot copy from a BitImage with
rowBytes=1. When I changed my BitImage to 16*8 pixels,
rowBytes=2, everything functioned ok. 

Does anyone know where the problem is, with me or with
QuickDraw??

Thanks in advance,
Rick Jansen
  { philabs,decvax,seismo}!mcvax!sara70!rick