From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) Content-Transfer-Encoding: 7bit Message-Id: <7BDD11E8-7753-4E44-9BD2-2FA5944D43E8@mac.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> From: Pietro Gagliardi Date: Fri, 25 Jan 2008 17:05:14 -0500 Subject: [9fans] How to read/write pixels from Memimage Topicbox-Message-UUID: 39863b1a-ead3-11e9-9d60-3106f5b1d025 Hello. I'm porting Bell Labs' Pico image language over to Plan 9 to use the Plan 9 native image format (image(6)), and I chose to use Memimage. I'd like to know how to get the 32-bit RGB pixel information out of a Memimage and into a properly allocated array of u32ints, and to do the reverse. Is that possible? Thanks.