Mosaic
Mosaic the image.
Parameters
Parameter
Type
Description
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.
Return Values
The instance of *imgo.Image
.
Examples
package main
import "awesomeProject/imgo"
func main() {
imgo.Load("gopher.png").
Mosaic(5, 60, 50, 120, 100).
Save("out.png")
}
Last updated