POV-Ray : Newsgroups : povray.general : hacking TARGA the easy way : Re: hacking TARGA the easy way Server Time
9 Aug 2024 03:22:15 EDT (-0400)
  Re: hacking TARGA the easy way  
From: Warp
Date: 29 Aug 2000 08:32:28
Message: <39abad5b@news.povray.org>
The raw targa file format outputted by povray is extremely simple. It has
18 bytes of header data at the beginning and then the image follows as raw
data. I don't remember which pair of 16 bits of the header data tells the
dimensions of the image but that should be easy to discover (either by
lookin it up in some spec or by examining the header directly with a
hex editor (and knowing the dimensions of the image)).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.