imagegrid

package module
v0.0.0-...-49813e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2017 License: MIT Imports: 3 Imported by: 1

README

imagegrid Build Status GoDoc Go Report Card

Package imagegrid enables composing one or more images into a single image, using a tiled grid pattern. MIT Licensed.

Example

The cmd/gophergrid utility demonstrates usage of package imagegrid, by generating a tiled grid of Go gophers.

$ gophergrid -h
Usage of gophergrid:
  -n int
        number of images per row or column (default 5)

By default, gophergrid will print a PNG image to stdout.

It is recommended to redirect stdout to a file or pipe.
$ gophergrid -n 5 > gopher.png

gopher

The Go gopher was designed by Renee French. (http://reneefrench.blogspot.com/) The design is licensed under the Creative Commons 3.0 Attributions license. Read this article for more details: https://blog.golang.org/gopher

Documentation

Overview

Package imagegrid enables composing one or more images into a single image, using a tiled grid pattern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Draw

func Draw(n int, images []image.Image) (image.Image, error)

Draw combines a slice of image.Images into a single image, tiling the images from left-to-right, then top-to-bottom.

n determines how many images will be drawn in each row or column. n must be greater than zero.

At least one image must be passed in the slice. Each image must have identical dimensions, and must be perfectly square.

Types

This section is empty.

Directories

Path Synopsis
cmd
gophergrid
Command gophergrid creates a PNG image with a grid of tiled gophers.
Command gophergrid creates a PNG image with a grid of tiled gophers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL