Two brief questions

  1. Is there a simple way to have a pixbuf or pixmap or bitmap which contains two colours, and when I render it it will have one transparent and one the fully opaque colour I want?  (I would use the same image in different places in different colours– like a stamp in TuxPaint, only always monochrome).  I suppose I could use GdkPixbuf and actually modify the pixel data before I output it (if transparent, leave it; else set to desired colour), but is there a more elegant way?
  2. What’s the name of that program that draws a graph of another program’s startup time (and has nothing to do with valgrind)?  You know, it makes one tall column representing the passage of time, and coloured lines coming out at angles telling you what happened when.

Published by

Thomas Thurman

Mostly themes, triaging, and patch review.

7 thoughts on “Two brief questions”

  1. 1a. In gdk: Use a GdkBitmap as a clip mask in the GC, then fill a rectangle with the color
    1b. In cairo: use the bitmap as a pattern in cairo_mask(), then fill a rect with the color

    2. bootchart

Leave a Reply

Your email address will not be published. Required fields are marked *