- 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?
- 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.
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
You are made of awesome. Thank you.
You may also be thinking of Federico’s “performance scripts” for #2. Very handy:
http://www.gnome.org/~federico/hacks/index.html
I think you’re talking about Federico’s graphing tool.
http://www.gnome.org/~federico/hacks/index.html#performance-scripts
hm… i believe that you mean “Federico`s timeline tracing tools”-or-something, which are located http://www.gnome.org/~federico/hacks/index.html#performance-scripts
:-)
And that’s why moderated discussions are bad!
http://davyd.livejournal.com/246927.html