nanogui: How to draw pixmap with transparency


Previous by date: 27 Feb 2002 10:20:16 -0000 Re: Weird Font Problem, Alex Holden
Next by date: 27 Feb 2002 10:20:16 -0000 MWPIXELVAL -> MWCOLORVAL?, Julian Smart
Previous in thread: 27 Feb 2002 10:20:16 -0000 Re: How to draw pixmap with transparency, Jordan Crouse
Next in thread: 27 Feb 2002 10:20:16 -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 10:20:16 -0000
Message-Id: <4.2.0.58.20020227100945.03875940@pop>

At 09:10 AM 1/22/02 -0700, Jordan Crouse wrote:
 >You can draw any image type that supports transparency with the 
 >GrDrawImage*.
 >However, at this point you can't blit (ie GrCopyArea) an image with <br>
 >transparent parts, but that will be coming soon.
 >
 >Jordan

Has anyone perhaps used a series of GrCopyArea calls with different ROPs
to draw a pixmap transparently using another pixmap as mask? This is
what's done in the wxWindows WIN32 port (if the native Windows masked drawing isn't
implemented). I could try it myself but it would mostly be guesswork since the ROPs
for Nano-X are likely to be slightly different from WIN32's.

I'm at the point with the wxWindows for Nano-X port where transparent pixmap drawing
is needed in order for the widget set to render properly...

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.

Thanks,

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 10:20:16 -0000 Re: Weird Font Problem, Alex Holden
Next by date: 27 Feb 2002 10:20:16 -0000 MWPIXELVAL -> MWCOLORVAL?, Julian Smart
Previous in thread: 27 Feb 2002 10:20:16 -0000 Re: How to draw pixmap with transparency, Jordan Crouse
Next in thread: 27 Feb 2002 10:20:16 -0000 Re: How to draw pixmap with transparency, Alex Holden


Powered by ezmlm-browse 0.20.