Permalink
Browse files

Offset img by half pixel to counteract the half-pixel shape offset, s…

…o it is sharp
  • Loading branch information...
1 parent b392f43 commit d6b590cb02b66fff2e8b7678c7d7876f0369bc72 Jason Johnston committed Nov 3, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 sources/ImgRenderer.js
View
@@ -52,6 +52,7 @@ PIE.ImgRenderer = PIE.RendererBase.newRenderer( {
shape.stroked = false;
fill.type = 'frame';
fill.src = src;
+ fill.position = (0.5 / w) + ',' + (0.5 / h);
shape.coordsize = w * 2 + ',' + h * 2;
shape.coordorigin = '1,1';
shape.path = this.getBoxPath( borderWidths ? {

0 comments on commit d6b590c

Please sign in to comment.