nanogui: GrBitmap & LineWidth


Previous by date: 2 Nov 2006 06:25:20 +0000 Re: nano-X in console, dsil8780.mail.usyd.edu.au
Next by date: 2 Nov 2006 06:25:20 +0000 Desktop rotates if mouse scrolled to the screen limits, Prafulla WADASKAR
Previous in thread: 2 Nov 2006 06:25:20 +0000 Re: GrBitmap & LineWidth, Greg Haerr
Next in thread: 2 Nov 2006 06:25:20 +0000 Re: GrBitmap & LineWidth, Greg Haerr

Subject: 答复: [nanogui] GrBitmap & LineWidth
From: ####@####.####
Date: 2 Nov 2006 06:25:20 +0000
Message-Id: <EBED726DEEB444468EA498F0EC94D6F70528D00B@mail02.HOLD.FOUNDER.COM>

Mr. Greg Haerr,

 

Thank you for your reply! :-)

 

Question 2 is OK, but another question arising when using GrDrawImageBits for 24 bits color images:

GR_IMAGE_HDR hdr;

What value should we set to hdr.transcolor?

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

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

 

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: 2 Nov 2006 06:25:20 +0000 Re: nano-X in console, dsil8780.mail.usyd.edu.au
Next by date: 2 Nov 2006 06:25:20 +0000 Desktop rotates if mouse scrolled to the screen limits, Prafulla WADASKAR
Previous in thread: 2 Nov 2006 06:25:20 +0000 Re: GrBitmap & LineWidth, Greg Haerr
Next in thread: 2 Nov 2006 06:25:20 +0000 Re: GrBitmap & LineWidth, Greg Haerr


Powered by ezmlm-browse 0.20.