[REBOL] Re: image conversion
From: rebolek:g:mail at: 2-Mar-2006 14:49
Hi Tim,
If your image is string!, use following code:
>>image: load to binary! image-in-string
if your image is binary!, it's even easier:
>>image: load image-in-binary
Regards,
rebolek
On 3/2/06, Tim Hendriks <th72-dds.nl> wrote:
>
> Hello List,
>
> I have a problem...
>
> Is it possible to convert binary data to an image?
>
> I use an external program (via call) to produce a image. I can capture
> the image via call/output but then I am lost.
>
> Out is then a string! type like this:
>
> {GIF87a
> ^A+^A=91^-^-=FF=FF=FF^-^-^-=E5=D3=C9^-^-^-,^-^-^-^-
>
> ^A+^A^-^B=FF=84=8F=A9=CB=ED^O=A3=9C=B4=DA=8B=B3=DE=BC=FB^O=86=E2H=96=E6=89
> =A6=EA=CA=B6=EE^K=C7=F2L=D7=F6=8D=E7=FA=CE=F7=FE^O^L
> =87=C4=A2=F1=88L*=97=CC=A6=F3^-=8DJ=A7=D4=AA=F5=8A=CDj=B7=DC=AE...
>
> Can I convert this to a REBOL image type so that I can display it with vi
> ew?
> I tried converting it to-binary, but no succes...
>
> Thanks
>
> Tim
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
/
Boleslav Brezovsky
http://krutek.info
\