samth/test-bugs — Issue #101: image->color-list!
Author: racket-bug-submit
Created: 2012-03-08 02:09:35+00:00
State: open
Labels: anon-submit, gnats-migrated, HtDP

###### Originally submitted by Stephen Bloch 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](http://bugs.racket-lang.org/query/?cmd=view&pr=9123).

[anon-submit sbloch AT adelphi.edu]