[futurebasic] Re: [FB] Re : [FB] cicn to PICT

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1999 : Group Archive : Group : All Groups

From: Mel Patrick <mel@...>
Date: Mon, 25 Jan 1999 10:57:50 -0700
>Moreover, I saw references to OPENPICTURE, which is usually
>used for recording the drawing of vector graphics - does this
>work for bitmap graphics? - and what overhead does it create?

What I did was draw into a GWORLD using QuickDraw commands and then, I used
OPEN PICTURE to copybits from the gworld into the SAME gworld. The point
was to take all those vector lines and "flatten" them.

Hence, when I re-drew the image on the screen, it was a simple bit map, no
longer vectored. I was using the whole this to create thumbnail samples of
vectored PICTs. Mars gave me the example copybits line and it works like a
champ.

    theWorld&=FN buildGWORLD(@rect):'                     try to build a GWORLD
     ' buncha drawing to points goes in here
      myPICT&=FN OPENPICTURE(rect):'          open the image to draw into now
      CALL CLIPRECT(rect):'                  do this for some reason or other
      myRectPtr&=@rect:'                                     where my rect is
      CALL COPYBITS(#theWorld&+2,#theWorld&+2,#@rect,#@rect,_srcCopy,0)
      CALL CLOSEPICTURE:'                                     close the
picture now


Mel Patrick
mel@...