sending_20image_20files_20to_20the_20printer
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sending_20image_20files_20to_20the_20printer [2018/03/31 13:19] – external edit 127.0.0.1 | sending_20image_20files_20to_20the_20printer [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
//by Richard Russell, May 2006, updated November 2010 and January 2012//\\ \\ BBC BASIC for Windows provides the ***DISPLAY** command to display an image contained in a Windows Bitmap (.BMP) file on the screen, but there is no equivalent command for sending the file to the printer. You can of course first display it on the screen and then transfer it to the printer using ***HARDCOPY**, | //by Richard Russell, May 2006, updated November 2010 and January 2012//\\ \\ BBC BASIC for Windows provides the ***DISPLAY** command to display an image contained in a Windows Bitmap (.BMP) file on the screen, but there is no equivalent command for sending the file to the printer. You can of course first display it on the screen and then transfer it to the printer using ***HARDCOPY**, | ||
==== BMP images ==== | ==== BMP images ==== | ||
- | \\ The program below allows you to send a **BMP** file to the printer. Although in this example nothing else is printed, you can if you wish output text or other images to the same page before finally printing it.\\ \\ | + | \\ The program below allows you to send a **BMP** file to the printer. Although in this example nothing else is printed, you can if you wish output text or other images to the same page before finally printing it. |
+ | |||
+ | <code bb4w> | ||
bmp$ = " | bmp$ = " | ||
VDU 2,1,32 | VDU 2,1,32 | ||
Line 24: | Line 26: | ||
SYS " | SYS " | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
+ | |||
The four numeric parameters to " | The four numeric parameters to " | ||
==== GIF or JPEG images ==== | ==== GIF or JPEG images ==== | ||
- | \\ If you want to print a **GIF** or **JPEG** file you can use the code below:\\ \\ | + | \\ If you want to print a **GIF** or **JPEG** file you can use the code below: |
+ | |||
+ | <code bb4w> | ||
pic$ = " | pic$ = " | ||
VDU 2,1,32 | VDU 2,1,32 | ||
Line 60: | Line 66: | ||
SYS !(!gpp%+8), gpp% | SYS !(!gpp%+8), gpp% | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
+ | |||
The parameters for " | The parameters for " | ||
==== PNG or TIFF images ==== | ==== PNG or TIFF images ==== | ||
- | \\ If you want to print a **PNG** or **TIFF** file you can use the code below:\\ \\ | + | \\ If you want to print a **PNG** or **TIFF** file you can use the code below: |
+ | |||
+ | <code bb4w> | ||
pic$ = " | pic$ = " | ||
VDU 2,1,32 | VDU 2,1,32 | ||
Line 118: | Line 128: | ||
SYS " | SYS " | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
+ | |||
The parameters for " | The parameters for " |
sending_20image_20files_20to_20the_20printer.1522502380.txt.gz · Last modified: 2024/01/05 00:16 (external edit)