Closed racket-bug-submit closed 12 years ago
Correction: this is (presumably) the same bug as 8283. Anyway, it's still here in 371.
Is it really that different to render to the screen and to a bit-map represented as a list of colors? The image shows up just fine on the screen, until such time as one calls image->color-list on it, and somehow that changes the data.
--Apple-Mail-4-860062161 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed
This can be closed; it's either fixed or irrelevant with 2htdp/image .
Stephen Bloch sbloch@adelphi.edu
--Apple-Mail-4-860062161 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=US-ASCII
This can be closed; it's either fixed or irrelevant with 2htdp/image .--Apple-Mail-4-860062161--
resolved
Originally submitted by Stephen Bloch sbloch@adelphi.edu on: Wed Dec 26 13:45:01 -0500 2007
I've posted this one before, at least a year or two ago, and it's still here in 371. The image->color-list function should end with an exclamation point (at least on Windows) because it mutates its argument, cropping off the right-hand and bottom edges. (Or maybe it's actually moving the whole image down and to the right by a pixel or two; the width, height, and pinhole seem unchanged.)
Better yet, how about if it DIDN'T crop off the right-hand and bottom edges? :-)
Steps to Reproduce:
; Use a Windows machine; problem doesn't appear on Mac ; Load the image.ss teachpack (define green (circle 10 "solid" "green")) (image->color-list green) ; ignore the answer green ; the bottom and right edges are now gone
Release:
371
Environment:
windows "Windows NT 5.1 (Build 2600) Service Pack 2" (win32\i386\3m) (get-display-depth) = 32 Docs Installed: (("C:\Program Files\PLT\doc" "r5rs" "mzscheme" "mred" "help" "tour" "drscheme" "srfi" "mzlib" "misclib" "mrlib" "framework" "foreign" "mzc" "tools" "insidemz" "web-server" "swindle" "plot" "release-notes" "t-y-scheme" "tex2page" "beginning" "beginning-abbr" "intermediate" "intermediate-lambda" "advanced" "teachpack" "teachpack-htdc" "profj-beginner" "profj-intermediate" "profj-intermediate-access" "profj-advanced")) Human Language: english (current-memory-use) 115171280
Collections: (("C:\Documents and Settings\Administrator\Application Data\PLT Scheme\371\collects" "installed-teachpacks") ("C:\Program Files\PLT\collects" "afm" "algol60" "browser" "combinator-parser" "compiler" "config" "defaults" "drscheme" "dynext" "embedded-gui" "eopl" "errortrace" "ffi" "framework" "frtime" "games" "graphics" "help" "hierlist" "htdch" "htdp" "html" "icons" "info-domain" "lang" "launcher" "lazy" "macro-debugger" "make" "mred" "mrlib" "mysterx" "mzcom" "mzlib" "mzscheme" "mztake" "net" "openssl" "parser-tools" "planet" "plot" "preprocessor" "profj" "profjWizard" "r5rs" "readline" "setup" "sgl" "slatex" "slideshow" "srfi" "stepper" "string-constants" "swindle" "syntax" "syntax-color" "teachpack" "test-box-recovery" "tex2page" "texpict" "trace" "version" "web-server" "wxme" "xml")) Computer Language: (("Teaching Languages" "How to Design Programs" "Beginning Student") (#6(#t constructor repeating-decimal #f #t none) #f ((lib "371-sb-world.ss" "installed-teachpacks") (lib "371-tiles.ss" "installed-teachpacks"))))
This bug was converted from Gnats bug 9123.
[anon-submit sbloch AT adelphi.edu]