pngdiff

package module
v0.0.0-...-7f29573 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2014 License: MIT Imports: 4 Imported by: 4

README

pngdiff

Golang library png format file diff and patch.

Documentation

Overview

Package pngdiff provides ... image.RGBA diff and patch

Index

Constants

This section is empty.

Variables

View Source
var ErrSizeNotMatch = errors.New("Image size are different")

Functions

func Diff

func Diff(imold, imnew *image.RGBA) (patch *image.RGBA, err error)

Diff computes the difference bwtween old and new, and return the result.

func Patch

func Patch(im *image.RGBA, patch *image.RGBA) (out *image.RGBA, err error)

Patch applies patch to im, and writes the result to out

func ReadFile

func ReadFile(filename string) (im *image.RGBA, err error)

Read png file

func WriteFile

func WriteFile(filename string, im *image.RGBA) error

Write RGBA struct as png file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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