nanogui: Images not drawn (FLTK+nxlib app with nano-X)
Subject:
Re: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)
From:
"Greg Haerr" ####@####.####
Date:
2 Feb 2006 22:57:05 +0000
Message-Id: <2ddf01c6284b$fa428700$0300a8c0@RDP>
: 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.
I thought the problem occured with odd widths, not even widths...
Can you explain a bit more?
: Where should I be looking now? GdArea()?
Yes. There is a possibility that the nxproto.c code could be
chopping/rounding the data down, although I don't think so.
This would be the GrArea code in srvnet.c/client.c.
: 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.
The image_png.c file should have the transparent member in the
MWIMAGEHDR structure set to -1. You might verify this to
be the case.
Regards,
Greg