• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/gtk/

Lines Matching defs:pixbuf

96         GdkPixbuf* pixbuf = bitmap.GetPixbuf();
97 const wxByte* in = gdk_pixbuf_get_pixels(pixbuf);
98 const int inc = 3 + int(gdk_pixbuf_get_has_alpha(pixbuf) != 0);
99 const int rowpadding = gdk_pixbuf_get_rowstride(pixbuf) - inc * w;
318 // scale pixbuf if available and it has alpha or there is no mask
450 // create pixbuf if image has alpha and requested depth is compatible
544 GdkPixbuf* pixbuf = M_BMPDATA->m_pixbuf;
545 if (!pixbuf)
550 unsigned char *out = gdk_pixbuf_get_pixels(pixbuf);
553 int rowpad = gdk_pixbuf_get_rowstride(pixbuf) - 4 * width;
580 // prefer pixbuf if available, it will preserve alpha and should be quicker
583 GdkPixbuf *pixbuf = GetPixbuf();
585 if (gdk_pixbuf_get_has_alpha(pixbuf))
590 const unsigned char* in = gdk_pixbuf_get_pixels(pixbuf);
593 const int rowpad = gdk_pixbuf_get_rowstride(pixbuf) - inc * w;
621 // create a pixbuf which shares data with the wxImage
622 GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data(
625 gdk_pixbuf_get_from_drawable(pixbuf, pixmap, NULL, 0, 0, 0, 0, w, h);
627 g_object_unref(pixbuf);
734 GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
737 ret.SetPixbuf(pixbuf, M_BMPDATA->m_bpp);
740 pixbuf, 0, 0);
885 GdkPixbuf *pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
888 M_BMPDATA->m_pixbuf = pixbuf;
889 gdk_pixbuf_get_from_drawable(pixbuf, M_BMPDATA->m_pixmap, NULL,
892 // apply the mask to created pixbuf:
902 guchar *bmp = gdk_pixbuf_get_pixels(pixbuf);
904 int bmprowinc = gdk_pixbuf_get_rowstride(pixbuf) - 4 * width;
932 void wxBitmap::SetPixbuf(GdkPixbuf* pixbuf, int depth)
940 M_BMPDATA->m_pixbuf = pixbuf;
941 M_BMPDATA->m_width = gdk_pixbuf_get_width(pixbuf);
942 M_BMPDATA->m_height = gdk_pixbuf_get_height(pixbuf);
969 GdkPixbuf *pixbuf = GetPixbuf();
972 if ( pixbuf && (((bpp == 24) && !hasAlpha) || ((bpp == 32) && hasAlpha)) )
974 data.m_height = gdk_pixbuf_get_height( pixbuf );
975 data.m_width = gdk_pixbuf_get_width( pixbuf );
976 data.m_stride = gdk_pixbuf_get_rowstride( pixbuf );
977 bits = gdk_pixbuf_get_pixels(pixbuf);
994 GdkPixbuf* pixbuf = GetPixbuf();
996 if (!gdk_pixbuf_get_has_alpha(pixbuf))
1000 M_BMPDATA->m_pixbuf = gdk_pixbuf_add_alpha(pixbuf, false, 0, 0, 0);
1001 g_object_unref(pixbuf);