Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getPixbufSizeString :: MonadIO m => Maybe Gdk.Pixbuf -> m String
- getPixbufSizeString =
- maybe (return "Nothing") $ \pixbuf -> do
- width <- Gdk.pixbufGetWidth pixbuf
- height <- Gdk.pixbufGetWidth pixbuf
- return $ printf "Pixbuf - w: %s h: %s" (show width) (show height)
Add Comment
Please, Sign In to add comment