Re: How To Draw Bitmaps From FreeType?

2006-12-23 Thread John Coppens
On Sat, 23 Dec 2006 10:30:59 -1000 Eric Mader <[EMAIL PROTECTED]> wrote: > I'm also thinking about creating a GdkPixbuf with a depth of 24 and > filling it by hand from the FreeType bitmap by copying the 8 bit pixel > value into all three components of the pixbuf. Will that work? Eric, Did you

Problem with GtkProgressBar and multi thread application

2006-12-23 Thread Tomasz Jankowski
Hello! This is simple code: #include gboolean pulse_it (gpointer data) { gtk_progress_bar_pulse (data); return TRUE; } gint thread_fun (gpointer data) { gint source_id = g_timeout_add (100, (GSourceFunc) pulse_it, data); g_usleep (500); g_source_remove (source_id);

How To Draw Bitmaps From FreeType?

2006-12-23 Thread Eric Mader
Hello, I'm trying to render anti aliased bitmaps (i.e. 8 bits per pixel) generated by FreeType. I tried to create a GdkPixmap from the pixels and drawing it to the window using gdk_draw_drawable(), but that fails because the depth of the src (8) and the depth of the window (24) are different.