Re: RGB image drawing



Dave Swegen <dave@recursive.prestel.co.uk> writes:

|         gdk_draw_rgb_image(gdkpixmap,
|                         widget->style->fg_gc[0], <- Not clear about this
|                         0,0,
|                         piccy->width, piccy->height,
|                         GDK_RGB_DITHER_NONE,
|                         piccy->Image,
|                         piccy->width);

I do it this way:


typedef struct _video Video;

struct _video
{
  int frame_cursor;
  GtkWidget *drawing_area;
};

  gdk_draw_gray_image (video->drawing_area->window,
                       video->drawing_area->style->white_gc,
                       0, 0, frame_cols, frame_rows, GDK_RGB_DITHER_NONE,
                       frames[video->frame_cursor], frame_cols);

-- 
The second clause "open source code of derivative works" has been the
most controversial (and, potentially the most successful) aspect of
CopyLeft licensing.                             -- Halloween Document



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]