gtk_pixbuf_save and to jpeg with resolution?

2010-12-15 Thread Tim Corio
I am saving a jpeg image from a GdkPixbuf using: gdk_pixbuf_save (pxb, inFile, $gerror, "quality", "100", NULL); Can I specify a resolution? I've tried the parameter names "dpi", "resolution", and "Resolution", but GDK dumps the warning: "(imagemask:21053): GdkPixbuf-WARNING **: Unrecognized para

GTK Background Masking

2010-12-07 Thread Tim Corio
How can I mask out the background in a GdkPixbuf? In my application I have loaded an image of a coin and have calculated the location (X, Y, Radius) of the coin. I want to draw a background color everywhere outside of the circle. Is there a way to draw a "filled arc" that is filled on the outsid

GTK Logging

2010-12-05 Thread Tim Corio
I'm using g_debug(...) in my application. Is there a way to turn off all debug messages? Thanks, Tim ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GTK and color names

2010-12-04 Thread Tim Corio
Does GTK support a standard mapping from color names to RGB values? If not, is there a standard that's commonly followd? I'm creating an application where the user can enter a color by name. For example the name White will be the value #FF and Black will be #00. I thought GTK might suppo

Re: Good view on windows

2010-05-25 Thread Tim Corio
I distribute my application using Inno Setup to create an installation executable. That executable delivers the GTK libraries that the application needs. The application is compiled on a Windows machine. All GTK related code works fine in both Linux and Windows, but there are a few other areas (n

Draggable Targets

2010-01-13 Thread Tim Corio
I have another newbie question. I'm grateful that this list has been very indulgent of my recent questions. I want to let the user place a target (either a cross-hair or a circle) on an image and then be able to drag it to a new location. This seems like common functionality that GTK+ might dire

Forcing GtkScrolledWindow to sroll

2010-01-11 Thread Tim Corio
I couldn't find this in the archives, but I assume it's a common thing. How do I force a GtkScrolledWindow to scroll? Using the C API, I have a drawing area widget that I put into a scrolled window. I can scroll the image as expected by dragging the scrollbars. Now, I want to first, force the vi