1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Bitmaps and Pixmaps
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-23 23:02:10 +00:00
|
|
|
Offscreen drawables
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
Pixmaps are offscreen drawables. They can be drawn upon with the
|
|
|
|
standard drawing primitives, then copied to another drawable (such as
|
2010-07-21 19:02:35 +00:00
|
|
|
a #GdkWindow). The depth of a pixmap
|
1999-08-16 18:51:52 +00:00
|
|
|
is the number of bits per pixels. Bitmaps are simply pixmaps
|
|
|
|
with a depth of 1. (That is, they are monochrome bitmaps - each
|
|
|
|
pixel can be either on or off).
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
2005-05-08 05:48:45 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
2010-05-26 02:57:46 +00:00
|
|
|
<!-- ##### STRUCT GdkPixmap ##### -->
|
2002-12-17 02:07:57 +00:00
|
|
|
<para>
|
1999-08-16 18:51:52 +00:00
|
|
|
An opaque structure representing an offscreen drawable.
|
|
|
|
Pointers to structures of type #GdkPixmap, #GdkBitmap,
|
|
|
|
and #GdkWindow, can often be used interchangeably.
|
|
|
|
The type #GdkDrawable refers generically to any of
|
|
|
|
these types.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixmap_new ##### -->
|
|
|
|
<para>
|
|
|
|
Create a new pixmap with a given size and depth.
|
|
|
|
</para>
|
|
|
|
|
2003-07-29 09:08:22 +00:00
|
|
|
@drawable: A #GdkDrawable, used to determine default values
|
|
|
|
for the new pixmap. Can be %NULL if @depth is specified,
|
1999-08-16 18:51:52 +00:00
|
|
|
@width: The width of the new pixmap in pixels.
|
|
|
|
@height: The height of the new pixmap in pixels.
|
|
|
|
@depth: The depth (number of bits per pixel) of the new pixmap.
|
2003-07-29 09:08:22 +00:00
|
|
|
If -1, and @drawable is not %NULL, the depth of the new
|
|
|
|
pixmap will be equal to that of @drawable.
|
2001-11-28 19:05:58 +00:00
|
|
|
@Returns: the #GdkPixmap
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2007-06-04 17:01:14 +00:00
|
|
|
<!-- ##### TYPEDEF GdkBitmap ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
|
|
|
An opaque structure representing an offscreen drawable of depth
|
2001-11-28 19:05:58 +00:00
|
|
|
1. Pointers to structures of type #GdkPixmap, #GdkBitmap, and
|
1999-08-16 18:51:52 +00:00
|
|
|
#GdkWindow, can often be used interchangeably. The type #GdkDrawable
|
|
|
|
refers generically to any of these types.
|
|
|
|
</para>
|
2010-05-08 05:18:53 +00:00
|
|
|
|
|
|
|
|