From: | |
Date: | 15 Feb 2001 at 00:57:57 |
Subject: | Re: Again clipping graphics output |
Czesc Serge!
Dnia 14-Feb-01, Serge Tumanyan napisa�:
> I've tried to clip graphics output to the rastport with
> layers.library help. This works perfectly on AGA, but seems
> to cause problems under CGX and Picasso96 on graphics boards.
Could you precise what is going on under CGFX and P96? I used this method (or
hmmm, I was forced to use it by AmigaOS...) in my BOOPSI scale.gadget and it
works fine everywhere... Maybe working example source code will help us a
bit... ?
> Is there any ability to do the same without layers.library?
Yes. You can calculate coordinates so they will fit into bitmap... It could be
a problem if you would like to use, for instance, Text() function...
Instead calculating coordinates you could allocate bitmap with enought size to
hold whole image (you must calculate exactly how big will be this image, if
you make mistake of 1 pixel computer will crash...), render to it and blit
from this bitmap to destination rastport. This is a more memory consuming
method...
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982271925/
---------------------------------------------------------------------_->