~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to doc/progs/image_draw.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2012-05-02 15:44:59 UTC
  • mfrom: (14.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120502154459-wcmy8ao1325ml619
Tags: 2:1.0.1-1
* Imported Upstream version 1.0.1
* Apply godoc patch to display package list correctly (Closes: #669354)

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
        // CONV OMIT
86
86
        b := src.Bounds()
87
 
        m := image.NewRGBA(image.Rect(0, 0, b.Dx(), b.Dy()))
88
 
        draw.Draw(m, m.Bounds(), src, b.Min, draw.Src)
 
87
        m := image.NewRGBA(b)
 
88
        draw.Draw(m, b, src, b.Min, draw.Src)
89
89
        // STOP OMIT
90
90
 
91
91
        p := image.Point{100, 100}