Documentation
¶
Index ¶
- func ApplyDither(grayScale [][]int, factor int)
- func GetSupportedEncodings() map[string]EncodeFunc
- func IntToUInt8(value int) uint8
- func JPEGEncode(w io.Writer, m image.Image) error
- func NewGreyScale(bounds image.Rectangle) [][]int
- func PNGEncode(w io.Writer, m image.Image) error
- func ReadGreyScale(src ReadableImage, dst [][]int)
- func WriteGrayScale(src [][]int, dst WritableImage)
- type EncodeFunc
- type ReadableImage
- type WritableImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDither ¶
func GetSupportedEncodings ¶
func GetSupportedEncodings() map[string]EncodeFunc
func IntToUInt8 ¶
func NewGreyScale ¶
func ReadGreyScale ¶
func ReadGreyScale(src ReadableImage, dst [][]int)
func WriteGrayScale ¶
func WriteGrayScale(src [][]int, dst WritableImage)
Types ¶
type ReadableImage ¶
type WritableImage ¶
type WritableImage interface {
ReadableImage
Set(x, y int, c color.Color)
}
Click to show internal directories.
Click to hide internal directories.