# @umm/simple_screenshot

> Capture screen shot simply

Latest version **1.0.5** (published 2017-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @umm/simple_screenshot
pnpm add @umm/simple_screenshot
yarn add @umm/simple_screenshot
bun add @umm/simple_screenshot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-09-11 |
| First published | 2017-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | Tetsuya Mori |
| Maintainers | takyama, risacankidsstar, mkaya, hanage, fakestarbaby, monry |

## Links

- npm: https://www.npmjs.com/package/@umm/simple_screenshot
- Repository: https://github.com/umm-projects/simple_screenshot
- Issues: https://github.com/umm-projects/simple_screenshot/issues
- npm.io page: https://npm.io/package/@umm/simple_screenshot

## Dependencies (7)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [glob](https://npm.io/package/glob.md) ^7.1.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [@umm/unirx](https://npm.io/package/@umm/unirx.md) ^1.0.0
- [@umm/singleton_monobehaviour](https://npm.io/package/@umm/singleton_monobehaviour.md) ^1.0.4
- [@umm/gameobject_extension_component](https://npm.io/package/@umm/gameobject_extension_component.md) ^1.1.8

## Recent versions

- 1.0.5 (latest) — 2017-09-11
- 1.0.1 — 2017-08-29
- 1.0.0 — 2017-08-02
- 0.1.1 — 2017-08-01
- 0.1.0 — 2017-08-01

## README

# What?

* 実行中のゲーム画面 (など) をシンプルにキャプチャします。

# Why?

* 何かとスクショ撮る要件あるよね、ってコトで。

# Install

```shell
$ npm install github:umm-projects/simple_screenshot.git
```

# Usage

```csharp
SimpleScreenshot
    .Install(Camera.main)
    .Capture()
    .Subscribe(texture => Debug.Log(texture));

SimpleScreenshot
    .Install(Camera.main)
    .CaptureToFile("/path/to/file")
    .Subscribe(_ => Debug.Log("Finish to output!"));
```

* Install メソッドに撮影対象のカメラを渡します
    * List で渡すコトも可能です
* Capture メソッドが、キャプチャ完了時に Texture を流すストリームを返します
    * あとはそれを REST API に送るなりなんなりご自由に
* CaptureToFile メソッドはキャプチャ結果をファイルに出力します
    * これの戻り値のストリームは、出力完了時に Unit.Default を流します
    * 内部でランダムなファイル名生成して、それを流すコトも考えたけどメンドイのでひとまずパス

# License

Copyright (c) 2017 Tetsuya Mori

Released under the MIT license, see [LICENSE.txt](LICENSE.txt)

---
_Source: https://npm.io/package/@umm/simple_screenshot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
