home *** CD-ROM | disk | FTP | other *** search
- Path: xs4all.nl!not-for-mail
- From: yrozijn@xs4all.nl (Yvon Rozijn)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Datatypes, datatypes, datatypes
- Date: 31 Jan 1996 18:47:50 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4eodgm$t73@news.xs4all.nl>
- References: <4ej7ma$2g6@hermes.cair.du.edu>
- NNTP-Posting-Host: ztm03-08.dial.xs4all.nl
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Edward Chadez (echadez@galileo.carl.org) wrote:
- : struct Screen *screen; // points to an open screen
- : char *file_name; // points to a string array with a valid filename
- :
- : obj = NewDTObject(file_name,
- : DTA_SourceType, DTST_FILE,
- : DTA_GroupID, GID_PICTURE,
- : PDTA_Remap, TRUE,
- : PDTA_Screen, screen,
- : OBP_Precision, PRECISION_EXACT,
- : TAG_DONE);
- :
- : I know that the object has been created, I can examine the BitMapHeader and
- : see that the depth = 4. I convert the object to a bitmap via the call:
-
- No you don't. You just ask for the bitmap pointer.
-
- : if (GetDTAttrs(obj,
- : PDTA_BitMap, &bmap,
- : TAG_DONE);
-
- You have to do the actual remapping first:
-
- struct gpLayout gpl;
- gpl.MethodID=DTM_PROCLAYOUT;
- gpl.gpl_GInfo=NULL;
- gpl.gpl_Initial=TRUE;
- if(DoMethodA(obj,(Msg)&gpl))
- ...
-
- Yvon.
- --
- ___ _
- Q : | #| : \|/ http://www. : [_]_
- -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
-