All Projects → nisrulz → Screenshott

nisrulz / Screenshott

Licence: apache-2.0
[Android Library] Take a screenshot of your view layout , programmatically!

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Screenshott

Instacapture
Android library to capture screenshot from your app
Stars: ✭ 681 (+118.97%)
Mutual labels:  screenshot, bitmap
Quickshot
Capture images of any View, SurfaceView or Bitmap from your Android app in: .jpg .png or .nomedia with simple oneliner codes.
Stars: ✭ 663 (+113.18%)
Mutual labels:  screenshot, bitmap
TakingImageOfAView
An example on how to take screenshot of a particular view
Stars: ✭ 15 (-95.18%)
Mutual labels:  screenshot, bitmap
Capturable
🚀Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image🖼️
Stars: ✭ 365 (+17.36%)
Mutual labels:  screenshot, bitmap
Gostl
Data structure and algorithm library for go, designed to provide functions similar to C++ STL
Stars: ✭ 254 (-18.33%)
Mutual labels:  bitmap
ws-screenshot
A simple way to take a screenshot of a website by providing its URL. ws-screenshot include a simple web UI but also a REST API and a Websocket API to automate screenshots.
Stars: ✭ 31 (-90.03%)
Mutual labels:  screenshot
snapcrawl
Crawl a website and take screenshots
Stars: ✭ 37 (-88.1%)
Mutual labels:  screenshot
Jamscreenshot
一个用python实现的类似微信QQ截屏的工具源码,整合提取自本人自制工具集Jamtools
Stars: ✭ 23 (-92.6%)
Mutual labels:  screenshot
Browsershot
Convert HTML to an image, PDF or string
Stars: ✭ 3,526 (+1033.76%)
Mutual labels:  screenshot
Linux Command
Linux命令大全搜索工具,内容包含Linux命令手册、详解、学习、搜集。https://git.io/linux
Stars: ✭ 17,481 (+5520.9%)
Mutual labels:  screenshot
bitmap
Bitmap Data Structure In Golang
Stars: ✭ 27 (-91.32%)
Mutual labels:  bitmap
freeshooter
This is old-school tool for taking screenshots without bloatware features, simple as life, light as air.
Stars: ✭ 102 (-67.2%)
Mutual labels:  screenshot
Swappy
A Wayland native snapshot editing tool, inspired by Snappy on macOS
Stars: ✭ 264 (-15.11%)
Mutual labels:  screenshot
screenshot-actions
Dunst actions for screenshots (OCR, upload to 0x0.st, delete, rename, move to/from clipboard)
Stars: ✭ 49 (-84.24%)
Mutual labels:  screenshot
Webshot Factory
Web Screenshots at scale based on headless chrome
Stars: ✭ 288 (-7.4%)
Mutual labels:  screenshot
puppeteer-screenshot-tester
Small library that allows us to compare screenshots generated by puppeteer in our tests.
Stars: ✭ 50 (-83.92%)
Mutual labels:  screenshot
Katana
🚀 a powerful, open-source screenshot utility for macOS
Stars: ✭ 270 (-13.18%)
Mutual labels:  screenshot
scrab
Screenshot plugin for obs-studio
Stars: ✭ 49 (-84.24%)
Mutual labels:  screenshot
zigimg
Zig library for reading and writing different image formats
Stars: ✭ 112 (-63.99%)
Mutual labels:  bitmap
Menyoki
Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
Stars: ✭ 255 (-18.01%)
Mutual labels:  screenshot

Image

Specs

Download API

Badges/Featured In

Android Arsenal AndroidDev Digest

Show some ❤️ and star the repo to support the project

GitHub stars GitHub forks GitHub watchers GitHub followers Twitter Follow

Take a screenshot of your view layout , programmatically!

sc1 sc2

Including in your project

ScreenShott is available in the Jcenter, so getting it as simple as adding it as a dependency

compile 'com.github.nisrulz:screenshott:{latest version}'

where {latest version} corresponds to published version in Download

Usage

  • Get bitmap of screenshot

    // View with spaces as per constraints
    Bitmap bitmap_view = ScreenShott.getInstance().takeScreenShotOfView(view);
    
    // RootView
    Bitmap bitmap_rootview = ScreenShott.getInstance().takeScreenShotOfRootView(view);
    
    // Just the View without any constraints
    Bitmap bitmap_hiddenview = ScreenShott.getInstance().takeScreenShotOfJustView(view);
    
    // Texture View
    Bitmap bitmap_textureview= ScreenShott.getInstance().takeScreenShotOfTextureView(textureview);
    
  • Save the bitmap using the provided helper function

    File file = ScreenShott.getInstance().saveScreenshotToPicturesFolder(context, bitmap, "my_screenshot_filename");
    

    You can use the file object returned by saveScreenshotToPicturesFolder() to get the file object and then the path of the file saved

    String bitmapFilePath = file.getAbsolutePath();
    

    Add permission <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> to your AndroidManifest.xml

    Request the runtime permission for android.permission.WRITE_EXTERNAL_STORAGE to allow saving the file to external storage.

    .. or save the bitmap with your own implementation

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using CMD+Option+L (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.
  2. If its a feature, bugfix, or anything please only change code to what you specify.
  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  5. Check for existing issues first, before filing an issue.
  6. Have fun!

Created & Maintained By

Nishant Srivastava (@nisrulz)

If you found this library helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️

  • PayPal
  • Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL

License

Copyright 2016 Nishant Srivastava

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].