Modify getting started to use svn url

This commit is contained in:
legoff.laurent 2010-11-23 18:35:19 +00:00
parent d32d0cabac
commit 4eaa1d6e1d

View file

@ -1,17 +1,17 @@
package main
import (
"fmt"
"log"
"os"
"bufio"
"image"
"image/png"
"draw2d"
"draw2d.googlecode.com/svn/trunk/draw2d/src/pkg/draw2d"
)
func saveToPngFile(filePath string, m image.Image) {
f, err := os.Open(filePath, os.O_CREAT|os.O_WRONLY, 0600)
if err != nil {
@ -39,6 +39,5 @@ func main() {
gc.MoveTo(10.0, 10.0)
gc.LineTo(100.0, 10.0)
gc.Stroke()
saveToPngFile("../../TestPath.png", i)
}
saveToPngFile("TestPath.png", i)
}