Amiga-C (62/157)

From:Sensei
Date:14 Sep 2001 at 00:42:08
Subject:[amiga-c] Re: DataTypes in 15/16 bits

Czesc Gunther!

Dnia 13-Sep-01, Gunther Nikl napisał:

> Probably, you don't want PDTA_FreeSourceBitMap since that will free the
> original bitmap which you are interested in.

AFAIR I have checked this case too. I did following steps when I was tring to
generate mask from original picture and then remap and use new bitmap with
picture.datatype V43.41:

- NewDTObjectA(), don't remap, don't free source bitmap, no screen to remap
specified.
- because GetDTAttrsA() returned PDTA_...BitMap NULL I called DTM_PROCLAYOUT
first time, after this I had not remapped, original picture,
- generate mask from it.
- set remap to true, either free and don't free source bitmap, screen pointer
was specified.
- call DTM_PROCLAYOUT and computer crashed...

>> I've tried to not set PDTA_Remap, TRUE in NewDTObjectA() then call
> AFAIK, PDTA_Remap defaults to true (?)

Yes, it's. But I'm almost always set this tag to TRUE/FALSE in programs which
are using datatypes.

>> 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...
> Exactly this behaviour causes so much confusion. I don't know whether this
> is a "bug".

Someone could check what original C= one picture.datatype does for that case?

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 ---------------------~-->
Get VeriSign's FREE GUIDE: "Securing Your Web Site for Business." Learn about using SSL for serious online security. Click Here!
http://us.click.yahoo.com/LgMkJD/I56CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->

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