Guest User

Untitled

a guest
May 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. doScalePixbuf size orientation mpixbuf = do
  2. when (isNothing mpixbuf) $
  3. logM "ManThisIsHard" WARNING "Got nothing pixbuf"
  4. traverse doIt mpixbuf
  5. where doIt pixbuf = do
  6. scaledPb <- scalePixbufToSize size orientation pixbuf
  7. width <- Gdk.pixbufGetWidth scaledPb
  8. height <- Gdk.pixbufGetHeight scaledPb
  9. logM "ManThisIsHard" DEBUG $
  10. printf "Setting pixbuf for image: pw: %s ph: %s size: %s"
  11. (show width) (show height) (show size)
  12. return scaledPb
Add Comment
Please, Sign In to add comment