[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #44933] Cairo backend: NSGraphicsContext's imageInterpolation setti
From: |
Josh Freeman |
Subject: |
[bug #44933] Cairo backend: NSGraphicsContext's imageInterpolation setting is ignored |
Date: |
Mon, 27 Apr 2015 04:32:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0 |
URL:
<http://savannah.gnu.org/bugs/?44933>
Summary: Cairo backend: NSGraphicsContext's
imageInterpolation setting is ignored
Project: GNUstep
Submitted by: tedge
Submitted on: Mon 27 Apr 2015 04:32:32 AM GMT
Category: Backend
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Setup: VirtualBox 4.3 + Ubuntu 14.04 guest, Clang, GNUstep from current SVN
trunk
Scaled images drawn with the Cairo backend are always interpolated
(blurred), even when interpolation is disabled in the current
NSGraphicsContext (imageInterpolation set to NSImageInterpolationNone).
This is because the CairoGState class hard-codes all calls to
cairo_pattern_set_filter() (Cairo function for setting interpolation type)
with the interpolation value, CAIRO_FILTER_BILINEAR.
The attached patch updates CairoGState's cairo_pattern_set_filter() calls
to use an appropriate value based on the graphicsContext's imageInterpolation
setting. Test program is also attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 27 Apr 2015 04:32:32 AM GMT Name:
CairoGState_ImageInterpolation.patch Size: 2kB By: tedge
<http://savannah.gnu.org/bugs/download.php?file_id=33799>
-------------------------------------------------------
Date: Mon 27 Apr 2015 04:32:32 AM GMT Name: TestImageInterpolation.m Size:
7kB By: tedge
<http://savannah.gnu.org/bugs/download.php?file_id=33800>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44933>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #44933] Cairo backend: NSGraphicsContext's imageInterpolation setting is ignored,
Josh Freeman <=