image

package module
v0.0.0-...-fb44972 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 4 Imported by: 0

README

goimage

the image to rotate by golang, including rotate 90, 180 and 270 degress clockwise.

usage


import (
    "github.com/quixote-liu/goimage"
)

func main() {
    imagePath := "./test/test.png"
    outputPath := "./test/test_90.png"
    err := goimage.CWRotate90(imagePath, outputPath)
    if err != nil {
        panic(err)
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CWRotate180

func CWRotate180(targetImagePath, outputImagePath string) error

func CWRotate270

func CWRotate270(targetImagePath, outputImagePath string) error

func CWRotate90

func CWRotate90(targetImagePath, outputImagePath string) error

Types

type Image

type Image struct {
	// contains filtered or unexported fields
}

func New

func New(imagePath string) *Image

func (*Image) CWRotate180

func (img *Image) CWRotate180(imagePath ...string) error

func (*Image) CWRotate270

func (img *Image) CWRotate270(imagePath ...string) error

func (*Image) CWRotate90

func (img *Image) CWRotate90(imagePath ...string) error

Jump to

Keyboard shortcuts

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