You could use JAI package which runs on Linux very well.
Go the the URL:
http://java.sun.com/products/java-media/jai/index.html
The snippet of code looks like:
PlanarImage planarImage = JAI.create("fileload", "my_image.jpg");
BufferedImage buffImage = planarImage.getAsBufferedImage();
Pay attension to the import statement:
import javax.media.jai.*;
Hope it helps,
Jacob Nikom
Lopez Jose Ariel wrote:
> hello:
>
> i dont know if this is a right place for this post. if it isnt please
> somebody tell me where i can go for it (in java.sun seem to anyone
> answer that)
> i like apply a texture from a jpg file to a geometric shape.
> I saw some examples about textures, but the texture are the the built-in
> in jdk (i like to use one texture that there is in a file)
>
> i can create a texture from a buffered image but i dont know how create a
> bufferedimage from a file .jpg
>
> Somebody knows how do that?
>
> Any help would be apprecciated.
>
>
> Ariel Lopez
>
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]