[comp.sys.mac.programmer] Drawing Pictures To Wi

Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) (01/29/91)

rmiller@sbcs.sunysb.edu (Robert Miller) asks:
>I've been working with Pictures and there is something Inside
>Macintosh does not make clear to me:
>
>1.  A picture saves a series of Quickdraw calls.  Are these calls made
>to the coordinate system defined by the rectangle the picture is drawn
>in?  That is, if I call DrawPicture(myPic, &myRec) and myRec.top and
>myRec.left are negative, will the picture be drawn with the top and the
>left side outside of the window?
 
The co-ordinate system that is used  is the one of the current
grafport. The rectangle you give in a DrawPicture call says where, in
that grafport, you want the picture to be drawn. So, assuming your
average grafport the answer to your question is, "yes."


--  

        Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org
      via The Black Cat's Shack's FidoNet<->Usenet Gateway
          blkcat.fidonet.org   and   Fidonet 1:109/401