Re: about XPM problems?



On Thu, 24 Jan 2002 08:18:00 +0800, =?big5?B?tsC8eSBLYXNvbiBIdWFuZw==?= <kasonhuang kinposh com cn>  said:
> anyone know  in the  line "13  13  5  2  7  7" ,"2" "7" and "7"  what meaning?
> /* XPM */
> static char * roundb_xpm[] = {
> /* width height ncolors cpp [x_hot y_hot] */
> "13 13 5 2 7 7",

Look at the line above.

13 width
13 height
5 ncolors  number of colors
2 cpp - characters per pixel (not sure why this is 2 for a 5-color xpm,
  that can do it in 1 char/pixel.  Usually 2 is for large (256+) colormaps).
7 x_hot  where the "point" is if it's a cursor
7 y_hot  So these are the x,y coordinates of the cursors "hot spot".
In this case, it's the center of the circle.  If your cursor was an
arrow, you would list the x,y of the tip of the arrow, etc etc.


-- 
				Valdis Kletnieks
				Computer Systems Senior Engineer
				Virginia Tech

Attachment: pgpjhDt2JTBOh.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]