ImageSize: Fixed implementation of sizeInPoints.
This commit is contained in:
parent
b4e2d69cda
commit
9ce3e2bf85
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ sizeInPixels :: ImageSize -> (Integer, Integer)
|
|||
sizeInPixels s = (pxX s, pxY s)
|
||||
|
||||
sizeInPoints :: ImageSize -> (Integer, Integer)
|
||||
sizeInPoints s = (pxX s `div` dpiX s * 72, pxY s `div` dpiY s * 72)
|
||||
sizeInPoints s = (pxX s * 72 `div` dpiX s, pxY s * 72 `div` dpiY s)
|
||||
|
||||
pngSize :: ByteString -> Maybe ImageSize
|
||||
pngSize img = do
|
||||
|
|
Loading…
Add table
Reference in a new issue