Amiga-C (50/157)

From:Sensei
Date:12 Sep 2001 at 21:22:42
Subject:[amiga-c] Re: DataTypes in 15/16 bits

Czesc Allan!

Dnia 12-Sep-01, Allan Odgaard napisał:

> Does *all* 16 colours match this 15/16 bit colour space? Because if just
> one of them don't, then this rounding error will affect the rest of the
> picture (and thus mess up the background).

I've checked this before mailing to this list first time... I rendered picture
in 16 bit in image processing program and save it to ILBM 24, then I
generated mask (0xF8FCF8) in second buffer and composite original picture and
this mask in AND mode and save it to ILBM 24 and then to PNG 24 bit... Nothing
changed.

> Someone quoted the API, perhaps this guy could also quote the actual tag
> value?

This will not work with older datatypes I guess...

> But why not create the mask before you ask datatypes to remap the picture?

I've checked this long time ago (on AGA with V43.41 picture.datatype) and
until
you'll not call DTM_PROCLAYOUT you have none of bitmaps (PDTA_BitMap,
PDTA_DestBitMap or PDTA_ClassBitMap are returning NULL!) and after
DTM_PROCLAYOUT I have all bitmaps but remapped... I've tried to not set
PDTA_Remap, TRUE in NewDTObjectA() then call DTM_PROCLAYOUT and generate mask
from original, not remapped picture and then set PDTA_Remap, TRUE,
PDTA_Screen, screen and then call
DTM_PROCLAYOUT second time, but after this call computer crashes
immediately...

I have checked this Ralph's picture.datatype and PDTA_BitMap, PDTA_DestBitMap
and PDTA_ClassBitMap attributes can be read immediately after NewDTObjectA(),
not only after DTM_PROCLAYOUT...

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." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

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