diff options
author | Steve Chaplin <> | 2011-04-03 10:03:18 +0800 |
---|---|---|
committer | Steve Chaplin <> | 2011-04-03 10:03:18 +0800 |
commit | 4a41ab1ced69ec429a34fcb7b88999da06abf8b1 (patch) | |
tree | f73184431224fd668266de6c7a05f4b55f2d4041 /examples | |
parent | 247c9f62c71710b518faf9c3e5539c6caddcbbda (diff) |
Remove examples/cairo_snippets/data/romedalen.png and examples which use this
file.
Update wscript to exclude unwanted files from distribution archive.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cairo_snippets/data/.gitignore | 1 | ||||
-rw-r--r-- | examples/cairo_snippets/data/romedalen.png | bin | 80944 -> 0 bytes | |||
-rwxr-xr-x | examples/cairo_snippets/snippets/clip_image.py | 13 | ||||
-rwxr-xr-x | examples/cairo_snippets/snippets/image.py | 14 | ||||
-rwxr-xr-x | examples/cairo_snippets/snippets/imagepattern.py | 23 |
5 files changed, 0 insertions, 51 deletions
diff --git a/examples/cairo_snippets/data/.gitignore b/examples/cairo_snippets/data/.gitignore deleted file mode 100644 index 9622ba3..0000000 --- a/examples/cairo_snippets/data/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!romedalen.png diff --git a/examples/cairo_snippets/data/romedalen.png b/examples/cairo_snippets/data/romedalen.png Binary files differdeleted file mode 100644 index 0c41eb0..0000000 --- a/examples/cairo_snippets/data/romedalen.png +++ /dev/null diff --git a/examples/cairo_snippets/snippets/clip_image.py b/examples/cairo_snippets/snippets/clip_image.py deleted file mode 100755 index 39a84ab..0000000 --- a/examples/cairo_snippets/snippets/clip_image.py +++ /dev/null @@ -1,13 +0,0 @@ -snippet_normalize (cr, width, height) - -cr.arc (0.5, 0.5, 0.3, 0, 2*M_PI) -cr.clip () - -image = cairo.ImageSurface.create_from_png ("data/romedalen.png") -w = image.get_width() -h = image.get_height() - -cr.scale (1.0/w, 1.0/h) - -cr.set_source_surface (image, 0, 0) -cr.paint () diff --git a/examples/cairo_snippets/snippets/image.py b/examples/cairo_snippets/snippets/image.py deleted file mode 100755 index ccadc4f..0000000 --- a/examples/cairo_snippets/snippets/image.py +++ /dev/null @@ -1,14 +0,0 @@ -snippet_normalize (cr, width, height) - -image = cairo.ImageSurface.create_from_png ("data/romedalen.png") -w = image.get_width() -h = image.get_height() - -cr.translate (0.5, 0.5) -cr.rotate (45* M_PI/180) -cr.scale (1.0/w, 1.0/h) -cr.translate (-0.5*w, -0.5*h) - -cr.set_source_surface (image, 0, 0) -cr.paint () - diff --git a/examples/cairo_snippets/snippets/imagepattern.py b/examples/cairo_snippets/snippets/imagepattern.py deleted file mode 100755 index 5d07c07..0000000 --- a/examples/cairo_snippets/snippets/imagepattern.py +++ /dev/null @@ -1,23 +0,0 @@ -import math - -snippet_normalize (cr, width, height) - -image = cairo.ImageSurface.create_from_png ("data/romedalen.png") -w = image.get_width() -h = image.get_height() - -pattern = cairo.SurfacePattern (image) -pattern.set_extend (cairo.EXTEND_REPEAT) - -cr.translate (0.5, 0.5) -cr.rotate (M_PI / 4) -cr.scale (1 / math.sqrt (2), 1 / math.sqrt (2)) -cr.translate (- 0.5, - 0.5) - -matrix = cairo.Matrix(xx=w * 5, yy=h * 5) -pattern.set_matrix (matrix) - -cr.set_source (pattern) - -cr.rectangle (0, 0, 1.0, 1.0) -cr.fill () |