9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] point2rgb and point2rgba
@ 2005-01-31 14:54 andrey mirtchovski
  2005-01-31 15:01 ` andrey mirtchovski
  2005-01-31 18:01 ` Russ Cox
  0 siblings, 2 replies; 14+ messages in thread
From: andrey mirtchovski @ 2005-01-31 14:54 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-01-31 20:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-31 14:54 [9fans] point2rgb and point2rgba andrey mirtchovski
2005-01-31 15:01 ` andrey mirtchovski
2005-01-31 18:01 ` Russ Cox
2005-01-31 18:23   ` andrey mirtchovski
2005-01-31 18:26     ` Russ Cox
2005-01-31 18:46       ` rog
2005-01-31 18:47         ` andrey mirtchovski
2005-01-31 18:57           ` Russ Cox
2005-01-31 19:14             ` andrey mirtchovski
2005-01-31 19:19             ` rog
2005-01-31 19:33               ` andrey mirtchovski
2005-01-31 19:37               ` Joel Salomon
2005-01-31 19:48                 ` andrey mirtchovski
2005-01-31 20:27                 ` rog

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).