Package imgrow provides tools for growing and image by an integer value. For example — if you have an image, then you make it 2× bigger, or 3× bigger, or 4× bigger, etc.
Go to file
Charles Iliya Krempeaux 6b2850536a imgrow.DrawImage() 2024-02-21 08:26:16 -08:00
LICENSE initial commits 2024-02-09 11:06:38 -08:00
README.md initial commits 2024-02-09 11:06:38 -08:00
dividebyzero.go initial commits 2024-02-09 11:10:01 -08:00
drawimage.go imgrow.DrawImage() 2024-02-21 08:26:16 -08:00
go.mod initial commits 2024-02-09 11:06:59 -08:00
image.go initial commits 2024-02-09 11:12:33 -08:00
inversescale.go initial commits 2024-02-09 11:10:11 -08:00
inversescale_test.go initial commits 2024-02-09 11:10:11 -08:00
inversescalexy.go initial commits 2024-02-09 11:10:59 -08:00
inversescalexy_test.go initial commits 2024-02-09 11:10:59 -08:00
maxint.go initial commits 2024-02-09 11:07:51 -08:00
minint.go initial commits 2024-02-09 11:07:51 -08:00
scalepoint.go initial commits 2024-02-09 11:08:43 -08:00
scalepoint_test.go initial commits 2024-02-09 11:08:43 -08:00
scalerectangle.go initial commits 2024-02-09 11:08:43 -08:00
scalerectangle_test.go initial commits 2024-02-09 11:08:43 -08:00
scalexy.go initial commits 2024-02-09 11:07:51 -08:00
scalexy_test.go initial commits 2024-02-09 11:07:51 -08:00

README.md

go-imgrow

Package imgrow provides tools for growing and image by an integer value.

For example — if you have an image, then you make it 2× bigger, or 3× bigger, or 4× bigger, etc.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/sourcecode.social/reiver/go-imgrow

GoDoc

Example:

import "sourcecode.social/reiver/go-imgrow"

// ...

var originalImage image.Image = ...

// ...

var scalar int = 400 // change this value to how many times bigger you want the image to be. here it is 400× bigger.

var newImage image.Image = imgrow(scalar, originalImage)

Import

To import package imgrow use import code like the follownig:

import "sourcecode.social/reiver/go-imgrow"

Installation

To install package imgrow do the following:

GOPROXY=direct go get https://sourcecode.social/reiver/go-imgrow

Author

Package imgrow was written by Charles Iliya Krempeaux