Re: A86: Re: box drawing


[Prev][Next][Index][Thread]

Re: A86: Re: box drawing




if you line up the left and right edges of the box on an 8-pixel boundry,
you don't have to use masks, which makes the code a lot easier and
faster.

there has to be a built in routine somewhere to draw a box because it's
used for the ZOOM:BOX feature.

-josh

On Sun, 24 Oct 1999 14:09:04 -0600 "David Phillips" <david@acz.org>
writes:
>
>You have to do it yourself.  You could use _ILine to draw the border, 
>or you
>could do it yourself (much faster).  To do the inside, it's similiar 
>to a
>putsprite routine.  Create masks for the right and left edge.  
>Example...
>
> left_x = 3  (so you want to start filling with white on the fifth 
>pixel)
> left_mask = %11110000
>
>right_x = 49 (so you want the first pixel)
>right_mask = %01111111
>
>You then do an AND operation with the mask for the two edge bytes.  
>For the
>middle, just set the bytes to zero.
>
>> second, how would i draw a box with the inside filled in with 
>white?
>would i have to draw it manually
>> with the iline routine (or others if there are some better ones) or 
>is
>there a box routine somewhere?
>> also, then how would i clear the space inside of the box?
>
>
>

___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.


Follow-Ups: