From 78bf5690182977cd3cde5dcbfc3271f8826f0280 Mon Sep 17 00:00:00 2001 From: Benny Siegert Date: Thu, 19 Apr 2012 11:04:42 +1000 Subject: [PATCH] [release-branch.go1] doc/articles/image_draw.html: Change ColorImage to Uniform MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport a224d214002e doc/articles/image_draw.html: Change ColorImage to Uniform Fixes #3474. R=nigeltao CC=golang-dev https://golang.org/cl/6048050 »»» --- doc/articles/image_draw.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/articles/image_draw.html b/doc/articles/image_draw.html index ba735ad2b4..71658cf920 100644 --- a/doc/articles/image_draw.html +++ b/doc/articles/image_draw.html @@ -89,7 +89,7 @@ interface which has a Set method.

To fill a rectangle with a solid color, use an image.Uniform -source. The ColorImage type re-interprets a Color as a +source. The Uniform type re-interprets a Color as a practically infinite-sized Image of that color. For those familiar with the design of Plan 9's draw library, there is no need for an explicit "repeat bit" in Go's slice-based image types; the @@ -189,7 +189,7 @@ To draw an image through a circular mask with center p and radius

To draw a font glyph in blue starting from a point p, draw with -an image.ColorImage source and an image.Alpha mask. For +an image.Uniform source and an image.Alpha mask. For simplicity, we aren't performing any sub-pixel positioning or rendering, or correcting for a font's height above a baseline.

-- 2.48.1