nanogui: GrBitmap & LineWidth


Previous by date: 4 Nov 2006 00:46:10 +0000 Re: nano-X in console, Greg Haerr
Next by date: 4 Nov 2006 00:46:10 +0000 Re: Linux Keyboard driver for IPAQ, Greg Haerr
Previous in thread: 4 Nov 2006 00:46:10 +0000 答复: [nanogui] GrBitmap & LineWidth, JiaAiXia(贾爱霞)
Next in thread:

Subject: Re: [nanogui] GrBitmap & LineWidth
From: "Greg Haerr" ####@####.####
Date: 4 Nov 2006 00:46:10 +0000
Message-Id: <065b01c6ffaa$9882ccf0$6401a8c0@winXP>

> What value should we set to hdr.transcolor?

Set hdr.transcolor = MWNOCOLOR;

You will require the CVS version for this, since
the bug was fixed only in CVS.


> If (hdr.transcolor = GR_RGB(0, 0, 0) or = -1), the brightest colors of
image is displayed wrong;

Note: GR_RGB(0,0,0) = 0, not -1.


> If (hdr.transcolor = GR_RGB(255, 255, 255)), the darkest colors of image
is displayed wrong.


GR_RGB(255,255,255) = -1, since the alpha channel is
set to 255.

MWNOCOLOR is MWARGB(0x01, 0, 0, 0).  This is
black with alpha channel 0x01, not likely to
be found.  In the older versions, the value
of MWNOCOLOR was -1, which interfered
with MWARGB(255,255,255,255), WHITE.

Regards,

Greg




Jia aixia



-----邮件原件-----
发件人: Greg Haerr ####@####.####
发送时间: 2006年10月28日 9:19
收件人: JiaAiXia(贾爱霞); ####@####.####
主题: Re: [nanogui] GrBitmap & LineWidth



> 1. GrSetGCLineWidth() is OK? It does’t work when I use this functiong to

> change line stroke width, why?



I'm not aware of a GrSetGCLineWidth function.  What version

are you running?  Line stroke widths aren't supported

yet.









2. When I use GrBitmap, the image is distorted(But when use GrDrawImageBits,

it’s not distorted). I have considered the 16bits and 32 bits align.  Can

GrBitmap work?



Yes, GrBitmap works.  It doesn't use an image structure,

just a 16-bit aligned array of FG/BG bits.  Likely your image

isn't aligned to a 16-bit boundary.  32 bit boundary

won't work.









3. In nano-X, Fill Mode is supported or not?  It seems can’t work.



Yes, look at the demo grdemo.sh, this should show the fill

modes.



Regards,



Greg





Previous by date: 4 Nov 2006 00:46:10 +0000 Re: nano-X in console, Greg Haerr
Next by date: 4 Nov 2006 00:46:10 +0000 Re: Linux Keyboard driver for IPAQ, Greg Haerr
Previous in thread: 4 Nov 2006 00:46:10 +0000 答复: [nanogui] GrBitmap & LineWidth, JiaAiXia(贾爱霞)
Next in thread:


Powered by ezmlm-browse 0.20.