nanogui: How to draw pixmap with transparency


Previous by date: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Next by date: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Previous in thread: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Next in thread: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden

Subject: Re: [nanogui] How to draw pixmap with transparency
From: Julian Smart ####@####.####
Date: 27 Feb 2002 13:31:25 -0000
Message-Id: <4.2.0.58.20020227132645.038b5220@pop>

At 11:18 AM 2/27/02 +0000, Alex Holden wrote:
 >I'm not sure. There are quite a few ROPs available, look for MWROP_* in 
 >include/mwtypes.h. I may have a look at this later if I get a chance, 
 >it's been on my TODO list for a while.

That would be great, I'm sure there must be one or two other people who
could use the ability draw pixmaps transparently :-) I suppose I could do
it a pixel at a time, checking against the mask to see if I need to draw
that pixel, but... ugh...

 >> A separate question -- is there a Nano-X-approved to way to convert font 
 >sizes expressed
 >> in points to a height in pixels? I currently use the pixels-per-cm value 
 >to calculate it
 >> but I get > 40 pixels for a point size of 12, which is a bit excessive.
 >
 >I think you should be able to do a GrGetFontInfo() and look at the 
 >height field of the GR_FONT_INFO structure.

Thanks, though unfortunately I need to convert the other way around
(the wxWindows wxFont constructor takes a font size expressed
in points). I may need to set a global fudge factor to get the size
right.

Regards,

Julian
-- 
Red Hat UK Ltd, Unit 200 Rustat House, 62 Clifton Road, Cambridge, UK. CB1 7EG Tel: +44 (1223) 271063

Previous by date: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Next by date: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Previous in thread: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden
Next in thread: 27 Feb 2002 13:31:25 -0000 Re: How to draw pixmap with transparency, Alex Holden


Powered by ezmlm-browse 0.20.