Pixelate

Applies a pixelation effect to the image.

Parameters

Parameter
Type
Description

size

int

Size of pixels.

Return Values

The instance of *imgo.Image .

Examples

package main

import (
    "github.com/fishtailstudio/imgo"
)

func main() {
    imgo.Load("gopher.png").
        Pixelate(5).
        Save("out.png")
}

Last updated