Re: FVWM: XPaint and Shape?

From: Eli Burke <eburke_at_csugrad.cs.vt.edu>
Date: Wed, 11 Oct 1995 10:41:16 -0400 (EDT)

> How can I, in xpaint, make a pixmap with no background so that fvwm uses
> its shape?

        Well, this is a rather convoluted way to do it, but I don't know
off the top of my head of any better way.
        1. Create your pixmap, and set the background to all one color.
           Save it as a pixmap, and then pull up the .xpm file in your
           favorite editor. (don't worry, it is a text file)
        2. scroll down to the picture part (the top of the file is a list
           of the colors and what character equals what color) and look
           at it to determine what ascii character is your background color
        3. go to the top of the file, and find the character that is your
           background character. change the two colors on the line to "none"

I've included a fragment of an xpm file below-- my "transparent" character
is the space " " and the line for it reads " m none c none",
If your background character were "." then you'd make it ". m none c none",

/* XPM2 C */
static char ** nuke.xpm = {
"32 32 11 1",
" m none c none",
". m black c #000000000000",
"X m black c #373837",
" ",
" ........ ",
" ....XXXXoooo.. ",
" ..XXXXXXXXXXXXOOo. ",

I hope that was reasonably clear.. if not, send me email and I'll try to
explain it a little bit better.

-- 
Eli Burke
eburke_at_csugrad.cs.vt.edu 
http://csugrad.cs.vt.edu/~eburke/ 
--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Oct 11 1995 - 09:37:47 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST