Amiga-C (39/157)

From:Sensei
Date:10 Sep 2001 at 23:35:35
Subject:[amiga-c] DataTypes in 15/16 bits

Hi!

One of the users of my game informed me that graphics is corrupted on his
setup. I asked him to send me the grab and he did it. After some
investigation I have found that datatypes when are loading picture in 16 bit
(and probably 15 bits too, but I have not checked this case) are creating
matrix of very close pixels no matter if the original picture has solid color
or not! So instead of solid background f.e. 160,160,128 (my program generates
mask for BltMaskBitMapRastPort() using this fixed RGB color... and mask is
corrupted because it's not accepting all closest colors) I have pixels with
f.e. 152,160,128, 152,160,120 etc. And here is my question: is it also
happens in datatypes which you're using right now? If you don't know please
open Workbench screen in 15/16 bit then show picture using MultiView in
window and run image processing or any good graphics program and grab this
window. After zooming you should see not solid colors where in original
picture they're solid. If you'll flood fill (remember to set Flood in ImageFX
or equivalent option to 1, because f.e. 9 fills the whole matrix of "solid"
color) it'll flood fill only single pixel! And if you do the same in 24/32
bit screen, it'll flood the whole solid color background!

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



Czy firma powinna poslugiwac sie darmowym kontem pocztowym?
Oferujemy Konto Biznesowe bez doklejek i przesylek reklamowych
Rejestracja wlasnego adresu internetowego (domeny) i 100 MB pojemnosci
Koszt uslugi to tylko 100 PLN/rok Szczegoly http://www.konto.getin.pl

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide, "Securing Your Web
site for Business" and learn all about serious security. Get it Now!
http://us.click.yahoo.com/r0k.gC/oT7CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/