package
0.0.0-20241025181643-377b65c841ce
Repository: https://github.com/jo-m/trainbot.git
Documentation: pkg.go.dev

# Functions

Copy creates a deep copy of an image (copies underlying buffer).
Dump dumps an image to a file.
DumpGIF dumps a GIF image to a file.
DumpJPEG dumps a JPEG to a file with a given quality.
Load tries to load an image from a file.
NewYuv420 creates a new image.Image from a raw Yuv420p buffer.
RandGray creates a random grayscale image with a given seed.
RandRGBA creates a random RGBA image with a given seed.
Sub tries to call SubImage on the given image.
ToGray returns a new copy of img, converted to grayscale, with the origin of its bounds reset to 0.
ToRGBA returns a new copy of img, converted to RGBA, with the origin of its bounds reset to 0.

# Structs

YCbCr is a raw YCbCr image.