This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MarcoPolo0306's profile picture

paintutils.read()

Started by MarcoPolo0306, 05 May 2018 - 08:06 PM
MarcoPolo0306 #1
Posted 05 May 2018 - 10: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
KingofGamesYami #2
Posted 05 May 2018 - 10: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.
apemanzilla #3
Posted 12 May 2018 - 10:12 PM
Also, doesn't the paintutils/nfp format not support text anyways?
magiczocker #4
Posted 13 May 2018 - 10:04 AM
Also, doesn't the paintutils/nfp format not support text anyways?
nft includes background and text
nfp only includes background