C (138/257)

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!



Can your ImageFX paint like bitmap painters?
Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com

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



Internet szansa dla malego i sredniego biznesu.
Przyjdz i przekonaj sie o tym na Seminarium technicznym "NetWorld"
Badz czujny i wlacz sie w nurt gospodarki internetowej.
Kliknij: http://www.networld.com.pl/seminaria

------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982271925/
---------------------------------------------------------------------_->