GdkPixmap as X11 Pixmap?

2011-06-07 Thread Ingo Brückl
I'm trying to get an X11 Pixmap from a GDK rendering function as follows (my_pixbuf has been created by gdk-pixbuf-csource): GdkPixmap *gdkIcon; GdkBitmap *gdkIconMask; Pixmap Icon; Pixmap IconMask; gtk_init(&argc, &argv); gdk_pixbuf_render_pixmap_and_mask

GdkPixmap gdk_pixmap_new transparency

2007-09-13 Thread Keith Feesh
Hello, I'm new to the mailing list, but the reason I signed up was because I've been trying to find out how to recreate the 'transparency' in a GdkPixmap like when it was first created. For example, this code is purely pseudo code but should hopefully make it clear wh

Maxixmal size of GdkPixmap

2007-08-29 Thread Adam Klobukowski
Hello How can I check the maximal width/height of GdkPixmap? -- Semper Fidelis Adam Klobukowski [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Difference between GdkPixbuf and GdkPixmap

2007-08-23 Thread Gianni Moschini
2007/8/24, Mike Melanson <[EMAIL PROTECTED]>: > What is this program intended to do? Something that has to update the > frame often, like a video player? Or an image viewing app where things > don't change often. > It's a card game. It's not always refreshing, but if the three computer handled pla

Re: Difference between GdkPixbuf and GdkPixmap

2007-08-23 Thread Mike Melanson
Gianni Moschini wrote: > Basicly I'm developing a GtkDrawingArea based application. As far as I > understand, a GdkPixbuf is stored on the client, and a Pixmap on the > server. > > Of course there are many more differences, but technically that's all > I need to know. What is this program intende

Difference between GdkPixbuf and GdkPixmap

2007-08-23 Thread Gianni Moschini
ere a way to transform a pixbuf to a pixmap without losing the alpha channel? gdk_pixbuf_render_pixmap_and_mask returns a GdkPixmap and a GdkBitmap; the mask; from a GdkPixbuf. I don't need any pixbuf at all, but that's the only convenient way I found to load any picture forma

RE: getting gdkpixmap from pixbuf

2007-01-23 Thread Kumar Siddharth
PROTECTED] Behalf Of Pritesh Kumar Sent: Tuesday, January 23, 2007 8:00 PM To: gtk-app-devel-list@gnome.org Subject: getting gdkpixmap from pixbuf how to get a gdkpixmap and corresponding mask from a gdkpixbuf. ___ gtk-app-devel-list mailing list gtk-app-

getting gdkpixmap from pixbuf

2007-01-23 Thread Pritesh Kumar
how to get a gdkpixmap and corresponding mask from a gdkpixbuf. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Image missdisplayed using GdkPixmap

2006-09-24 Thread Sebastien Roy
On 9/24/06, Jim George <[EMAIL PROTECTED]> wrote: > > On 9/24/06, Sebastien Roy <[EMAIL PROTECTED]> wrote: > > Image is not well written ... > > lines seems to be mixed ... Alignement is incorrect .. > > I suppose this is due to a wrong usage of dithering/depth parameters ... > > data is pointing t

Re: Image missdisplayed using GdkPixmap

2006-09-24 Thread Jim George
On 9/24/06, Sebastien Roy <[EMAIL PROTECTED]> wrote: > Image is not well written ... > lines seems to be mixed ... Alignement is incorrect .. > I suppose this is due to a wrong usage of dithering/depth parameters ... > data is pointing to a rgb buffer ... > the same call was working fine when writi

Image missdisplayed using GdkPixmap

2006-09-24 Thread Sebastien Roy
Image is not well written ... lines seems to be mixed ... Alignement is incorrect .. I suppose this is due to a wrong usage of dithering/depth parameters ... data is pointing to a rgb buffer ... the same call was working fine when writing directly to a windows instead of a newly created pixmap. Ima

Re: How to convert X Pixmap into GdkPixmap?

2006-02-27 Thread Tristan Van Berkom
Peter Zhelezniakov wrote: Hello Gtk gurus, I have an X Display and an X Pixmap associated with that display, both provided by a third-party library. I'd like to use the Pixmap in a GTK program by wrapping it into a GdkPixmap structure. More specifically, i want to use GTK's style

How to convert X Pixmap into GdkPixmap?

2006-02-27 Thread Peter Zhelezniakov
Hello Gtk gurus, I have an X Display and an X Pixmap associated with that display, both provided by a third-party library. I'd like to use the Pixmap in a GTK program by wrapping it into a GdkPixmap structure. More specifically, i want to use GTK's style functions (like gtk_paint_box)

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread Michal Porzuczek
On 8/9/05, Boncek, John <[EMAIL PROTECTED]> wrote: > Thanks to those who replied. gdk_draw_drawable is working. I know you > have to unref certain kinds of objects. Do you have to unref a GdkPixmap > when finished with it? Yes you should

RE: extracting a portion of a GdkPixmap

2005-08-09 Thread Boncek, John
Thanks to those who replied. gdk_draw_drawable is working. I know you have to unref certain kinds of objects. Do you have to unref a GdkPixmap when finished with it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian J. Tarricone Sent: Tuesday

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boncek, John wrote: > I have a GdkPixmap. I need to programmatically extract a new GdkPixmap > from this image based on x- and y-coordinates, plus width and height. The > x, y, width, and height parameters will vary too much at runtime

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread John Cupitt
On 8/9/05, Boncek, John <[EMAIL PROTECTED]> wrote: > I have a GdkPixmap. I need to programmatically extract a new GdkPixmap > from this image based on x- and y-coordinates, plus width and height. The > x, y, width, and height parameters will vary too much at runtime to store &

extracting a portion of a GdkPixmap

2005-08-09 Thread Boncek, John
I have a GdkPixmap. I need to programmatically extract a new GdkPixmap from this image based on x- and y-coordinates, plus width and height. The x, y, width, and height parameters will vary too much at runtime to store all the copies needed. Conceptually this seems simple. But from among the

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
detailed leak analysis, rerun with: --leak-check=yes ==6451== For counts of detected errors, rerun with: -v Segmentation fault and the source file once more is: #include #include /* Backing pixmap for drawing area */ static GdkPixmap *pixmap = NULL; static void save_image(GtkWidget* widget, g

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
On Mon, Jun 06, 2005 at 04:21:33PM +0100, y g wrote: > > ok i see what you mean... but the following still seg faults... no > warnings this time... > > static void > save_image(GtkWidget* widget, gpointer user_data) > { > GdkPixbuf* pixbuf; > > g_print("Saving image...\n"); > //gdk_pixbuf_

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
On 6/6/05, David Necas (Yeti) <[EMAIL PROTECTED]> wrote: > On Mon, Jun 06, 2005 at 03:52:32PM +0100, y g wrote: > > I already did as I realised that neither is a child of the other as > > you say. But I am still get seg fault with the following: > > > > static void > > save_image(GtkWidget* widget,

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
On Mon, Jun 06, 2005 at 03:52:32PM +0100, y g wrote: > I already did as I realised that neither is a child of the other as > you say. But I am still get seg fault with the following: > > static void > save_image(GtkWidget* widget, gpointer user_data) > { > GdkPixbuf* pixbuf; > > g_print("Saving

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
uld use the following which however gives me a segmentation fault > > in my program. > > > > static GdkPixmap *pixmap = NULL; > > gdk_pixbuf_save(GDK_PIXBUF(pixmap), "temp.bmp", "bmp", NULL); > > > > I know that pixmap is of type of GdkPixmap a

Re: GdkPixmap and GdkPixbuf

2005-06-06 Thread David Necas (Yeti)
> > static GdkPixmap *pixmap = NULL; > gdk_pixbuf_save(GDK_PIXBUF(pixmap), "temp.bmp", "bmp", NULL); > > I know that pixmap is of type of GdkPixmap and that arg 1 of the > function must be a GDK_PIXBUF and hence the cast. But as I said I am > getting a

GdkPixmap and GdkPixbuf

2005-06-06 Thread y g
Hi, after following the scribble example on the Gtk tutorial I try to save the image produced. Looking on the documentation of GdkPixbuf I found I could use the following which however gives me a segmentation fault in my program. static GdkPixmap *pixmap = NULL; gdk_pixbuf_save(GDK_PIXBUF(pixmap

RE: How to deal with a possible Memory Leak when using GdkPixMap

2005-06-02 Thread Freddie Unpenstein
> I have written a program pretty much by re-adjusting the scribble > example from the GTK Tutorial, instead of creating my own PixMap in > the configure_event I called the following function which creates a > pixmap from file: >pixbuf = gdk_pixbuf_new_from_file(filename,NULL); There's y

How to deal with a possible Memory Leak when using GdkPixMap

2005-06-02 Thread Michal Porzuczek
Hi, I have written a program pretty much by re-adjusting the scribble example from the GTK Tutorial, instead of creating my own PixMap in the configure_event I called the following function which creates a pixmap from file: GdkPixmap* gdk_pixmap_new_from_file( const char *filename

Re: GdkPixmap

2005-05-19 Thread Jean Bréfort
Le jeudi 19 mai 2005 Ã 09:05 +0100, abhi rocks a Ãcrit : > hi > > I have a pixbuf image from which i derive a GdkPixmap > say pix. > > > for(i=0;i<5;i++) { > GdkPixmap *temp_pixmap = g_object_ref(G_OBJECT(pix)); > gdk_draw_rectangle(...); > ... > ... &

Re: GdkPixmap

2005-05-19 Thread Olexiy Avramchenko
abhi rocks wrote: [...] Isnt g_object_ref suppose to create a completely new image or does always point to the same image. Maybe thats why the image keeps updating itself. Yes, g_object_ref just increases the reference counter of the object, it doesn't create a new object. Olexiy

GdkPixmap

2005-05-19 Thread abhi rocks
hi I have a pixbuf image from which i derive a GdkPixmap say pix. for(i=0;i<5;i++) { GdkPixmap *temp_pixmap = g_object_ref(G_OBJECT(pix)); gdk_draw_rectangle(...); ... ... g_object_unref(G_OBJECT(temp_pixmap)); } As the pixmaps form the images are always updated rather than the original

Re: GdkPixmap to Bitmap

2005-05-09 Thread Antonio Gomes
> We are working on gtk+2.0/gnome libraries. > We hv created a GdkPixmap object which is > displayed in > the window. > Now, I need to convert the pixmap to a bitmap > and > store it in a file as .bmp . > Can someone help in converting it and storin

Drawing a GtkButton on a GdkPixmap on a GtkDrawingArea

2005-05-07 Thread Ian Hummel
Hello all, I'm having a really difficult time doing something I feel ought to be rather easy. I'd like to draw arbitrary widgets surrounded by a colored border. I decided the best way to do this would be to layout the widgets normally inside of a container (e.g. a VBox) then plac

GdkPixmap to Bitmap

2005-05-04 Thread Dina
Hi, We are working on gtk+2.0/gnome libraries. We hv created a GdkPixmap object which is displayed in the window. Now, I need to convert the pixmap to a bitmap and store it in a file as .bmp . Can someone help in converting it and storing it as a file.? Thanks

Re: GdkPixmap

2005-03-16 Thread Tristan Van Berkom
[ A b h i s h e k ] wrote: Hi I needed to know how to copy an image already in GtkImage or GdkPixbuf format to a GdkPixmap format. First create a pixmap of the correct dimentions: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Bitmaps-and-Pixmaps.html#gdk-pixmap-new Then draw pixbuf to it: http

GdkPixmap

2005-03-15 Thread [ A b h i s h e k ]
Hi I needed to know how to copy an image already in GtkImage or GdkPixbuf format to a GdkPixmap format. Thank You Abhishek Samuel _ Screensavers for every mood! http://www.msn.co.in/Download/screensaver/ Jazz up your screen