Questions tagged [gdkpixbuf]

93 questions
1
vote
0 answers

/bin/sh: 1: gdk-pixbuf-config: not found

I am trying to compile a C/C++ program which is based on gdk-pixbuf, during compilation i get error "/bin/sh: 1: gdk-pixbuf-config: not found" I got below packages currently, kindly guide, what i am missing? I am using Ubuntu 12.04, 32 bit dpkg -l |…
Saqlain
  • 17,490
  • 4
  • 27
  • 33
1
vote
1 answer

Create a gtk.gdk.Pixbuf from binary data

I am struggling to get binary data into a gtk.gdk.pixbuf. This should illuminate my problem: file = open("image.jpg", "rb") //Ultimately this is going to come from a BLOB binary = f.read() //I created a pixbuf directly from the jpg //and took the…
jsj
  • 9,019
  • 17
  • 58
  • 103
1
vote
2 answers

Convert GIcon into GdkPixbuf

I'm using the GAppInfo/GDesktopAppInfo. GIcon *icon = gtk_app_info_get_icon (G_APP_INFO(appinfo)); Now I need to put it on a GtkIconView but I found that there is no way to create a GdkPixbuf from GIcon. Anyone knows this? Thanks very much! EDIT 1:…
ekd123
  • 525
  • 7
  • 19
1
vote
1 answer

Merging gtk subpixbufs

I'm presently playing with gtk.pixbuf in python. In the API, the subpixbuf function is described as returning a pixbuf that shares data with the original pixbuf : The subpixbuf() method creates a new gtk.gdk.Pixbuf that represents a sub-region of…
Jacques Gaudin
  • 15,779
  • 10
  • 54
  • 75
1
vote
1 answer

GdkPixbuf.PixbufDestroyNotify - NotImplementedError - python gtk3

I am trying to use GdkPixbuf.Pixbuf.new_from_data() as shown in gtk 2.x and I am passing 7 arguments. But it gives me an error that I need to pass 9 arguments. What I am doing now was working for gtk2.x . So I figured out the other 2 arguments that…
Froyo
  • 17,947
  • 8
  • 45
  • 73
0
votes
2 answers

How to resize gtk.gdk.Pixmap

I am created an instance of gtk.gdk.Pixmap, and painted on it something. For example: pixmap = gtk.gdk.Pixmap(widget.window,100,800) pixmap.draw_rectangle(gc, True, 0, 0, 100, 800) pixmap.draw_line(gc, 0, 0,100, 800) How can I to resize the Pixmap?…
Habibutsu
  • 592
  • 1
  • 8
  • 20
0
votes
0 answers

Get current cursor type with GDK

There is a function gdk_cursor_get_cursor_type(GdkCursor* cursor) in a library GDK. How to get this current cursor type? Getting a current mouse device is quite simple: GdkSeat* seat =…
Ragdoll Car
  • 141
  • 6
0
votes
1 answer

Error installing gdk-pixbuf for Python on WIndows 10

I have tried repeated attempts at installing the library gdk-pixbuf for Python 3.8/3.9 using conda, on a Windows 10 machine, and failed. Any help with fixing this is appreciated. I get the following error messages and prompts every…
Kadri
  • 31
  • 8
0
votes
1 answer

In coding a gdk_pixbuf_module, getting undefined reference to `gdk_pixbuf_webp_anim_get_type' that is handled(?) by gdk macros

So I am working on my first gdk_pixbuf_module. Adding animation to the webp module. Despite trying numerous variations in the header file and c file, I keep getting these link errors that I believe are related to the gdk_pixbuf macros. My guess is I…
alangh
  • 63
  • 6
0
votes
0 answers

Find Dominant color of an Image in C

I have an image in GdkPixbuf format which is to be drawn on a cairo surface. How to get the most dominant color in the image which could be in svg or png format ?
0
votes
1 answer

Undefined Reference to gdk_pixbuf_save & gdk_pixbuf_new_from_data

I have the following code it is a modification of code found here. In conjunction with this tutorial here. static void * snapshot_function(void *userdata){ CustomData *data = (CustomData *) userdata; gint width, height; GstSample…
Bowman
  • 27
  • 1
  • 3
0
votes
1 answer

How to use GdkPixbuf with wxpython?

Is it possible to convert it into bitmap or icon? I'd like to avoid saving it in file and read it with wx.Bitmap, for example.
xliiv
  • 5,399
  • 5
  • 29
  • 35
0
votes
1 answer

Rust Gtk set GtkImage from pixbuf using glade file

I'm trying to load an image from a scaled pixbuf to an existing GtkImage widget from Glade with Rust. I've read all the Gtk-rs documentations regarding this topic, and it should work based on that. However there is always a problem when trying to…
swanux
  • 67
  • 7
0
votes
0 answers

Draw on GdkPixbuf without cairo in python gtk 3?

How do I draw on a GdkPixbuf object without using cairo? There are quite a few samples in gtk 2 that do this by obtaining a Pixmap and draw on it. However, I can seem to find any function that return a Pixmap in gtk 3. For example…
Chu Bun
  • 513
  • 1
  • 5
  • 17
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