From: | Gunther Nikl |
Date: | 13 Sep 2001 at 14:56:16 |
Subject: | [amiga-c] Re: DataTypes in 15/16 bits |
On Wed, Sep 12, 2001 at 09:22:42PM +0100, Sensei wrote:
> 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!)
AFAIK, thats correct.
> and after DTM_PROCLAYOUT I have all bitmaps but remapped...
Thats strange... Thats teh code that I use when loading images with the
datatypes library:
NewDTObject(name,
PDTA_Screen, PUB_SCREEN,
PDTA_Remap, (!gb->Remap ? FALSE : TRUE),
OBP_Precision, (gb->Remap < 2 ? PRECISION_IMAGE : PRECISION_EXACT,
PDTA_FreeSourceBitMap, TRUE,
PDTA_DestMode, PMODE_V43,
PDTA_UseFriendBitMap, TRUE,
TAG_DONE);
Probably, you don't want PDTA_FreeSourceBitMap since that will free the
original bitmap which you are interested in. However, if PDTA_Remap is
false PDTA_DestBitMap should be the same as PDTA_BitMap (ignoring the
format) but I am only an user of the datatypes.library ;-)
> I've tried to not set PDTA_Remap, TRUE in NewDTObjectA() then call
AFAIK, PDTA_Remap defaults to true (?)
> 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".
Gunther
------------------------ 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/