diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-11-12 14:28:10 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-11-12 14:28:10 +0000 |
| commit | 410223aec5614206e8fb485e181791bd3abd80f7 (patch) | |
| tree | 89122466e70f7144567252c1b6ff5721d512df45 /src/display/drawing-context.h | |
| parent | Clean up some tool related things. (diff) | |
| download | inkscape-410223aec5614206e8fb485e181791bd3abd80f7.tar.gz inkscape-410223aec5614206e8fb485e181791bd3abd80f7.zip | |
Partial fix for blocker bug 1163449: "Imported bitmap appear blurry when zoomed in"
Setting style to include "image-rendering:optimizeSpeed" will cause nearest
neighbor filter to be used in downscaling.
(bzr r12796)
Diffstat (limited to 'src/display/drawing-context.h')
| -rw-r--r-- | src/display/drawing-context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/display/drawing-context.h b/src/display/drawing-context.h index d4f0dbfc3..35be9a86b 100644 --- a/src/display/drawing-context.h +++ b/src/display/drawing-context.h @@ -111,6 +111,10 @@ public: void setSource(DrawingSurface *s); void setSourceCheckerboard(); + void patternSetFilter(cairo_filter_t filter) { + cairo_pattern_set_filter(cairo_get_source(_ct), filter); + } + Geom::Rect targetLogicalBounds() const; cairo_t *raw() { return _ct; } |
