[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Conversion: from "Image" to "File"
|
"Philippe Ombredanne" <pombredanne@xxxxxxxx> ha scritto nel messaggio
news:d7lm5i$vm7$1@xxxxxxxxxxxxxxxxxxx
> "Barli" <bhbh@xxxxxxx> wrote in message
> news:d7lcoe$mak$1@xxxxxxxxxxxxxxxxxxx
> To save, use an ImageLoader, set its data with the ImageData of your Image
> Then call ImageLoader.save("yourfilename", SWT.IMAGE_"Format"):
>
> Something like that for Jpeg:
> ImageLoader imageSaver = new ImageLoader();
> ImageData idata = image.getImageData();
> imageSaver.data = new ImageData[]{idata};
> imageSaver.save("yourfilename.jpg", SWT.IMAGE_JPEG);
>
Thanks for the tip, but I don't want to save the image on hard disk!
I want to save it on a "file" in the sense of a file type java variable!
Any idea how to do it?
Many thanks,
Lari