Questions tagged [gdkpixbuf]

93 questions
1
vote
1 answer

save current window as image using gtk#

How can I save the current window as an image file such as a png? I know I can get a gdkWindow from current windows. I can even get an image. From this image struct I can even query each pixel. But from what I understand what I really need is to…
frenchone
  • 1,547
  • 4
  • 19
  • 34
1
vote
1 answer

Python import of GdkPixBuf says "introspection typelib not found"

I have some imports: gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gdk, GdkPixBuf An error (maybe 2) is raised: WARNING **: Error retrieving accessibility bus address:…
doom
  • 3,276
  • 4
  • 30
  • 41
1
vote
0 answers

How do you draw a GdkPixbuf in python?

Ok, so I'm trying to overlay a picture of a printer on top of a image (blueprint of floorplan). I originally was looking at pixmaps, but had trouble finding anything about them in GTK 3.0 (found how to use them in pygtk, but not the same thing). …
TheEggSample
  • 333
  • 4
  • 5
  • 18
1
vote
1 answer

GTK+ Replace gdk_draw_pixbuf with Cairo

I'm working on a GtkDrawingArea which, in the expose event, is drawing a section of a pixbuf in a tiled manner. The tiling type varies - depending on the source image; it can be orthogonal, isometric or hexagonal. Drawing this with gdk_draw_pixmap…
Per Löwgren
  • 767
  • 9
  • 17
1
vote
1 answer

unable to load TIFF images using gdk_pixbuf_loader

I wait to load images from memory (jpegs and tiffs) into gdk_pixbuf_loader_write(). I have sample/test code that loads jpegs just fine but fails to display tiff images. The tiff images open fine with other viewers (eye of gnome etc) so the tiff is…
Ray
  • 21
  • 3
1
vote
1 answer

Re-Construct a png image from a GDK Pixbuf

I want to send an image Pixbuf over a socket but the received image is only in black and white and distorted. Here are the steps I'm using: 1) get pixels array of that Pixbuf 2) serialize the pixels array 3) Convert the serialized string to a…
Tarik Mokafih
  • 1,247
  • 7
  • 19
  • 38
1
vote
1 answer

How can I convert GOPixbuf strings to images

I have an XML file produced with Gnumeric that contains images, stored as GOPixbuf strings inside XML. They look like this: eXyA/4KEiP9xcnf/f3+E/3l5ff9xb3L/jo2Q/29wdP+ [truncated] For each string I have width and height, and a rowstride parameter,…
simone
  • 4,667
  • 4
  • 25
  • 47
1
vote
1 answer

Gtk3 loading PixbufAnimation inside DrawingArea?

For the purpose of mine gstreamer application I tought about simple loader before I give a handle of DrawingArea widget to sink element.The basic idea was to load an animated .gif inside Gtk.DrawingArea but I run on the problem with documentation.I…
1
vote
0 answers

GdkPixbuf - Saving pixel data to file from Python

I am trying to save some pixels to a file using GdkPixbuf from Python in Windows. I am making use of the excellent PyGI AIO (3.14.0) binaries. #!/usr/bin/env python # -*- coding: utf-8 -*- from gi.repository import Gtk, Gdk, GdkPixbuf w, h, n = 4,…
kloffy
  • 2,928
  • 2
  • 25
  • 34
1
vote
3 answers

GdkPixbuf returns "gi._glib.GError: Couldn't recognize the image file format"

I have a problem loading PNG images in Gtk3. I have broken image symbols in my ToolButtons and after some investigation it appears that it comes from GdkPixbuf not being able to read the PNG files. I have reproduced the problem with the python…
1
vote
1 answer

GTKMM :: Drawing multiple images using single Gdk::PixBuf in GTk::Drawing area

Hey All, I am trying to draw live images in Gtk::DrawingArea in the same way as they are shown in monitors at railway stations, airports, metro etc.. For current tesing purpose I have hardcoded my code. here it is Gtk::Drawing area…
user1583846
  • 83
  • 2
  • 6
1
vote
1 answer

Clutter actor content does not blend like it should

As ClutterTexture is now marked as deprecated, I followed the recommendation and replaced it with a ClutterActor that has it's content set to a pixbuf. from gi.repository import Clutter, GdkPixbuf, Cogl Clutter.init([]) stage =…
Vindolin
  • 827
  • 8
  • 12
1
vote
1 answer

How can I apply 3D-transformations to an image?

I am trying to (in code) take an image file and apply three dimensional transformations (think: perspective) to it. The application I'm working on is written in C#, and I've already looked at the MSDN info on skewing/rotating images. Unfortunately,…
1
vote
2 answers

Gdk::Pixbuf does not load images

I'm trying to load a *.jpg image into a Gdk:: Pixbuf, but it fails and keeps telling me: Error interpreting JPEG image file (Wrong JPEG library version: library is 62, caller expects 80) try{ Gdk::Pixbuf::create_from_file(".../Test.jpg"); } …
VoodooCode
  • 287
  • 2
  • 15
1
vote
1 answer

Clutter-vala how to load texture

i'm trying to load a folder icon as a texture. i have tried almost everything now and i can't get it to work for some reason i think this thread is just what i'm looking for but it's too advanced. i want it simple for now. and for some reason i…
user69969
  • 341
  • 2
  • 10