9fans archive / 2008 / 01 / 494 /    prev next

From: Pietro Gagliardi <pietro10@mac.com>
Subject: Re: [9fans] How to read/write pixels from Memimage
Date: Sun, 27 Jan 2008 22:23:43 -0500

On Jan 27, 2008, at 8:22 PM, erik quanstrom wrote:

> (you likely want an alpha
> channel in your image, so that each pixel is 4 bytes.)

Apparently, my RGB24 manipulation was wrong, and now it works like a  
charm. The next step is to support a construct like new.red and to  
eliminate the use of undocumented stuff (I peeked in /sys/include/ 
draw.h and /sys/src/libbio/brdstr.c for some hacks).