Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Can AGK use a printer?

Author
Message
Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 26th Jun 2016 10:31
Hi guys, I just would to know if I can send, from my app, a picture to a printer.

I can't find info about to use a printer from an app made by AGK

Thank you in advance
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 26th Jun 2016 15:58
Hey Alduce, you can use the PrintImage command to send an image to a printer. I've never used this command myself, but should be easy to test. Here's a quick look at it's usage:



image# is obvious, while size is the percentage the image will take up on the printed page. One other thing to consider, to just plug this into your main loop or you'll get a crash and a thousand printed images real quick. You'll need to add some sort of duplicate check:



Than once the page has printed change p back to zero.

Good luck and have fun.
My workstation was destroyed in a fire, help me out and get free media for AppGameKit and Game Guru: https://www.gofundme.com/bfpm0g
Alduce
21
Years of Service
User Offline
Joined: 26th Oct 2002
Location: Rama spaceship
Posted: 26th Jun 2016 16:15
Thank you JLMoondog, you have been very kind! I'll try that

Login to post a reply

Server time is: 2024-03-29 04:52:00
Your offset time is: 2024-03-29 04:52:00