[futurebasic] Re: Another Color Icon Question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1998 : Group Archive : Group : All Groups

From: Derek Smith <dereksmi@...>
Date: Tue, 21 Apr 1998 13:05:29 -1000
>    What Routines are there for drawing icons to G-Worlds...  I really cannot
> just draw them into PICTs and then copy them as needed, because they need to
> be masked when drawn.
>    Somebody recently posted a routine to draw ics8 resources, and it works
> well on my powermac, but bombs bigtime on my old 68030 machine.  It would be
> nice to have it work on both machines.
>    The icons I want to draw are ics8 resources, although I could use either
> cicn or icl8 resources if I needed to.   If there is not a toolbox routine
> that will work, maybe somebody could send me a listing of the data structure
> for these resources, so I can write my own drawing routine???

Zip zero and zilch.  You have to draw a cicn to a GWorld by hand.  This is
exactly what I am trying to do now and I am getting nowhere fast.  All
ya'll will see a post in a day or two from me with some detailed questions
that I expect only Rick or Mars can answer.

For the record, I can draw the cicn where it needs to go, but the cicn
structure is very spread out and difficult to parse.  My offsets are
always wrong and I have to cheat and use Resourcer to find the Pixmap past
_IconData.....I get all the way to the Color table just past the mask and
bitmaps, but parsing through the color table (very important for correct
colors when trying to draw) seems impossible.....anyone know how to do it?
Surely someone here has made an Icon editor at some time long past?  My
eventual goal is to skip the CTab and get the PixMap data and just draw
the damn thing (this part works, its finding the length of the CTab, so I
can skip it).

If any of that made sense, please help!  I'll post the FN when I get back.
Time to break out the IM:5's.  I challenge anyone to draw a cicn into a
GWorld!  First one there wins a free chocalate glazed donut and a large
coffee!

Sorry, I stayed up too late working on this and it may be affecting me.

-Derek
----------------
www2.hawaii.edu/~dereksmi
----------------