Questions tagged [gdkpixbuf]
93 questions
0
votes
1 answer
Image created using Gdk::Pixbuf is garbled upon display
I'm trying to display an image in a window.
I'm using C++ with the Gtkmm and Gdkmm libraries.
I read the image from disk and create a Gdk::Pixbuf
I then display it in a widget. Here's what I see on screen:
The actual image is supposed to look…
0
votes
0 answers
How to mask/unmask some of the areas of GdkPixbuf from displaying?
I have a GdkPixbuf data structure loaded from a svg file (Environment - Python3.7; Linux). Depending upon the area of different object id in svg, I want to mask/unmask the GdkPixBuf Image.
I have searched the python binding for Gtk, Gdk and…

MS_
- 741
- 1
- 6
- 10
0
votes
1 answer
How to open gimp from a gtk program and pass GdkPixbuf?
I have a GdkPixbuf object representing an image, I display this image in my program.
Currently the user can save this image and open gimp to load it. Is it possible to open gimp directly from the c program and pass the GdkPixbuf object to gimp?

asalamon74
- 6,120
- 9
- 46
- 60
0
votes
1 answer
GDK: How to refresh transparent background?
In a purely GDK 3.10 (no GTK) project how do I refresh/clear/redraw a transparent background of a GdkWindow?
This test.c sets the background correctly on initialization (gdk_window_show()) and when I iconify+deiconify the window but not on resizing…

MattSchmatt
- 850
- 8
- 18
0
votes
2 answers
undefined reference to symbol 'gdk_pixbuf_major_version'
I am unable to link my application:
I am getting 'undefined reference to symbol 'gdk_pixbuf_major_version'
I am a WIN32 programmer and this is my first foray into Linux.
My target device is Ubuntu xenial, GTK+ 3.18.9.
From gdk_pixbuf_features.h the…

RSullivan
- 65
- 7
0
votes
1 answer
Setting a ClutterImage using a GdkPixbuf
I'm trying to do what I would have thought would be trivial, but no matter what I try with a ClutterImage I get the error message Unable to load image data. The language I'm using is Vala, so there's a possibility that the Vapi file for Clutter is…

geoffjay
- 413
- 4
- 13
0
votes
1 answer
Secondary expansion and two makefiles
I have a command with two dollar signs (secondary expansion)
$(PREFIX)/bin/gdk-pixbuf-query-loaders > $(shell $(PREFIX)/bin/gdk-pixbuf-query-loaders | awk -F "=" '/LoaderDir/ {print $$2}' | tr -d ' ')/../loaders.cache
The shell command should…

B. A. Sylla
- 419
- 3
- 13
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
2 answers
Loading the thumbnail inside an image file into a pixbuf
Photos from cameras contain a thumbnail and the photo itself. The thumbnail is created and used by the cameras to browse quickly without loading the full image.
I would like to mimic such behavior with C and Gtk+ 2.
Tools such as exiftool or dcraw…

Reza
- 388
- 2
- 14
0
votes
1 answer
Creating a GdkPixbuf from raw Bitmap data
I am trying to port a Clean graphics library (specifically, ObjectIO) to Linux with GDK. The library consists of a non-OS-specific part, which I don't want to touch because of compatibility issues, and an OS-specific part which I can touch.
One of…
user1544337
0
votes
1 answer
Gtk2, Gdk2 memory usage gets bigger and bigger every frame update
I have been trying to make a program that takses the active window, and displays it in its window.
I have successfully exceeded my goal. But the problem is, it uses a lot of ram, and it keeps using more every frame update(20fps).
Here is the source…

marxt12372
- 5
- 2
0
votes
1 answer
gstreamer and gdkpixbuf sink eats huge amounts of memory - possible leak
I have a simple program which reads GdkPixbufs from a video stream frame by frame.
The problem is that the memory usage grows at about 300-400MB per second! That way my 8GB RAM are used up in no time.
Valgrind / Cachegrind didn't point me anywhere…

user2590834
- 21
- 3
0
votes
1 answer
The function "GdkPixbuf.from_file" doesn't work well
I use Lablgtk and all functions except the function "GdkPixbuf.from_file" work well.
I can compile the code including the function "GdkPixbuf.from_file", but I can't execute it.
When I type the command "./programname" to execute it, I get an error:…

mmsss
- 263
- 1
- 2
- 7
0
votes
1 answer
pixbuf.subpixbuf alternative in Gtk3
I have a GTK+ 2 application I am porting to GTK+ 3.
I have a function to cut out some part of an image -
scaled_pb = pb.scale_simple(w,h, GdkPixbuf.InterpType.BILINEAR)
scaled_pb = scaled_pb.subpixbuf(abs((width-w)/2),abs((height-h)/2), width,…

svineet
- 1,859
- 1
- 17
- 28
0
votes
1 answer
GTK+ Draw bitmap as mask using foreground colour
I've made a custom font as a bitmap stored in a XPM-image, and want to be able to draw it with a changeable foreground colour to a GdkDrawable-object. Basically, what I want is to use an image as a font and be able to change the colour. Any…

Per Löwgren
- 767
- 9
- 17