zane@ddsw1.MCS.COM (Sameer Parekh) (02/23/91)
I (will) have a file that has 2 numbers per byte. . . (Each four bits make one number.) and the file has 32000 bytes. Could someone write a program that takes this and makes it into a grayscale 320 X 200 picture with 16 grays? (The topmost line is the first 160 bytes.) And save it? I don't think I will ever learn to program the GS with graphics, so if someone can write something like that and can save the images as a file. . .(Uncompressed screen image will do.) The left most 4 bits will be the left most pixel . . .e. g. 8F means <gray 8><gray 15>. Thanks. I will send you the images I save if you like. (They will be fractals.) -- zane@ddsw1.MCS.COM
jjstrout@miavx1.acs.muohio.edu (Joe Strout Miami University, Oxford OH) (02/23/91)
In article <1991Feb23.061145.14449@ddsw1.MCS.COM>, zane@ddsw1.MCS.COM (Sameer Parekh) writes: > I (will) have a file that has 2 numbers per byte. . . > (Each four bits make one number.) and the file has 32000 bytes. > Could someone write a program that takes this and makes it into > a grayscale 320 X 200 picture with 16 grays? (The topmost line > is the first 160 bytes.) And save it? . . .(Uncompressed screen > image will do.) You've just described the layout of the 320-mode super-hires screen. It short, you've _already_ got an uncompressed screen image. The only hangup I forsee is the filetype; other software (such as DeluxPaint or your word processor) will not recognize it if its filetype is BIN. According to _Exploring the Apple IIGS_ by Gary Little, you want filetype $08. There are a number of utilities that can change filetype; I know ProBlock (which recently appeared in comp.binaries.apple2) can do this. I think that if you simply change the filetype to $08, you'll be all set; you can then view it, print it, etc. from any decent graphics editor such as DeluxPaint. Joe Strout Miami University, OH jjstrout@miavx1.acs.muohio.edu
zane@ddsw1.MCS.COM (Sameer Parekh) (02/27/91)
Thanks for everyone's help. I appreciate it. -- zane@ddsw1.MCS.COM