Hi Jaime
 
I wrote a new class called NBitmap.mcc which is currently used in my
Epistula application to load graphics via datatypes and display them in
NList's or as a normal object. I suppose it could be used for anything else
you need too.
 
It supports the alpha channel in 32bit images, displays 24bit images and
will remap 8bit images and respect the transparent colour.
 
The only catch is that it is written for OS4 only at the minute but the
source code is available in SVN at
http://nlist-classes.svn.sourceforge.net/viewvc/nlist-classes/trunk/nbitmap_
mcc/ so you could very well adapt it to compile for MOS and/or 68k.
 
Please remember to submit any changes back to the SVN, which I think you'll
need write access to from Jens Langner.
 
Daniel


  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jaime
Cagigal
Sent: 11 July 2007 23:17
To: [email protected]
Subject: [MUI] MUI_Image and datatypes with transparent background



Hi!

I'm playing with the NList classes and I want to embed images between text.
I have done some tests with the escape code e.g: \033I[5:myimage.gif]. Of
course, I have a problem because the transparent colour is drawn and it
shouldn't. I have some questions about MUI4... 

-Does it support embedded transparent images loaded directly from datatypes?
-Does it support 24bit images?

If you load a boopsi "image" could it be animated in any way? Maybe
refreshing just the image gadgets without redrawing all the rest of
gadgets... I don't know. 

And another thing... if MUI4 allows images loaded with datatypes to have
transparent colours (and maybe even alpha channel) could this be possible
with an updated MUI4 for classics?

If MUI4 isn't going to be released for classics I guess that I'll have to
try to replace/patch MUI_Image class with code from Zune... I could try to
convert the image loaded with the datatypes to an "image", remap the colours
etc... but just to get a transparent colour it looks like a lot of work that
won't be reused and it would be more interesting to have it integrated in
MUI_Image. 


-- 
Saludos/Best Regards
Jaime Cagigal 

 

Reply via email to