Commit Graph

19 Commits

Author SHA1 Message Date
Matthew Flatt
d1cd4621de racket/draw: add make-dc' convenience method to bitmap%' 2012-09-14 15:58:47 -06:00
Matthew Flatt
2bdcdbb197 racket/draw, racket/gui: modernize contracts, mostly in documentation
Use `or/c' instead of `one-of/c', `#f' instead of `false/c'.
2012-04-06 18:51:10 -06:00
Matthew Flatt
4f197f4ba9 racket/draw: add get-handle' to bitmap%'; add `make-handle-brush'
The `get-handle' method provides the underlying Cairo surface for
a bitmap, while the unsafe `make-handle-brush' function supports the
use of a Cairo surface as a `brush%'.

Also, add `racket/draw/unsafe/cairo-lib', which simplifies access
Cairo from external libraries. Documenting `racket/draw/unsafe/cairo'
might be better, but that's a lot more work.
2012-03-27 18:14:26 -06:00
Matthew Flatt
eb032c2fef improvements to the bitmap docs 2012-02-23 07:12:22 -06:00
Robby Findler
1945ff2709 add make-platform-bitmap
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)

closes PR 12554
2012-02-21 16:19:45 -06:00
Matthew Flatt
49802b7ba1 doc correction
Closes PR 12171
2011-11-27 11:14:58 -07:00
Matthew Flatt
fc5fc02e5e doc `has-alpha-channel?' method 2011-08-22 07:58:04 -06:00
Asumu Takikawa
2fdc56db3a Use real contract in bitmap% docs 2011-07-13 15:35:38 -04:00
Matthew Flatt
4905d344dd slideshow/pict: add `rotate'
which requires two new fields in the `child' struct to support
 `lt-find', etc., when child picts are rotated
2011-07-04 16:26:09 -06:00
Eli Barzilay
ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Matthew Flatt
b6445880e2 add pre-multiplied mode for `{get,set}-argb-pixels' 2011-05-18 16:01:33 -07:00
Matthew Flatt
eddae6749d clean up handling of not-ok?', bitmap-dc%'-selected, and mutated bitmaps 2010-12-30 08:35:56 -07:00
Matthew Flatt
e97414b7bf bitmap% convertible to 'png-bytes; more Scribble Latex; pict in Slideshow docs 2010-11-27 07:36:12 -07:00
Matthew Flatt
f73e8c31e8 doc contract fix 2010-11-26 11:31:38 -07:00
Matthew Flatt
f245b6ca29 fix bitmap% load-file' method and remove {get,set}-gl-config'
Closes PR 11460
2010-11-24 06:08:44 -07:00
Matthew Flatt
fe208c63bd add some missing bitmap% and dc<%> docs 2010-11-07 07:14:59 -07:00
Matthew Flatt
ba2ea79f12 fix and document failure handling of image reading in bitmap% 2010-11-07 06:50:52 -07:00
Matthew Flatt
694745e998 first cut at splitting draw and gui docs 2010-11-05 21:57:13 -06:00