Mosaic
Last updated
Last updated
Mosaic the image.
size
int
Size of mosaic pixels.
x1
int
X-Coordinate of the top-left corner of the mosaic rectangular.
y1
int
Y-Coordinate of the top-left corner of the mosaic rectangular.
x2
int
X-Coordinate of the bottom-right corner of the mosaic rectangular.
y2
int
Y-Coordinate of the bottom-right corner of the mosaic rectangular.
The instance of *imgo.Image
.
package main
import "awesomeProject/imgo"
func main() {
imgo.Load("gopher.png").
Mosaic(5, 60, 50, 120, 100).