nanogui: Images not drawn (FLTK+nxlib app with nano-X)


Previous by date: 2 Feb 2006 22:02:06 +0000 Re: VNC Server for Nanox, yan seiner
Next by date: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Previous in thread: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next in thread: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr

Subject: RE: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)
From: "Martin Kajdas" ####@####.####
Date: 2 Feb 2006 22:02:06 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914BF@mkmail.MKPROD.COM>

I put many print messages into Image.c (putTrueColorImage()) to debug this and I verified that the image size and the data is correct when calling GrArea() function (width=height=24, 48x24 bytes of data match image).
I used a 24x24 image which displays only 16x24 worth of data.

From this, I conclude that the nxlib is OK and the problem is in nano-X.
I am using 5:6:5 color format with framebuffer.

Where should I be looking now? GdArea()?

One problem I noticed with nxlib (PNG conversion), is that the transparent color and black color are both zero making the images appear wrong (black pixels are transparent).
This would explain another problem with my images.
Martin


-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Wednesday, February 01, 2006 3:55 PM
To: Martin Kajdas
Cc: ####@####.####
Subject: Re: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)


> Looks like the image width is rounded down to multiple of 16 instead of
up.

yes, agreed


> Maybe the rounding problem is in the nxlib before it calls microwindows.

I'm pretty sure we don't have an image boundary size bug in
microwindows.  A quick look into the nxlib Image.c could
help.  Since microwindows always expects word-padding, there
could be an issue with reading a non-existent byte
as the last pixel of an image line.  The chop code could have
been placed there for this protection.

Regards,

Greg


Previous by date: 2 Feb 2006 22:02:06 +0000 Re: VNC Server for Nanox, yan seiner
Next by date: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Previous in thread: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next in thread: 2 Feb 2006 22:02:06 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr


Powered by ezmlm-browse 0.20.