Perl/Tk: Show Image from a String

From: Michael (mtest001_at_yahoo.com)
Date: 05/16/04


Date: 16 May 2004 13:58:56 -0700

I am trying to generate images on the fly and want to display them in
Perl/Tk without writing them to the disk. I tried to use the -data
option with JPEG, GIF, and PNG, but I always get the following error
message:

couldn't recognize image data at K:/Perl/site/lib/Tk/Image.pm line 21.

I tried the same code with a XBM file, and it worked. For the same
data, if I use -file option and load the image from a file, then it
will work too.

I am really lost, and please help.

Thank you very much.

Mike



Relevant Pages

  • Re: Ultima, ADT and Mockingboard Problems
    ... Duodisk incompatibility - I do not believe the Duodisk's ... before writing the new images using ADT Pro's Apple II client. ... ADTPro will completely stomp on whatever was on the disk before, ...
    (comp.sys.apple2)
  • Re: Hardware musings
    ... complexities we are discussing) or writing real disks from the images ... Sorry, I meant to say, writing disks from available images. ... "universal image" into a physical copy-protected disk. ... on the writing drive (floppy drives don't have a way to read adjacent ...
    (comp.sys.apple2)
  • Daily #4116
    ... Resovled Images of LMC Microlensing Events Observed by a Telescope at ... caused by faint LMC stars. ... Testing the Stellar Coalescence and Accretion Disk Theories of Massive ...
    (sci.astro.hubble)
  • Sharpest Image Ever Obtained of a Circumstellar Disk Reveals Signs of Young Planets
    ... SHARPEST IMAGE EVER OBTAINED OF A CIRCUMSTELLAR DISK REVEALS SIGNS ... are signs of unseen planets. ... has acquired high resolution images of the nearby star AU ...
    (sci.astro)
  • NIB to Disk!
    ... portable) for the PC that splits the .nib image into tracks, marks sync bytes, makes sure the track start is at the start, removes garbage and shortens inter-sector gaps, all to fit the 53248 bits per track of a ..nib image into the merely 51024 bits per track of a well-adjusted Disk II drive. ... tracks as files from a DOS 3.3 disk and then writes them to a new disk. ... and transfers the track files to the disk images. ... the game: the demo program, the player disk copier, the start of the ...
    (comp.sys.apple2)