|
src, _ := imaging.Open("1.png") // load an image from file (returns image.Image interface)
|
|
src, _ := imaging.Open("1.png") // load an image from file (returns image.Image interface)
|
|
dst = imaging.New(800, 600, color.NRGBA(255, 0, 0, 255)) // create a new 800x600px image filled with red color
|
|
dst = imaging.New(800, 600, color.NRGBA(255, 0, 0, 255)) // create a new 800x600px image filled with red color
|