Microsoft KB Archive/36350

= Why Imported Color/Gray Scale Picture Fails to Draw in BASIC =

Article ID: 36350

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft QuickBasic 1.0
 * Microsoft BASIC Compiler 6.0b
 * Microsoft BASIC Interpreter 3.0 for Macintosh

-



This article was previously published under Q36350



SUMMARY
This information applies to Microsoft QuickBASIC Version 1.00, BASIC Compiler Version 1.00, and BASIC Interpreter Version 3.00 for the Apple Macintosh.

Gray scale or color pictures imported from other programs will not appear when drawn in BASIC with the PICTURE statement or the DrawPicture library routine. No error message occurs.

On newer Macintosh systems (such as the Macintosh II), pictures may be created in full color or gray scale by some graphics applications. Apple calls these &quot;version 2&quot; Macintosh pictures. Version 2 pictures appear only when drawn into a color window. Although BASIC creates windows that can display eight colors, they are not full-color windows. BASIC does this so your program works correctly on any supported Macintosh, not just a color or gray scale Macintosh.



MORE INFORMATION
A &quot;version 1&quot; Macintosh picture contains hexadecimal 1101 in bytes 10 and 11 of the picture. A &quot;version 2&quot; picture contains hexadecimal 00 11 02 FF in bytes 10 to 13. Version 1 pictures are documented in &quot;Inside Macintosh&quot; Volume 1 and Macintosh Technical Note #21. Version 2 pictures are documented in &quot;Inside Macintosh&quot; Volume 5. The internal format of pictures are subject to change by Apple.

&quot;Inside Macintosh&quot; by Apple Computer, Inc. is a set of books published by Addison-Wesley Publishing Company, Inc.

Macintosh Technical Notes are published by Apple Computer.

Additional query words: MQuickB

Keywords: KB36350

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.