From: | Daithi O'Cuinn |
Date: | 13 Jul 2000 at 15:14:10 |
Subject: | Yet another datatypes question |
Hello,
My problem is this - I want to convert a picture file into a blittable tile
object. The most obvious way seems to be to use datatypes, but I'm having
some problems. The following code
bm->object = NewDTObject(filename,
DTA_SourceType, DTST_FILE,
TAG_DONE, 0);
if (bm->object == NULL) { free(bm); return(NULL); }
GetDTAttrs(bm->object,
PDTA_BitMap, &bm->bitmap,
DTA_NominalHoriz, &bm->w,
DTA_NominalVert, &bm->h,
TAG_DONE);
Does not give me a bitmap pointer, only NULL. Width and height are set
correctly. Presumably I am using it wrongly, can anyone set me right?
Another thing, the function DrawDTObject appears in the 3.5 autodocs, but
nowhere in the includes, is there a fix for this?
Thanks,
------------------------------------------------------------------------
Law.com is the preeminent online destination for legal professionals.
http://click.egroups.com/1/6874/1/_/451227/_/963495147/
------------------------------------------------------------------------