9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: andrey mirtchovski <mirtchov@cpsc.ucalgary.ca>
To: 9fans@cse.psu.edu
Subject: [9fans] point2rgb and point2rgba
Date: Mon, 31 Jan 2005 07:54:59 -0700	[thread overview]
Message-ID: <673bb0f7f7be8c76f1db56fb175f06a9@plan9.ucalgary.ca> (raw)

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



             reply	other threads:[~2005-01-31 14:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 14:54 andrey mirtchovski [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=673bb0f7f7be8c76f1db56fb175f06a9@plan9.ucalgary.ca \
    --to=mirtchov@cpsc.ucalgary.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).