From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <673bb0f7f7be8c76f1db56fb175f06a9@plan9.ucalgary.ca> To: 9fans@cse.psu.edu Date: Mon, 31 Jan 2005 07:54:59 -0700 From: andrey mirtchovski MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] point2rgb and point2rgba Topicbox-Message-UUID: 39d92528-eace-11e9-9e20-41e7f4b1d025 would anyone strongly object adding two routines to query a pixel's rgba values from an Image*? i know one can do it going through Memimage's, but drawing memimages on screen is painful to watch. here are the prototypes: point2rgb(Image *, Point, uchar *r, uchar *g, uchar *b) point2rgb(Image *, Point, uchar *r, uchar *g, uchar *b, uchar *alpha) s/uchar/int/ if you think it's better... andrey