Re: RGB image drawing
- From: Sascha Ziemann <szi aibon ping de>
- To: gtk-list redhat com
- Cc: Dave Swegen <dave recursive prestel co uk>
- Subject: Re: RGB image drawing
- Date: 15 Dec 1998 14:17:14 +0100
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]