Re: [Freeciv-Dev] Changes request
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Jul 13, 1999 at 07:02:05PM -0500, hop@xxxxxxxxxxxxxxxxx was heard to
say:
> Just remember, that Xpm has built-in capability for making transparent
> pixels so your images can be non-rectangular in shape. If you don't have
> built-in support for transparent images, it plain sucks doing it the hard
> way. And by the hard way, you have to build a bitmask that tells which
> pixels should be drawn, then bitwise AND the bitmask with the current
> display, then XOR'ing the resulting image with the icon you want to draw.
> Using a format with built-in support for transparent pixels is very
> nice because then you don't have to use customized drawing routines,
> just xpm library calls.
>
> I don't think PNG can have transparent pixels. I hope I'm mistaken.
> If PNG doesn't support transparent pixels, then you'll have to use
> another format that does use transparent pixels, or roll your own
> parser for the XPM format (whee!).
>
> Justin Hopkins
Actually, I believe that PNG files can have a full alpha channel, which would
make for really interesting Freeciv graphics :)
Daniel
--
THERE IS NO HOPE BUT US. THERE IS NO JUSTICE BUT US. ALL THAT IS, IS OURS.
BUT WE MUST CARE. FOR IF WE DO NOT CARE, THEN WE DO NOT EXIST...
-- Terry Pratchett, _Reaper Man_
|
|