forked from AuroraMiddleware/gtk
Add an accessor for GdkImage->mem
See bug # 522756
This commit is contained in:
parent
67cd929267
commit
53796b7f1f
@ -295,6 +295,7 @@ gdk_image_get_height
|
|||||||
gdk_image_get_image_type
|
gdk_image_get_image_type
|
||||||
gdk_image_get_visual
|
gdk_image_get_visual
|
||||||
gdk_image_get_width
|
gdk_image_get_width
|
||||||
|
gdk_image_get_pixels
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
gdk_image_put_pixel
|
gdk_image_put_pixel
|
||||||
|
@ -851,6 +851,7 @@ gdk_image_get_height
|
|||||||
gdk_image_get_image_type
|
gdk_image_get_image_type
|
||||||
gdk_image_get_visual
|
gdk_image_get_visual
|
||||||
gdk_image_get_width
|
gdk_image_get_width
|
||||||
|
gdk_image_get_pixels
|
||||||
gdk_image_set_colormap
|
gdk_image_set_colormap
|
||||||
gdk_image_new
|
gdk_image_new
|
||||||
#endif
|
#endif
|
||||||
|
@ -243,6 +243,24 @@ gdk_image_get_bits_per_pixel (GdkImage *image)
|
|||||||
return image->bits_per_pixel;
|
return image->bits_per_pixel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gdk_image_get_pixels:
|
||||||
|
* @image: a #GdkImage
|
||||||
|
*
|
||||||
|
* Returns a pointer to the pixel data of the image.
|
||||||
|
*
|
||||||
|
* Returns: the pixel data of the image
|
||||||
|
*
|
||||||
|
* Since: 2.22
|
||||||
|
*/
|
||||||
|
gpointer
|
||||||
|
gdk_image_get_pixels (GdkImage *image)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GDK_IS_IMAGE (image), NULL);
|
||||||
|
|
||||||
|
return image->mem;
|
||||||
|
}
|
||||||
|
|
||||||
/* We have N_REGION GDK_SCRATCH_IMAGE_WIDTH x GDK_SCRATCH_IMAGE_HEIGHT regions divided
|
/* We have N_REGION GDK_SCRATCH_IMAGE_WIDTH x GDK_SCRATCH_IMAGE_HEIGHT regions divided
|
||||||
* up between n_images different images. possible_n_images gives
|
* up between n_images different images. possible_n_images gives
|
||||||
* various divisors of N_REGIONS. The reason for allowing this
|
* various divisors of N_REGIONS. The reason for allowing this
|
||||||
|
@ -118,6 +118,7 @@ guint16 gdk_image_get_depth (GdkImage *image);
|
|||||||
guint16 gdk_image_get_bytes_per_pixel(GdkImage *image);
|
guint16 gdk_image_get_bytes_per_pixel(GdkImage *image);
|
||||||
guint16 gdk_image_get_bytes_per_line (GdkImage *image);
|
guint16 gdk_image_get_bytes_per_line (GdkImage *image);
|
||||||
guint16 gdk_image_get_bits_per_pixel (GdkImage *image);
|
guint16 gdk_image_get_bits_per_pixel (GdkImage *image);
|
||||||
|
gpointer gdk_image_get_pixels (GdkImage *image);
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user