screenshot

package module
v0.0.0-...-acd59eb Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 1 Imported by: 0

README

screenshot

This project is forked from kbinani/screenshot

What can it do?

First run

make build

or just copy the already generated screenshot file

if you are using Mac or Linux you would see an executable file with name screenshot in current folder.

and then you move it to your markdown folder and simply run it there, suppose you are editing a file whose

name is prometheus.md you can run :

./screenshot -md prome -key esc

if there are another file whose name starts with prome you would see an error

After that you would see a full screen picture successfully inserted to your markdown file, and a new folder named pictures in your current folder

and the newly generated picture just located there.

Falgs

  • key

    which key to press for saving a picture,default is esc

  • md

    this is the full or part of marrdown file name in current folder

  • pic

    this is the folder to store the pictures

Download youtube vedios

if you are watching e.g. https://www.youtube.com/watch?v=K0Ta65OqQkY

  • make auto

    you can run

    make auto name=K0Ta65OqQkY
    

    to download this video with subtitle(auto generated) and save it into current folder

  • make none or run:

    make none name=K0Ta65OqQkY
    

    to download this vedio without any subtitle

  • make sub

    or run:

    make sub name=K0Ta65OqQkY
    

    to download this vedio with a subtitle(not auto generated)

  • make subs

    or run:

    make subs name=K0Ta65OqQkY
    

    to download this vedio without multiple subtitles

Documentation

Overview

Package screenshot captures screen-shot image as image.RGBA. Mac, Windows, Linux, FreeBSD, OpenBSD, NetBSD, and Solaris are supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureDisplay

func CaptureDisplay(displayIndex int) (*image.RGBA, error)

CaptureDisplay captures whole region of displayIndex'th display.

func CaptureRect

func CaptureRect(rect image.Rectangle) (*image.RGBA, error)

CaptureRect captures specified region of desktop.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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