Java-Gaming.org Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (678)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (730)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Reading image dimensions  (Read 1273 times)
0 Members and 1 Guest are viewing this topic.
Offline appel

JGO Wizard


Medals: 73
Projects: 4


I always win!


« Posted 2006-02-07 09:01:53 »

Hello,

I'm wondering what is the fastest computational way to get the dimensions of a image on a local disk? I don't want to load the image into memory, not unless I really need to...

any ideas?

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline oNyx

JGO Coder


Medals: 2


pixels! :x


« Reply #1 - Posted 2006-02-07 09:21:38 »

Reading the header... the info is there. (The header is as the name suggests at the very beginning of a file.)

弾幕 ☆ @mahonnaiseblog
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2006-02-07 15:16:30 »

I think ImageIO can do this.. that is get image metadata without decoding the full image.  Check the docs.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline appel

JGO Wizard


Medals: 73
Projects: 4


I always win!


« Reply #3 - Posted 2006-02-08 07:06:04 »

thanks guys.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
theagentd (39 views)
2016-05-14 18:38:35

theagentd (70 views)
2016-05-10 22:37:41

theagentd (74 views)
2016-05-10 22:33:46

IanParcs (106 views)
2016-04-18 14:18:53

KaiHH (99 views)
2016-04-18 08:35:41

KaiHH (125 views)
2016-04-15 12:43:58

theagentd (130 views)
2016-04-14 02:16:17

theagentd (152 views)
2016-04-14 02:15:43

IanParcs (243 views)
2016-04-12 03:51:16

IanParcs (91 views)
2016-04-12 03:50:03
FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!