Skip to content

Instantly share code, notes, and snippets.

@dyoo
Created May 28, 2013 22:44
Show Gist options
  • Save dyoo/5666727 to your computer and use it in GitHub Desktop.
Save dyoo/5666727 to your computer and use it in GitHub Desktop.
bitmap image scaling with flomap operations
#lang racket
(require net/url
racket/gui/base
images/flomap)
(define ip (get-pure-port
(string->url "http://racket-lang.org/logo.png")))
(define bm (make-object bitmap% ip))
(define big-bm
(flomap->bitmap (flomap-scale (bitmap->flomap bm) 2 2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment