Robby Findler
68dcb92030
try using size-in-pixels for the font primitive in 2htdp/image
...
closes PR 11883
(the earlier commit with this message was just completely bogus)
original commit: 34581b7050e19bb75bdfe456e3b2dd2547ccd463
2011-09-27 16:24:23 -05:00
Robby Findler
8471458b26
speed up bitmap rotation (could probably revisit this to
...
speed up flipping (and also to do all three in one pass)
original commit: 6c91288f2f1f1b18e64f28b147deb6a773d248b0
2011-08-23 18:56:51 -05:00
Robby Findler
eb3c18bb39
fix bug in the loading of non-alpha bitmaps (also: minor Rackety)
...
original commit: b425ca90d22f2ed84074eedb3da0ed88eda28170
2011-08-23 18:56:50 -05:00
Robby Findler
e5c4471338
add test cases for old file 2htdp/image file formats
...
(and fix corresponding bugs)
original commit: 034e4f236486d5b246e3384bbce549c7d595c7fb
2011-08-23 07:12:11 -05:00
Robby Findler
eb3bb743f5
2htdp/image
...
normalize the internal representation of bitmaps so it always uses an alpha
bitmap instead of sometimes using a mask bitmap and sometimes using alpha.
This also fixes a bug where the library would get consfused when it saved
a bitmap to a file, since it didn't record if it was an alpha bitmap or not.
This improves the save files that contain images, cutting the size for bitmaps
in half (bringing the drracket save file down to a mere 25x larger than the
png file format for the example I was using...)
original commit: 1f02106318edba9c011afaf24d6ef34a3081c9ff
2011-08-22 19:09:52 -05:00
Robby Findler
400906e376
use the pre-multiplied alphas when comparing images for 2htdp/image
...
original commit: 8ccf50b84bf3b25b2c4ddbe4dbd6ef088c6a9cd7
2011-08-22 19:09:50 -05:00
Robby Findler
ad8348a51d
fix the png conversion code for 2htdp/image images
...
closes PR 12061
please merge to the release branch
original commit: 56b82ba83c5d29afaafbed602c8e14873a14f953
2011-07-22 08:09:17 -05:00
Eli Barzilay
950c968e77
".ss" -> ".rkt" scan done.
...
original commit: 3157955d40f89d83fb3d5fa7a2f20639cda69579
2011-07-02 10:37:53 -04:00
Robby Findler
63f26ed181
adding a missing 2htdp/image color => racket/gui color coercion
...
closes PR 11956
original commit: 9e36dc8eb328d9c50fcdaf2a8765b09e6591e96e
2011-06-02 16:27:09 -07:00
Robby Findler
ffaf986cdc
adjust drracket's value printer to specially treat 2htdp/image images.
...
related to PR 11849
original commit: 7b4e6730810028b44e720b5de006980199c60b51
2011-04-14 15:26:43 -05:00
David Van Horn
5007d739fc
Fixed various spelling errors.
...
original commit: c9519fd11300b07292df8619e86f48533eff6e4d
2011-02-03 17:42:33 -05:00
Robby Findler
0c9aceeb9e
added un/cache-image, a function that enables/disables the drawing cache in 2htdp/image images
...
original commit: 670d58d134eaf2dc5ed6ef4ea60f53d66321acda
2011-01-06 14:24:01 -06:00
Robby Findler
bdf79e7179
fix the use of draw-caret in 2htdp/image
...
original commit: dd9e8c530bb24f4d594c54060f61eb83fb3e401c
2011-01-03 20:54:07 -06:00
Matthew Flatt
8294ffe8d4
fix dimensions of cached image bitmap
...
original commit: cf344b9926edda82906d692b9bed0421c82abb7d
2011-01-03 19:13:56 -07:00
Robby Findler
d428edc7ed
make sure make-bitmap gets exacts as args
...
original commit: 30f9c4338f4ebbca7126f74e672cfcef3315fcd7
2011-01-03 19:56:37 -06:00
Robby Findler
ef0187721b
cache drawing in 2htdp/image snip's draw method
...
original commit: ac52a63d4aaafcf2e44e489211c5f477c7924b10
2011-01-03 15:06:41 -06:00
Robby Findler
0e7717d366
2htdp/image: when selected, draw with some transparency so the selection is visible
...
original commit: d886df2acc543e44c7b6f4f4de92beed1710b069
2011-01-03 14:42:57 -06:00
Robby Findler
e696606631
2htdp/image: added support for alpha as a mode? argument
...
original commit: 7716851cdea19f2bab410fc16938bf500066f7d0
2011-01-01 20:01:50 -06:00
Robby Findler
92e830508d
use pen's alpha color stuff in 2htdp/image
...
original commit: 830c797ee44e77f8a53477240979add83edebc17
2010-12-31 10:25:01 -06:00
Robby Findler
4fe47c78de
2htdp/image fix bitmap scaling to respect alpha channels
...
original commit: 1d89cfc9d7a236bb5c2f2516d71bc8eb204d7203
2010-12-28 19:08:11 -06:00
Robby Findler
c36dd1fdfd
2htdp/image: use erase instead of clear to zero out a bitmap
...
original commit: 54c337e5d3860fa7333fae79a8d3fa39366c1873
2010-12-27 21:51:16 -06:00
Robby Findler
f9c8cb6676
generalize the color structs to have an alpha field and then use that in the bitmap conversion functions
...
original commit: 835f7753dcb98d508d86c653dd6fc2d7c3f21b1e
2010-12-27 21:51:14 -06:00
Robby Findler
5a6f74a959
take advantage of new equal<%> and snip% setup to make image-snip%s equal to 2htdp/image images (when appropriate)
...
original commit: e896360dcfdedbab5d231c41cb9c697622edd153
2010-12-24 06:34:43 -06:00
Sam Tobin-Hochstadt
7828941338
Refactor to create `racket/snip' collection.
...
original commit: fb76a887d82ac613af2f02049e2edf9cdd8fd83f
2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
6085753209
Separate snip% from the gui
...
original commit: 8a8a8dbe4ba0eb9ece3ca7dabe0e278de64e467e
2010-12-17 12:32:26 -05:00
Sam Tobin-Hochstadt
95fd314cad
Fixes for PNG conversion, and make `image-snip%' convertible.
...
original commit: 13cae20838e8d7a6de1fff3c242fb8d85fca22cb
2010-12-17 12:32:25 -05:00
Sam Tobin-Hochstadt
942143113a
Make 2htdp/image produce png-convertible results.
...
original commit: d92ce41a6f00c9219cd8213ca2df39907d6c8236
2010-12-17 12:32:25 -05:00
Robby Findler
fc3cb61653
remove sillyness
...
original commit: 52092eeb803ad9a542bc383a0143d6c31c59d658
2010-12-17 10:02:35 -06:00
Robby Findler
a0d80c6038
Revert "change 2htdp/image to try to improve the way drawing works when there is sharing the in the tree"
...
This reverts commit 9ce75b8f76d607237659c3c457f6ceb52752c64b.
original commit: 8add8cfdf596c5ea833b3a83e4b2d7df550ad218
2010-12-12 15:18:06 -06:00
Robby Findler
590b3c2747
finally, a fix that makes the 2htdp/image test suite pass!
...
original commit: 91aa9f756a258a8b9de624024fe81c4864f1b1dd
2010-12-12 15:14:04 -06:00
Robby Findler
908ece5030
change 2htdp/image to try to improve the way drawing works when there is sharing the in the tree
...
original commit: 9ce75b8f76d607237659c3c457f6ceb52752c64b
2010-12-12 15:14:04 -06:00
Robby Findler
0590579daa
get two more 2htdp/image test cases to pass
...
original commit: bf62d4b6d6e1968ddaf3adc835c4f70d7321228a
2010-11-25 09:03:06 -06:00
Robby Findler
439d046c98
a (failed) attempt to fix equality comparison (but at least it is a step in the right direction (I think))
...
original commit: a658a7620b268edef2fe2af014b0e8a892619393
2010-11-25 06:55:00 -06:00
Matthew Flatt
e4ffaabd35
fix merge mistake
...
original commit: 1db27b474f32f0c136f91b509b02b4a48da0f2dd
2010-11-05 15:54:56 -06:00
Matthew Flatt
da874c1c04
v5.4.99.1, executable-yield-handler', and
make-bitmap' etc.
...
original commit: 05cfffdf9e13b6868a19384e88bcb9331f9631f1
2010-11-05 15:54:50 -06:00
Robby Findler
ee07830984
2htdp/image: changed the way drawing works, specifically avoid normalization before drawing to preserve sharing
...
original commit: ae5cd21a1b9de4058a8b57948551f351f2def9cf
2010-11-04 13:55:41 -05:00
Robby Findler
984005b3a1
removed unused argument to normalize-image
...
original commit: 4941aec6177f0059c3a3c09e76e391b732b8e7cc
2010-11-04 13:55:40 -05:00
Robby Findler
1b32d2dab2
fixed some bugs in the way 2htdp/images were marshalled and unmarshalled
...
original commit: 6a414bd18afb6e53a11601781e2917539a321e1e
2010-10-28 17:20:43 -05:00
Robby Findler
6b991a5f60
fixed a bug in the way old 2htdp/image files were parsed (those that contain bitmaps)
...
original commit: 7ef1e8bd907b5f18f563848346628da0dcd2406f
2010-10-28 17:20:43 -05:00
Robby Findler
d75777d57d
2htdp/image: adjusted the image you get when parsing fails so that it draws inside its bounding box
...
original commit: 02d8b5cebf9341c1d07823e9c048e751e576a50f
2010-10-28 17:20:42 -05:00
Robby Findler
0b029011dd
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?.
original commit: a744958fd539471315b7515e3e9460af861aa7b7
2010-10-28 11:32:14 -05:00
Robby Findler
2270612ece
adjusted the way caching works for bitmaps to be more effective
...
original commit: 35f64145ca1ca9ecc858222b333af4e8cb25b474
2010-10-22 06:45:57 -05:00
Robby Findler
0cf93e975c
added a check to avoid creating a new bitmap struct (so caching works better when you flip images that are not scaled)
...
original commit: 1d0ebeae62bce8ec43dde86a772d62f587b4c7f1
2010-10-14 14:05:12 -05:00
Robby Findler
872c587255
closes PR 11293
...
original commit: 05d16d931121f56a2b98454d61d17588635cbadc
2010-10-07 19:36:18 -05:00
Robby Findler
7a1c34c546
closes PR 11236
...
original commit: 08b9396e2fdea6e1430cfabc130efafe14a5c4b1
2010-09-21 16:47:55 -05:00
Robby Findler
189edf7686
made equality check on images sensitive to pinholes
...
original commit: d2e443ac97bfea7806f5709ba40c3b0b4ba77f10
2010-09-06 20:39:11 -05:00
Robby Findler
973ed02887
made scaling work with pinholes
...
original commit: e3b51e8cf4da6fb1308d967129421386efeab4bc
2010-09-06 20:39:11 -05:00
Robby Findler
4d26bbc40a
Added docs and exported basic pinhole manipulation primitives
...
original commit: 4fa7fa299490cf1cb7acf71ec4797a9a714c8e14
2010-09-06 20:39:10 -05:00
Robby Findler
31af2360af
added pinhole drawing
...
original commit: 748fc32bd1e0b3d99315fb69f3cfa810585f60f6
2010-09-06 20:39:10 -05:00
Robby Findler
ad9a2a8721
added a pinhole property to images
...
original commit: 5e01ac55373d2987410da7d95f26f42535cfae3b
2010-09-06 20:39:10 -05:00