pisnap

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package pisnap provides functions for taking screenshots.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureOrErr

func CaptureOrErr() (string, error)

CaptureOrErr captures a screenshot and saves it to the temporary directory.

It returns the filename.

An error is returned if there is a problem storing the file or if the code is run in a browser.

func PalettedImage

func PalettedImage() image.PalettedImage

PalettedImage captures a screenshot and returns it as an image.PalettedImage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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