WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
Bug 96581
[Cairo] canvas drawImage with non integer parameters result in transparent pixels.
https://bugs.webkit.org/show_bug.cgi?id=96581
Summary
[Cairo] canvas drawImage with non integer parameters result in transparent pi...
arno.
Reported
2012-09-12 17:26:41 PDT
Hi, when drawing an image on a canvas with non integer dx or dy parameters, we can observe that some pixels on the border on the drawn image have become transparent. For example, when drawing a black image on a red canvas with a white background, we can observe, a white border around the image.
Attachments
cairo minimal program that reproduce the problematic behaviour
(2.37 KB, text/x-csrc)
2012-09-12 17:32 PDT
,
arno.
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
arno.
Comment 1
2012-09-12 17:31:45 PDT
Here is a cairo program which kind of reproduce the behaviour in webkit cairo backend. An image is drawn on another. If the translation has non integer numbers, some pixel become semi transparents. I don't known if that's a bug in cairo or intended behaviour
arno.
Comment 2
2012-09-12 17:32:51 PDT
Created
attachment 163743
[details]
cairo minimal program that reproduce the problematic behaviour
arno.
Comment 3
2012-09-13 10:53:49 PDT
The behaviour seems to have change in cairo 1.11.4 (
http://cgit.freedesktop.org/cairo/commit/?id=a80bf9ed43ebb510027f95f623a012c55f7566b3
) The example url does not have transparent pixels with recent cairo
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug