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
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
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
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
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
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
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-
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
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
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 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
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
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)
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
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
-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
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
&
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
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
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_
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,
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
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
>
> 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
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
> 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
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
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(...);
> ...
> ...
&
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
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
> 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
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
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
[ 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
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
35 matches
Mail list logo