Questions tagged [pixbuf]

Information that describes an image

The Gdk::Pixbuf (part of the gtkmm package) or the GdkPixbuf (from the gtk+ package) structures contain information about images (see www.gtk.org).

29 questions
8
votes
3 answers

Load and show an image from the web in Python with Gtk 3?

I'm writing an app on Ubuntu 12.04 with Python and GTK 3. The problem I have is that I can't figure out how I should do to show a Gtk.Image in my app with an image file from the web. This is as far as I have come: from gi.repository import Gtk from…
Daniel Jonsson
  • 3,261
  • 5
  • 45
  • 66
4
votes
1 answer

GTK: How can I fix this problem: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png

I want to get an executable on Windows from my GTK program which can work even if you've not install GTK on you're computer. I've tried to get an installator with inno setup and I copied all dll that I need, but I get this message error on the…
3
votes
1 answer

Problem with gdk.Pixbuf in gtk# Mono

I'm creating a small drawing program in Mono gtk# and using the Cairo graphics library. I'm coding and compiling on a MacOs X system. I have a drawable object which I put into Pixbuf at a certain time and then retrieve it later into the drawable…
Oli Oskar
  • 33
  • 7
3
votes
0 answers

GdkPixbuf : is it possible to change the data without instancing a new Pixbuf?

I need a Pixbuf with mutable content. This means that it needs to be updated quite fast in order to display frames with a reasonable speed. In the python binding there is the get_pixels method. Is it unclear to me if I can use it to update the data…
fstab
  • 4,801
  • 8
  • 34
  • 66
3
votes
2 answers

Can a GDK Pixbuf be rotated by something less than 90 degrees?

I have a Pixbuf in some demo code I have and I currently rotate it clockwise or counter-clockwise depending on screen touches. I do this using RotateSimple but that is limited to multiples of 90 degrees. Is there a way within GDK to rotate images in…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
3
votes
2 answers

Improve OCR of image without scaling (using PIL, pixbuf)?

I'm trying to make OCR-recognition on a screenshot, after screenshot taken (of desktop's region, on which you clicked) it goes to pibxbuffer, which content goes to pytesseract. But after using pixbuffer image quality is bad: it's skew (I tried to…
3
votes
2 answers

Python PyGObject Get pixel from GdkPixbuf.get_pixels()

I've written a python program using GTK+2 (pygtk). Now I want to update the program to GTK+3, so I have to use pyGObject instead of pygtk. My problem is, that I have to get the color from individual pixels on a GdkPixbuf.Pixbuf object. In pygtk i…
freundTech
  • 111
  • 9
3
votes
2 answers

Cairo.ImageSurface to Gdk.Pixbuf?

Attempting to create a Pixbuf from an ImageSurface, but all I get are black pixels. Any ideas? Cairo.ImageSurface surface = mysurface; int w = surface.Width; int h = surface.Height; Gdk.Pixmap pixmap = new Gdk.Pixmap(null, w, h, 24); using…
Doug Blank
  • 2,031
  • 18
  • 36
2
votes
1 answer

Can Cairo draw directly onto a Gtk.Pixbuf?

I have a fine, working system in C# that draws with Cairo commands in a render method. However, sometimes I would like to draw into a pixmap, rather than dynamically when the screen needs to be updated. For example, currently I have: public override…
Doug Blank
  • 2,031
  • 18
  • 36
2
votes
1 answer

Creating an Async Image Gtk3 Rust

I'm trying to create a similar widget like Granite.AsyncImage using Rust Gtk, but I can't figure how to make it work because Pixbuff is not safe thread. I have a code like next: let file =…
Carlos Lopez
  • 133
  • 4
2
votes
1 answer

How do I draw Pixbuf's onto a surface with Cairo-Sharp?

I'm porting one of my existing projects over to GTK3+ (GTK-Sharp3 and such, since its a C# project). For the vast majority of it, it was a simple transition where not much needed to be changed but the way that I was doing a 'Region Screenshot' type…
Christine
  • 238
  • 1
  • 9
2
votes
3 answers

Ruby GTK Pixbuf timed image change

I am creating an image slideshow in ruby, using gtk pixbuf to load images. I am very new to ruby & GTK, this may be an stupid question. Currently image changes are linked to the GUI button_press_event, I would like them to change /refresh…
user3648577
  • 61
  • 1
  • 4
2
votes
2 answers

How to scale down pixbuf image without losing quality?

I have a pixbuf image and I want to save it to pdf using cairo. Because the pixbuf is too large, I want to scale it down. I use scale_simple method. But, the scaled result became blur. Below is the screenshot I take. The real image is on the right…
user2435611
  • 1,093
  • 1
  • 12
  • 18
1
vote
1 answer

Speed up image loading in a gtk.IconView

I want to display a 139 cols * 121 rows image map. (The image size is 32*32 px) I use a gtk.Iconview with a gtk.ListStore that I fill with gtk.gdk.Pixbuf, like this : (the two dimensional graph list contains objects that contain the images path to…
Loïc G.
  • 3,087
  • 3
  • 24
  • 36
1
vote
2 answers

Pixbuf overlapping / merge

Is there a way to overlap (but not overwrite) two gtk.gdk.Pixbuf in a gtk.IconView ? For example, I've a cell with this pixbuf image : http://www.pirates-caraibes.com/media/zone/AnimMer.gif I want to add this image :…
Loïc G.
  • 3,087
  • 3
  • 24
  • 36
1
2