giant_screenshot

package
v0.0.0-...-79996cc Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GiantScreenshot

func GiantScreenshot(lvl *level.Level) (image.Image, error)

GiantScreenshot returns a rendered RGBA image of the entire level.

Only one thread should be doing this at a time. A sync.Mutex will cause an error to return if another goroutine is already in the process of generating a screenshot, and you'll have to wait and try later.

func SaveGiantScreenshot

func SaveGiantScreenshot(level *level.Level) (string, error)

SaveGiantScreenshot will take a screenshot and write it to a file on disk, returning the filename relative to ~/.config/doodle/screenshots

func WallpaperToImage

func WallpaperToImage(lvl *level.Level, target *image.RGBA, width, height int) *image.RGBA

WallpaperToImage accurately draws the wallpaper into an Image.

The image is assumed to have a rect of (0,0,width,height) and that width and height are positive. Used for the Giant Screenshot feature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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