Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using LPrint and _Printimage together
#2
Try this very simple demo, and see if it helps explain the steps to do what you're trying to do:



Code: (Select All)
$Color:32
Screen _NewImage(850, 1100, 32) 'Create a page which scales nicely to 8.5 x 11 -- which is the standard print page
'in this case, I'm scaling x100 for 850 x 1100 in size.
'and I'm running in 32-bit color as you used the Color:32 statement above it


Cls , White 'now set that screen to being white, so it matches a sheet of paper.
'With paper, we print colored in on a standard white background usually.
'change this background if you're using color paper so you can see what stands out and is readable,
'if you want/need.


'Now print everything which you'd like to appear on that page on the screen

_PrintMode _KeepBackground 'I don't want to print black background on my white pages.
Color Red
Locate 10, 10: Print "Hello World"
Color Gold
Locate 20, 15: Print "My name is STEVE!!"
Color Blue
Locate 15, 20: Print "I am AMAZING!!!"

Sleep 'A sleep statement so you can preview what the page will look like before we send it to the printer

_PrintImage 0 'print the visible screen to the default system printer

Sleep 'another pause so we can grab our physical handout and compare it to what the screen looks like.

End 'And now we're done!
Reply


Messages In This Thread
RE: Using LPrint and _Printimage together - by SMcNeill - 04-06-2024, 03:52 PM



Users browsing this thread: 1 Guest(s)