Jump to content




paintutils.read()


3 replies to this topic

#1 MarcoPolo0306

  • Members
  • 71 posts
  • LocationEverywhere and nowhere.

Posted 05 May 2018 - 09:06 PM

When making a program, it can sometimes too tedious to make a screenshot.

A function such as
paintutils.read()
would be useful in many applications.

Some ideas I had:
  • A sort of "screen sketch"
  • Screenshots
  • Live gameplay over Rednet (like YouTube Gaming or Twitch)
Command syntax:

paintutils.read(startX,startY,endX,endY,savePath)
startX, startY, endX, endY as a number
savePath as a string
Captures the specified region and saves the picture as a specified .NFP file.

CraftOS Built-in program

capture MyCapture.nfp
would capture the entire screen and save it as MyCapture.nfp

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 05 May 2018 - 09:10 PM

This makes no sense as a paintutils function as paintutils does not manage the screen. It would make more sense as a window function, and you can implement it yourself.

#3 apemanzilla

  • Members
  • 1,421 posts

Posted 12 May 2018 - 09:12 PM

Also, doesn't the paintutils/nfp format not support text anyways?

#4 magiczocker

  • Members
  • 46 posts

Posted 13 May 2018 - 09:04 AM

View Postapemanzilla, on 12 May 2018 - 09:12 PM, said:

Also, doesn't the paintutils/nfp format not support text anyways?
nft includes background and text
nfp only includes background





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users