Skip to main content

[JAVA2D] Image information

1 reply [Last post]
Anonymous

Hi everybody,

I am new to Java.

If anybody, give some information or resource link for following, I will be greatly appreciate.

If I provide image file path, I want to know how can I retrieve, Image file Name, File Size, Width, Length, No. of Pixels, No. of colors, author name, and date modified.

Is there any way I can rotate the Image?

Is there any way I can create a thumbnail for the Image I specified?

Please send some information.

Thanks very much.

Thusantha

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ho Han Keng

hello,
If you provide image file path, chances are you already know the filename. :(

BufferedImage can return Width and Height. Their product gives No. of Pixels.
No. of colors?!...

Please read the "Java2D API Graphics" by Vincent J. Hardy, Sun Microsystems Press.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".