Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] save object / load object (with image) corrupts the picture (bug)

From: peoyli::algonet::se at: 13-Apr-2001 14:49

Hi, Here is another problem I got with /View 1.0 Amiga. What I do is that I load a picture from the net into a word in an object. The object is then stored in a file for later retreival ("Save" button in example). When I then reload the object ("Load" button), the picture is yellowish/green when it is displayed. This bug does (so far) only appear in /View 1.0 for the Amiga. [ REBOL [ Title: {/View colorized image on Amiga (bug)} Purpose: {Example showing what happens to a picture when first loaded, saved to a text file, and then reloaded} ] testdata: make object! [ filename: "the_file" pic: load-thru/binary http://www.algonet.se/~peoyli/verona.jpg another_text: "another_text" ] view layout [ space 4x2 image testdata/pic button testdata/pic/size/x "Save" [save to-file testdata/filename testdata] button testdata/pic/size/x "Load" [ tdata: do load to-file testdata/filename view layout [image tdata/pic] ] ] ] /PeO -- /* PeO - AMiGA owner since 1990, CGI, Perl, Assembly language & HTML-fanatic *\ \* Amiga 4000TE/060-50/604e 200, 146Mb, 33.4Gb, ZIP, JAZ, CVPPC/8 */ /* IIyama VM Pro 21", CP-SW2 Subwoofer system, NEC-222 *\ \* Plextor 12-Plex, Yamaha CRW 4416S, Artec A6000C+, Stylus Color 500 */ /* Lightfax 3660, Catweazel Z-II (3*IDE, 1*PC Floppy), Minolta DImage V *\ \* SCSI-Tower, Seagate Tapestor 4/8GB, Ariadne Ethernet, Minolta PagePro 6 */