From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: References: Content-Type: multipart/alternative; boundary=Apple-Mail-1--154875402 Message-Id: <74D02FEE-89F7-4CCE-8D69-8B7CAADA1B8C@mac.com> From: Pietro Gagliardi Subject: Re: [9fans] How to read/write pixels from Memimage Date: Sun, 27 Jan 2008 22:23:43 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 3b29d47c-ead3-11e9-9d60-3106f5b1d025 --Apple-Mail-1--154875402 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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). --Apple-Mail-1--154875402 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=US-ASCII
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).

--Apple-Mail-1--154875402--