9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] pasting pre-defined bitmap image
Date: Thu,  7 Sep 2000 10:34:28 -0400	[thread overview]
Message-ID: <20000907143432.75C25199D0@mail> (raw)

> In the 8½, we've used to make a rectangle by balloc(), and
> then fill the rectange by a pre-defined patterns, and then
> write it on to a window using this pre-defined rectangle
> (ie., tiling pattern etc.).
> 
> allocimage() of the new release allocates the image onto
> the display.  In the present case, this is not proper, instead,
> we want just allocate the pattern in memory, and to use it
> as the cursor shape (not at the cursor position).
> 
> How I can do it on the new release graphic system?

Bitmaps/Images are maintained essentially the same way in
the two releases: stored as data on the same machine as the
display.  I don't understand why you think balloc() and
allocimage() behave differently with respect to storage.

The libraries are very different, however, so you may think
it's behaving differently.  It sounds like what you're asking
for is the routine loadimage(), described in allocimage(2).
Let me know if that doesn't solve your problem.

-rob




             reply	other threads:[~2000-09-07 14:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-07 14:34 rob pike [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-09-08  0:15 okamoto
2000-09-07  7:20 okamoto

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=20000907143432.75C25199D0@mail \
    --to=rob@plan9.bell-labs.com \
    --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).