Amiga-C (60/223)

From:Shinda
Date:11 Aug 2001 at 18:52:00
Subject:[amiga-c] Re: Creating a pictdt object

Elena wrote:
> but I can't believe there's not some trick overriding this
> limitation ;)
> With dt lib v45 you can obtain a datatype ptr this way:
> ObtainDataTypeA(DTST_RAM,"[dt name]",NULL)
> with v44.47 you cannot.
>
> Well, a TAG named DTA_Datatype is provided and is what I need.
> But how the devil can I obtain a valid pointer to pass it ?
> The only (dirty) way I can see is keeping a group of sample pictures
> stored in differnt formats (or stored in ram) from which to get the
> dt pointer by loading them...

I noticed a program on aminet that uses docdatatypes to save text
files and I got the following information from the author of the
datatypes, what you do is have files(sample pictures in your case)
and you open them via datatypes.library and just change their
attributes(such as Bitmap and colour tables etc), then do the save
method with tha raw tag. But most new picture datatypes do not
support saving(apart from the old ones), I have asked the author of
the warp datatypes to add this feature but he said there is no point
yet since for example setting a compression setting is not possible.

Shinda

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