Help! ILBM Loader!
4 messages in this thread
When last seen, our intrepid programming crew had just learned of the
myriad complexities of prototyping functions. This hurdle conquered, they
leapt on into . . . the ILBM zone.
Now that I can munge a window with DumpPixel, I have the problem of getting
what I want *into* the window. For my test programs, I've simply been
running MYDATA on the image and compiling in the Image data. Needless to
say, this won't work on a general purpose basis.
I tried the Dissedent's ILBM library (using LoadIFFToWindow()), and it
loads the image into the window, then crashes the machine. Besides, I'd
feel more comfortable with source code.
Query: Does anyone have any C code that loads an IFF picture file (no HAM
and no 24-bit; my application only uses 16 color pictures) to a pre-setup
window?
Thanks!
(Failing source, good pseudocode would be a boon.)
Loyd
A quick (using 'find') perusal of my HD contents reveals the following
programs that have code dealign with ILBM that might be of interest to you.
They can all be found in the LIBs here.
Surf – a program to generate bezier surfaces
contains readilbm.c, writeilbm.c, and readilbm.h
Snap – Contains saveilbm.c
Looki – myilbm.h
pbmplus – (not sure if this one is here or not)
– contains ilbmtoppm.c, ppmtoilbm.c
Additonally, several Fish disks contain readers/writers…
Fish 185 – ShowILBM
Fish 96 – AnimPlayer
Hope this helps.
-larry
Thanks, I'll check them out. I'm at my wits' end at this point. I've been
trying to hack the code to Plop to fit my needs — but it doesn't seem to
be working.
If anyone has a working subroutine in the form of loadiff (Window,
filename), I'll gladly pay for a copy of it.
Loyd
I like Christian Weber's IFF.library… It should be available around here,
and it contains enough examples to get you started
. very stable!