Documentation ¶
Index ¶
- func GetWallpaper() (string, error)
- func SetWallpaper(path string) error
- func SkipOAT(t testing.TB)
- type Image
- func (img *Image) DrawDescription(position types.Position, fontName string) error
- func (img *Image) DrawQRCode(resolution types.Resolution, position types.Position) error
- func (img *Image) DrawWatermark(watermarkFile string, rotateCounterClockwise bool) error
- func (img *Image) EncodeAndDump(targetDir string) (string, error)
- func (i *Image) Equals(other *Image) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWallpaper ¶
GetWallpaper returns the path to the current wallpaper.
func SetWallpaper ¶
SetWallpaper sets the wallpaper from the given path.
Types ¶
type Image ¶
Image is a wrapper around the image.Image interface.
func DownloadAndDecode ¶
func DownloadAndDecode(day types.Day, region types.Region, resolution types.Resolution) (*Image, error)
DownloadAndDecode fetches the Bing wallpaper and decodes it.
func (*Image) DrawDescription ¶
DrawDescription draws a title onto the given image.
func (*Image) DrawQRCode ¶
DrawQRCode draws a QR code onto the given image.
func (*Image) DrawWatermark ¶
DrawWatermark draws a watermark onto the given image.
func (*Image) EncodeAndDump ¶
EncodeAndDump encodes the image and dumps it to the target directory.
Click to show internal directories.
Click to hide internal directories.