Why Imported Color/Gray Scale Picture Fails to Draw in BASIC (36350)
The information in this article applies to:
- Microsoft QuickBASIC 1.0
- Microsoft BASIC Compiler
- Microsoft BASIC Interpreter for Apple Macintosh 3.0
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 "version 2" 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 "version 1" Macintosh picture contains hexadecimal 1101 in bytes 10
and 11 of the picture. A "version 2" picture contains hexadecimal 00 11
02 FF in bytes 10 to 13. Version 1 pictures are documented in "Inside
Macintosh" Volume 1 and Macintosh Technical Note #21. Version 2
pictures are documented in "Inside Macintosh" Volume 5. The internal
format of pictures are subject to change by Apple.
"Inside Macintosh" by Apple Computer, Inc. is a set of books published
by Addison-Wesley Publishing Company, Inc.
Macintosh Technical Notes are published by Apple Computer.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB36350 |
---|
|