[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
GrBitmap & LineWidth
From: ####@####.#### Date: 23 Oct 2006 10:54:09 +0100 Message-Id: <EBED726DEEB444468EA498F0EC94D6F704FE3A17@mail02.HOLD.FOUNDER.COM> Dear all: I use nano-X 0.91. I have 3 questions: 1. GrSetGCLineWidth() is OK? It does’t work when I use this functiong to change line stroke width, why? 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? 3. In nano-X, Fill Mode is supported or not? It seems can’t work. Please help me out. Thank you very much! Jia --------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] GrBitmap & LineWidth
From: "Greg Haerr" ####@####.#### Date: 28 Oct 2006 02:19:58 +0100 Message-Id: <089001c6fa2f$131cf6b0$2f01a8c0@HaydenLake> > 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |