Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
ThatSimon

Draw a Picture

Question

Posted

Hey!

I saw a video, in wich you could see images on OpenComputer computer screens.
Can anyone explain how to do that, and maybe give an example of how  I could do that?

2 answers to this question

Recommended Posts

  • 0
Posted

Hi!

 

I would imagine they used libPNGimage, an awesome library for working with PNGs made by TehSomeLuigi on the forums (link: https://oc.cil.li/index.php?/topic/266-libpngimage-a-preliminary-library-for-decoding-encoding-png-images/#entry1047 ) I have never used this library but there are some programs in the replies to that post with some image displaying code. A replier called MoonLightOwl posted some code for displaying images on screens called ToShowViewer (link: http://pastebin.com/UqM8dTjH ) I have not personally used any of this code but it looks like it might be what you are looking for,

  • 0
Posted

Well, I've got that, but I cant get it to open my png files. I've copied them on to the OC HardDrive with the programms , ran the programm and entered the path("/test.png")

Then I've got an error:

PNGView: PNG loading Error
While attempting to load '/test.png' as PNG,libPNGImage erred:
/deflatelua.lua:115: unexpected end of file with content 8

How do I fix this?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.