nanogui: Offscreen buffer / blit


Previous by date: 23 Jan 2006 21:34:33 +0000 Re: Offscreen buffer / blit, Robbie
Next by date: 23 Jan 2006 21:34:33 +0000 4bpp OK, 1bpp Not So Good, Gil Glass
Previous in thread: 23 Jan 2006 21:34:33 +0000 Re: Offscreen buffer / blit, Robbie
Next in thread:

Subject: Re: [nanogui] Offscreen buffer / blit
From: "Robbie" ####@####.####
Date: 23 Jan 2006 21:34:33 +0000
Message-Id: <20060123213421.80E8C37500@xprdmailfe14.nwk.excite.com>

Please disregard my question below. I've determined that the source was from a problem with my image in memory. It turned out that I wasn't readjusting for the image size and hence, was missing a few lines.



 --- On Mon 01/23, Robbie < ####@####.#### > wrote:
From: Robbie [mailto: ####@####.####
To: ####@####.#### ####@####.####
Date: Mon, 23 Jan 2006 11:54:14 -0500 (EST)
Subject: Re: [nanogui] Offscreen buffer / blit
I have an image in memory (decoded as a 160 x120 pixel image) and using the following sequence to display it. It appears that the data is being interpreted as a 32 bit instead of 16 resulting in a larget image with visible horizontal lines. 
Anyone have any idea how to fix this?

GrArea(pmap, c_gc, 0, 0, 160, 120, (void *)c_data, MWPF_TRUECOLOR555); 
GrCopyArea(c_image, c_gc, 0, 0, 160, 120, pmap, 0, 0, MWROP_USE_GC_MODE); 

c_data is actually a u16 * (unsigned short). 
Thanks.


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Previous by date: 23 Jan 2006 21:34:33 +0000 Re: Offscreen buffer / blit, Robbie
Next by date: 23 Jan 2006 21:34:33 +0000 4bpp OK, 1bpp Not So Good, Gil Glass
Previous in thread: 23 Jan 2006 21:34:33 +0000 Re: Offscreen buffer / blit, Robbie
Next in thread:


Powered by ezmlm-browse 0.20.