Path: utzoo!attcan!uunet!ingr!b17b!stan From: stan@b17b.INGR.COM (stan) Newsgroups: comp.windows.x Subject: pixmaps Keywords: copying pixmaps Message-ID: <371@b17b.INGR.COM> Date: 7 Jun 90 15:13:32 GMT Lines: 24 I need to create a pair of pixmaps( sensitive and insensensitive) for a Motif button. The second pixmap will be just like the first, except it should be stippled using the background color. To accomplish this, I am calling XCreatePixmapFromBitmapData twice, with the same data. Then I call XFillRectangle with the appropriate gc to stipple the second pixmap. I think I should be able to copy the first pixmap to the second ( using memcpy or some other low level routine ) and then call XFillRectangle on the new pixmap. The problem here is I don't really know how much memory the pixmap occupies. It has also been suggested that I use XCreatePixmap and XCopyArea to create the second pixmap. Does anyone know which of these (or any other) methods would be faster? -- _____________________________________________________________________ / \ / / Stan Hardy \ Disclaimer: / / Intergraph Corporation \ This is only an exhibition, / / Phone : (205) 730-1346 \ not a competion. Please, / / Mail : ..!uunet!ingr!b17c!c120g!stan \ no wagering. / /___________________________________________\_________________________/