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
1
vote
2 answers

Cairo data plotter in PyGTK: should I use a pixbuffer?

I am trying to create a multichannel plot very similar to those used for audio editing, but for medical data. This kind of program is to be used by a person who should (among other things) zoom and pan horizontally over the dataplot, in order to…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
1
vote
1 answer

Something faster than Python's multiprocessing.Process for screen recording in OS X?

I was trying to write a Python program that records current screen in arbitrary fps in OS X, say 60fps. The fastest way to capture the current screen I found was using subprocess.call(["screencapture", "pic.bmp"]). But it took about 0.16 seconds to…
1
vote
1 answer

playing a video by retrieving and manipulating frame by frame: is creating a new pixbuf at every frame the way to go or is there an easier way?

using python3, gtk3. I am working on a computer vision application that needs to manipulate and display (playback) the frames from a video. Currently, I create a new Pixbuf with the static method new_from_data, fed by a sequence of bytes created…
fstab
  • 4,801
  • 8
  • 34
  • 66
1
vote
1 answer

is there some documentation on all methods of PixBuf, especially replace_data? (gtk3)

I was wondering where I can find the documentation from all of the methods that are implemented in PixBuf (found via dir, python3): ['__class__', '__copy__', '__deepcopy__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__',…
fstab
  • 4,801
  • 8
  • 34
  • 66
1
vote
1 answer

GTK# Pixbuf Icon in TreeView

I am trying to load icons/images from the web and put them into my TreeView. I have the following code (below) but each time it is run it throws an exception. I don't understand what I have done wrong here. Would you please be able to help me to…
Ben Hayward
  • 1,444
  • 23
  • 37
1
vote
1 answer

Why are Gdk::Pixbufs not visible in Gtk::TreeView?

After spending a long time searching for an answer, I hope someone can help me with this problem. I'm trying to use gtkmm (version 3.14.0) and glade (version 3.18.3) on a Fedora 21 system to create a Gtk::TreeView/Gtk::ListStore with many small…
sawims
  • 169
  • 1
  • 1
  • 9
1
vote
1 answer

How to load GdkPixbuf from file in a callback function?

I'm using gtk+ 3.14 and I want to load a picture that the user chooses. The code here correctly displays the picture but doest not seem to update the GdkPixbuf *pixbuf. In fact, GdkPixbuf is not NULL inside the function but it is NULL outside it.…
Manon
  • 159
  • 8
0
votes
4 answers

GTK - Python Getting Difference Between Pixbuf Images

I need to get the difference between two GTK 3 pixbuf images. Screenshot is captured in order to get images. get_byte_length gives the same value for different images. How could I get the difference? Here is the code: window =…
0
votes
1 answer

bitmap is loaded mirrored and inverted

I obtain a CF_DIB from a clipboard and then call: GdkPixbuf* pixbuf = gdk_pixbuf_new_from_data(info->bmiColors, GDK_COLORSPACE_RGB, TRUE, 8, info->bmiHeader.biWidth, info->bmiHeader.biHeight, rowstride, NULL, NULL); to create a GdkPixbuf out of the…
Edenia
  • 2,312
  • 1
  • 16
  • 33
0
votes
1 answer

GTK# and PixbufAnimation iteration

Greetings, I'm having a problem using Gdk.PixbufAnimationIter of a PixbufAnimation. The code goes something like this: Gdk.PixbufAnimation animation = new Gdk.PixbufAnimation(System.IO.Path.Combine([filepath], [filename])); Gdk.PixbufAnimationIter…
MrFreeman
  • 47
  • 7
0
votes
1 answer

GdkPixbuf can be created with `new_from_data` and `new_from_stream`. Why doesn't the latter require the resolution?

I am trying to understand the basics behind Pixbuf and its factory methods new_from_data and new_from_stream. new_from_data requires a string of bytes containing the image data, and other information such as bits per sample, with and height of…
fstab
  • 4,801
  • 8
  • 34
  • 66
0
votes
1 answer

PyGTK gtk.gdk.Pixbuf.copy_area erroneously copying alpha bits

Here is a picture illustrating the issue I am having: This picture was created with the following: cube.copy_area(0, 0, cube.get_width(), cube.get_height(), self.canvas, o2i[0], o2i[1]) where cube and canvas are of the type gtk.gdk.Pixbuf. o2i is…
user1276209
-1
votes
2 answers

Displaying images in a py2exe'd PyGTK program

I have written a GUI app in Python using PyGTK and want to distribute it as an executable, for which I'm using py2exe. When I run my program, I get the following warning GdkPixbuf-WARNING **: Cannot open pixbuf loader module file…
Mike Graham
  • 73,987
  • 14
  • 101
  • 130
-1
votes
1 answer

How to know when a Gdk.Pixbuf is finished loading

I am loading a Gdk.Pixbuf from bytes: _pixbuf = new Gdk.Pixbuf(bytes); Then, I'd like to read the _pixbuf data. But, it appears that the data is actually loading in the background because the data doesn't exist for a while. If I wait, all is…
Doug Blank
  • 2,031
  • 18
  • 36
1
2