Commit Graph

303 Commits

Author SHA1 Message Date
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Robby Findler
65579793af added get-button-label method to switchable-button% 2011-01-13 20:11:52 -06:00
Matthew Flatt
a28ead9464 fix some switchable-button tooltip problems 2011-01-10 12:26:24 -07:00
Robby Findler
66f6f04c1e improve the drawing of the menu popup when it is yellow and the mouse is over it 2011-01-08 14:29:36 -06:00
Robby Findler
670d58d134 added un/cache-image, a function that enables/disables the drawing cache in 2htdp/image images 2011-01-06 14:24:01 -06:00
Robby Findler
dd9e8c530b fix the use of draw-caret in 2htdp/image 2011-01-03 20:54:07 -06:00
Matthew Flatt
cf344b9926 fix dimensions of cached image bitmap 2011-01-03 19:13:56 -07:00
Robby Findler
30f9c4338f make sure make-bitmap gets exacts as args 2011-01-03 19:56:37 -06:00
Robby Findler
ac52a63d4a cache drawing in 2htdp/image snip's draw method 2011-01-03 15:06:41 -06:00
Robby Findler
d886df2acc 2htdp/image: when selected, draw with some transparency so the selection is visible 2011-01-03 14:42:57 -06:00
Robby Findler
7716851cde 2htdp/image: added support for alpha as a mode? argument 2011-01-01 20:01:50 -06:00
Robby Findler
830c797ee4 use pen's alpha color stuff in 2htdp/image 2010-12-31 10:25:01 -06:00
Robby Findler
1d89cfc9d7 2htdp/image fix bitmap scaling to respect alpha channels 2010-12-28 19:08:11 -06:00
Robby Findler
54c337e5d3 2htdp/image: use erase instead of clear to zero out a bitmap 2010-12-27 21:51:16 -06:00
Robby Findler
835f7753dc generalize the color structs to have an alpha field and then use that in the bitmap conversion functions 2010-12-27 21:51:14 -06:00
Robby Findler
8bb2543b34 bring this code in the modern world
(I think the use of bitmaps is the right one here, but this code doesn't actually work, pending PR 11566)
2010-12-25 07:48:25 -06:00
Robby Findler
e896360dcf take advantage of new equal<%> and snip% setup to make image-snip%s equal to 2htdp/image images (when appropriate) 2010-12-24 06:34:43 -06:00
Matthew Flatt
e5175c5b38 fix bug that affects the DrRacket language dialog
when switching to he choose-a-language radio button
 when the selected language is under a closed section
2010-12-23 07:15:36 -06:00
Matthew Flatt
b07f57fc73 fix problems with canvas refresh, especially win32 2010-12-17 14:43:14 -07:00
Sam Tobin-Hochstadt
fb76a887d8 Refactor to create `racket/snip' collection. 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
8a8a8dbe4b Separate snip% from the gui 2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
13cae20838 Fixes for PNG conversion, and make `image-snip%' convertible. 2010-12-17 12:32:25 -05:00
Sam Tobin-Hochstadt
d92ce41a6f Make 2htdp/image produce png-convertible results. 2010-12-17 12:32:25 -05:00
Robby Findler
52092eeb80 remove sillyness 2010-12-17 10:02:35 -06:00
Matthew Flatt
234a57506f document some modules that are referenced in other documentation 2010-12-15 13:41:59 -07:00
Robby Findler
8add8cfdf5 Revert "change 2htdp/image to try to improve the way drawing works when there is sharing the in the tree"
This reverts commit 9ce75b8f76.
2010-12-12 15:18:06 -06:00
Robby Findler
91aa9f756a finally, a fix that makes the 2htdp/image test suite pass! 2010-12-12 15:14:04 -06:00
Robby Findler
9ce75b8f76 change 2htdp/image to try to improve the way drawing works when there is sharing the in the tree 2010-12-12 15:14:04 -06:00
Casey Klein
f293ace98d Revert "Adds support for inserting more arrow characters by their LaTex names"
This reverts commit a12491bb89, in which
the documentation won't build as PDF.
2010-12-11 01:40:51 -06:00
Casey Klein
e65598c98c Fixes the semi-automated TeX table test 2010-12-10 13:58:10 -06:00
Casey Klein
a12491bb89 Adds support for inserting more arrow characters by their LaTex names 2010-12-10 13:58:10 -06:00
Robby Findler
f11e53c68c gr2 cleanup 2010-11-29 13:49:48 -06:00
Robby Findler
bf62d4b6d6 get two more 2htdp/image test cases to pass 2010-11-25 09:03:06 -06:00
Robby Findler
a658a7620b a (failed) attempt to fix equality comparison (but at least it is a step in the right direction (I think)) 2010-11-25 06:55:00 -06:00
Matthew Flatt
1db27b474f fix merge mistake 2010-11-05 15:54:56 -06:00
Matthew Flatt
05cfffdf9e v5.4.99.1, executable-yield-handler', and make-bitmap' etc. 2010-11-05 15:54:50 -06:00
Matthew Flatt
83a00c66ec cocoa on-drop-files 2010-11-05 15:54:28 -06:00
Matthew Flatt
955df62409 update hierlist for new selection drawing 2010-11-05 15:54:20 -06:00
Matthew Flatt
6e977d7c20 hidden name message should simply not draw 2010-11-05 15:54:05 -06:00
Matthew Flatt
4bfed6d797 misc repairs 2010-11-05 15:54:01 -06:00
Robby Findler
ae5cd21a1b 2htdp/image: changed the way drawing works, specifically avoid normalization before drawing to preserve sharing 2010-11-04 13:55:41 -05:00
Robby Findler
4941aec617 removed unused argument to normalize-image 2010-11-04 13:55:40 -05:00
Robby Findler
6a414bd18a fixed some bugs in the way 2htdp/images were marshalled and unmarshalled 2010-10-28 17:20:43 -05:00
Robby Findler
7ef1e8bd90 fixed a bug in the way old 2htdp/image files were parsed (those that contain bitmaps) 2010-10-28 17:20:43 -05:00
Robby Findler
abca2c91b8 added default case to avoid runtime errors when parsing bogus images 2010-10-28 17:20:42 -05:00
Robby Findler
02d8b5cebf 2htdp/image: adjusted the image you get when parsing fails so that it draws inside its bounding box 2010-10-28 17:20:42 -05:00
Robby Findler
a744958fd5 added support to the 2htdp/image library for reading files when there is no GUI around.
currently the support is limited to images that can only report their sizes and pinholes and where equal?
signals an error unless the arguments are eq?.
2010-10-28 11:32:14 -05:00
Matthias Felleisen
07952e1408 impose contract on write-animated-gif, Closes PR11358 2010-10-26 23:22:14 -04:00
Robby Findler
35f64145ca adjusted the way caching works for bitmaps to be more effective 2010-10-22 06:45:57 -05:00
Robby Findler
1d0ebeae62 added a check to avoid creating a new bitmap struct (so caching works better when you flip images that are not scaled) 2010-10-14 14:05:12 -05:00
Robby Findler
05d16d9311 closes PR 11293 2010-10-07 19:36:18 -05:00
Robby Findler
08b9396e2f closes PR 11236 2010-09-21 16:47:55 -05:00
Robby Findler
d419e8c12a changed the ->d contracts to ->i contracts 2010-09-09 14:21:35 -05:00
Robby Findler
d2e443ac97 made equality check on images sensitive to pinholes 2010-09-06 20:39:11 -05:00
Robby Findler
e3b51e8cf4 made scaling work with pinholes 2010-09-06 20:39:11 -05:00
Robby Findler
4fa7fa2994 Added docs and exported basic pinhole manipulation primitives 2010-09-06 20:39:10 -05:00
Robby Findler
748fc32bd1 added pinhole drawing 2010-09-06 20:39:10 -05:00
Robby Findler
5e01ac5537 added a pinhole property to images 2010-09-06 20:39:10 -05:00
Robby Findler
7fead2875a forgot the flip check (caught by the test suites) 2010-09-02 12:20:19 -05:00
Robby Findler
09bd56081b fixed a performance bug (avoids computing the rotation of a bitmap when it isnt actually rotated...) 2010-09-02 11:01:23 -05:00
Eli Barzilay
8e0f8dd39c More "~n" -> "\n" changes 2010-08-26 12:11:00 -04:00
Robby Findler
f793360586 fixed a bug reported by Todd on the mailing list (probably this is his bug anyways) 2010-08-02 13:01:27 -05:00
Matthew Flatt
5d7f044488 change mrlib/image-core to use pen-list% cap and join support 2010-07-21 16:19:12 -06:00
Robby Findler
6cd277a36f fixed a bug in the saving of bitmaps (and along the way added some randomized tests that found a few other things)
Please merge to release branch.
2010-07-20 22:59:52 -05:00
Robby Findler
476dd36eec modified the draw-button-label contract so that it would work with a let*-style scoping for ->d 2010-07-10 10:01:25 -05:00
Robby Findler
070a39d902 fixed a bug in text's color argument, as noted in PR 10998 2010-07-07 13:42:40 -05:00
Robby Findler
a5d969607b fixed PR 10998 2010-07-06 15:26:26 -05:00
Robby Findler
9f5593c222 rackety mrlib/name-message 2010-06-22 14:22:35 -05:00
Robby Findler
c5b0c73111 added docs and minor cleanups in mrlib/name-message 2010-06-22 14:22:34 -05:00
Robby Findler
2e67f8bb9f Refactored the rotation code to support an arbitrary linear transformation 2010-06-20 14:13:16 -05:00
Robby Findler
0c0009465e removed a bogus case in the definition of np-atomic-shape predicate 2010-06-18 16:21:14 -05:00
Robby Findler
132867518c added support for flipping bitmaps 2010-06-18 16:21:14 -05:00
Robby Findler
22bc8f6d87 a bunch of little fixes to the 2htdp/image library (and related) for sfp submission:
- added in the htdp/image version of the performance test case
- made gui-eval work with things other than slideshow
- extended render-image so that it works on bitmaps and image-snips
2010-06-16 11:58:58 -05:00
Robby Findler
31b507aa51 Rackety 2htdp/image 2010-05-25 21:35:04 -05:00
Robby Findler
8c98f9d979 made a start on the image-core library's documentation 2010-05-25 16:10:23 -05:00
Robby Findler
0c1afebb5a made a start on the image-core library's documentation 2010-05-25 16:10:23 -05:00
Robby Findler
b7a20594ef added \newpage to the latex-style keybindings 2010-05-17 11:39:38 -05:00
Eli Barzilay
de0cc7771b A lot of "DrScheme" -> "DrRacket"s. 2010-05-17 01:27:03 -04:00
Eli Barzilay
d8fec78585 Some renames for this dusty code. 2010-05-16 18:26:25 -04:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Robby Findler
700a530f4e PR 10783 addendum
svn: r18346
2010-02-26 03:38:00 +00:00
Robby Findler
39dd21c240 PR 10783
svn: r18340
2010-02-25 20:57:45 +00:00
Robby Findler
50a6a585b1 fixed some repl-printing related bugs that would make 'write' sensitive to pretty-print's parameters in drscheme's repl
svn: r18321
2010-02-24 17:35:09 +00:00
Eli Barzilay
c88a5a6856 A bunch of additional typos
svn: r17976
2010-02-05 03:21:52 +00:00
Robby Findler
e74e46d9ca drdr-ized the rest of the drscheme test suite
svn: r17945
2010-02-02 21:06:07 +00:00
Robby Findler
540f43327d added a little more error checking
svn: r17912
2010-01-31 13:32:19 +00:00
Matthew Flatt
73a1675286 fix select #f for hierlist
svn: r17888
2010-01-29 20:30:46 +00:00
Robby Findler
be5b6cd32e some improvements to the new language dialog
svn: r17886
2010-01-29 18:29:03 +00:00
Robby Findler
cf4294a280 changed the internal representation of normalized images so that crop structs do no have to be duplicated, improved test suites
svn: r17808
2010-01-24 20:22:58 +00:00
Robby Findler
3c1d7e9aca simple fix to deal with performance problem noticed by jpr (this is not a complete fix, but should work in the common case of lots of repeated place-image calls)
svn: r17783
2010-01-23 20:36:54 +00:00
Robby Findler
a9597eeb8b fixed up the docs for the base shapes to reflect the new pen arguments; added a section about pixels
svn: r17683
2010-01-17 02:50:41 +00:00
Robby Findler
ddf0b4ec01 added finer control over pens
svn: r17670
2010-01-16 02:03:54 +00:00
Robby Findler
fc8f84d616 fixed a bug I introduced
svn: r17638
2010-01-13 20:18:48 +00:00
Robby Findler
8c9088a770 changed the overlaying functions so they default to putting the images overlay'd on their centers, not upper lefts
svn: r17632
2010-01-13 16:32:21 +00:00
Robby Findler
8838d90cd5 removed extra depenencies
svn: r17630
2010-01-13 15:12:46 +00:00
Robby Findler
708d4c10d6 fixed image equality for zero width & zero height images
svn: r17593
2010-01-10 13:55:11 +00:00
Robby Findler
179f3615e2 added fast path for image equality that covers the case where the images have the same structure (roughly)
svn: r17560
2010-01-08 02:25:11 +00:00
Robby Findler
911123bf94 added add-curve
svn: r17523
2010-01-07 01:56:46 +00:00
Robby Findler
b5e54fe2eb applied Ian's patch to the bitmap rotation code
svn: r17513
2010-01-06 21:43:34 +00:00
Robby Findler
0b3c30f18e added place-image and fixed a bunch of bugs related to equality, rotating and other things
svn: r17491
2010-01-06 05:12:48 +00:00