]> Cypherpunks repositories - gostls13.git/commit
image: replace Width and Height by Bounds, and introduce the Point and
authorNigel Tao <nigeltao@golang.org>
Tue, 10 Aug 2010 02:08:52 +0000 (12:08 +1000)
committerNigel Tao <nigeltao@golang.org>
Tue, 10 Aug 2010 02:08:52 +0000 (12:08 +1000)
commit5eb35e4247affecd734c6d6bd9ad31a21dec00b9
treef054cd95514d6a0d769ce377dda41f4a9847a475
parent46db2e3c25f417008d2e639781169702104a9ef2
image: replace Width and Height by Bounds, and introduce the Point and
Rect types.

The actual image representation is unchanged. A future change will
replace the {[][]color} with {[]color, stride int, r Rectangle} and
possibly a clip region.

The draw.Color, draw.Point and draw.Rect types will be removed in a
future change. Trying to do it in this one polluted the diff with
trivia.

R=r, rsc
CC=golang-dev
https://golang.org/cl/1918047
14 files changed:
src/pkg/exp/4s/xs.go
src/pkg/exp/draw/color.go
src/pkg/exp/draw/draw.go
src/pkg/exp/draw/draw_test.go
src/pkg/exp/draw/x11/conn.go
src/pkg/exp/nacl/av/image.go
src/pkg/exp/spacewar/spacewar.go
src/pkg/image/Makefile
src/pkg/image/geom.go [new file with mode: 0644]
src/pkg/image/image.go
src/pkg/image/names.go
src/pkg/image/png/reader_test.go
src/pkg/image/png/writer.go
src/pkg/image/png/writer_test.go