Q44311: Importing Pictures from Other Programs into BASIC
Article: Q44311 Product(s): See article Version(s): 2.00 2.01 3.00 4.00 4.00b 4.50 Operating System(s): MS-DOS Keyword(s): ENDUSER | B_BasicCom B_GWBasicI | mspl13_basic Last Modified: 20-DEC-1989 Screen images displayed in some painting and picture-viewing programs can be imported to QuickBASIC. To do this, you must be able to exit program that displays the picture, and leave the viewed picture on the screen. Most programs that can terminate while leaving the screen intact can be used, as described below. This information applies to Microsoft QuickBASIC Versions 2.00, 2.01, 3.00, 4.00, 4.00b, and 4.50; Microsoft GW-BASIC Interpreter Versions 3.20, 3.22, and 3.23; Microsoft BASIC Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2; and to Microsoft BASIC PDS Version 7.00 for MS-DOS and MS OS/2. 1. The BASIC program must first activate the screen mode that the picture will be displayed in. This is done with a SCREEN statement. 2. The BASIC program should then SHELL out to the picture viewing program, which should display the picture and then exit, leaving the picture displayed (check the picture program's manual for the proper procedure to do this). 3. When the picture-viewing program has terminated, control is passed back to BASIC. The BASIC program can then use the BSAVE statement to save the screen image to disk. Note: There are several graphics programs available on CompuServe and GE GEnie (General Electric Network for Information Exchange) that are suitable for this use.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.