Home | History | Annotate | Download | only in image

Lines Matching refs:pixbuf

22 #include <gdk-pixbuf/gdk-pixbuf.h>
42 const ImageSkia ImageSkiaFromGdkPixbuf(GdkPixbuf* pixbuf) {
43 CHECK(pixbuf);
44 gfx::Canvas canvas(gfx::Size(gdk_pixbuf_get_width(pixbuf),
45 gdk_pixbuf_get_height(pixbuf)),
50 gdk_cairo_set_source_pixbuf(cr, pixbuf, 0, 0);
55 // Returns a 16x16 red pixbuf to visually show error in decoding PNG.
59 GdkPixbuf* pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 16, 16);
60 gdk_pixbuf_fill(pixbuf, 0xff0000ff);
61 return pixbuf;
75 GdkPixbuf* pixbuf = NULL;
87 pixbuf = gdk_pixbuf_loader_get_pixbuf(loader.get());
89 if (pixbuf) {
90 // The pixbuf is owned by the scoped loader which will delete its ref when
91 // it goes out of scope. Add a ref so that the pixbuf still exists.
92 g_object_ref(pixbuf);
97 return pixbuf;
101 GdkPixbuf* pixbuf) {
106 pixbuf, &image, &image_size, "png", &error, NULL));
332 explicit ImageRepGdk(GdkPixbuf* pixbuf)
334 pixbuf_(pixbuf) {
335 CHECK(pixbuf);
357 GdkPixbuf* pixbuf() const { return pixbuf_; }
368 explicit ImageRepCairo(GdkPixbuf* pixbuf)
371 CHECK(pixbuf);
372 cairo_cache_->UsePixbuf(pixbuf);
554 Image::Image(GdkPixbuf* pixbuf) {
555 if (pixbuf) {
557 internal::ImageRepGdk* rep = new internal::ImageRepGdk(pixbuf);
631 internal::ImageSkiaFromGdkPixbuf(native_rep->pixbuf())));
686 return rep->AsImageRepGdk()->pixbuf();
693 // pixbuf before sending the data to the display server.
786 png_bytes = internal::Get1xPNGBytesFromPixbuf(gdk_rep->pixbuf());
866 GdkPixbuf* pixbuf = ToGdkPixbuf();
867 g_object_ref(pixbuf);
868 return pixbuf;