[cairo-commit] cairo-demo/cairo_snippets clipping.cairo, NONE,
1.1 image_clipping.cairo, NONE, 1.1 ChangeLog, 1.6,
1.7 xxx_clipping.cairo, 1.1, NONE xxx_image_clipping.cairo,
1.1, NONE
OEyvind Kolaas
commit at pdx.freedesktop.org
Tue May 18 12:57:19 PDT 2004
- Previous message: [cairo-commit] cairo-demo/cairo_snippets cairo_snippets_ps.c, NONE,
1.1
- Next message: [cairo-commit]
cairo-demo/cairo_snippets cairo_snippets_html.c, NONE,
1.1 footer.html, NONE, 1.1 header.html, NONE, 1.1 ChangeLog,
1.7, 1.8 Makefile, 1.5, 1.6 README, 1.1,
1.2 cairo_snippets_png.c, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: pippin
Update of /cvs/cairo/cairo-demo/cairo_snippets
In directory pdx:/tmp/cvs-serv14279
Modified Files:
ChangeLog
Added Files:
clipping.cairo image_clipping.cairo
Removed Files:
xxx_clipping.cairo xxx_image_clipping.cairo
Log Message:
Awaiting commit of the changes which lead to this ;)
--- NEW FILE: clipping.cairo ---
cairo_arc (cr, 0.5, 0.5, 0.3, 0, 2 * M_PI);
cairo_clip (cr);
cairo_new_path (cr);
cairo_rectangle (cr, 0, 0, 1, 1);
cairo_fill (cr);
cairo_set_rgb_color (cr, 0, 1, 0);
cairo_move_to (cr, 0, 0);
cairo_line_to (cr, 1, 1);
cairo_move_to (cr, 1, 0);
cairo_line_to (cr, 0, 1);
cairo_stroke (cr);
--- NEW FILE: image_clipping.cairo ---
int w,h,stride;
char *buffer;
cairo_surface_t *image;
buffer = read_png_argb32 (
"data/romedalen.png", &w,&h, &stride);
image = cairo_surface_create_for_image (
buffer, CAIRO_FORMAT_ARGB32, w,h, stride);
cairo_arc (cr, 0.5, 0.5, 0.3, 0, 2*M_PI);
cairo_clip (cr);
cairo_new_path (cr);
cairo_scale (cr, 1.0/w, 1.0/h);
cairo_move_to (cr, 0, 0);
cairo_show_surface (cr, image, w, h);
cairo_surface_destroy (image);
free (buffer);
Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-demo/cairo_snippets/ChangeLog,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** a/ChangeLog 18 May 2004 15:21:30 -0000 1.6
--- b/ChangeLog 18 May 2004 19:57:17 -0000 1.7
***************
*** 1,3 ****
--- 1,9 ----
2004-05-18 OEyvind Kolaas <pippin at freedesktop.org>
+ * xxx_clipping.cairo xxx_image_clipping.cairo: removed
+ * clipping.cairo image_clipping.cairo: added
+
+ Awaiting commit of the changes which lead to this ;)
+
+ 2004-05-18 OEyvind Kolaas <pippin at freedesktop.org>
* cairo_snippets_ps.c: added postscript with basis in the pdf version
--- xxx_clipping.cairo DELETED ---
--- xxx_image_clipping.cairo DELETED ---
- Previous message: [cairo-commit] cairo-demo/cairo_snippets cairo_snippets_ps.c, NONE,
1.1
- Next message: [cairo-commit]
cairo-demo/cairo_snippets cairo_snippets_html.c, NONE,
1.1 footer.html, NONE, 1.1 header.html, NONE, 1.1 ChangeLog,
1.7, 1.8 Makefile, 1.5, 1.6 README, 1.1,
1.2 cairo_snippets_png.c, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list