From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <479D9F3F.8080109@proweb.co.uk> Date: Mon, 28 Jan 2008 09:24:15 +0000 From: mattmobile@proweb.co.uk User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] How to read/write pixels from Memimage References: <74D02FEE-89F7-4CCE-8D69-8B7CAADA1B8C@mac.com> In-Reply-To: <74D02FEE-89F7-4CCE-8D69-8B7CAADA1B8C@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 3b66c8fa-ead3-11e9-9d60-3106f5b1d025 9fans is not a blog, try blogger.com > > >> (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). >