This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

friends, help me out by giving solution

 
u sankarlal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I'm having the Imageicon which is placed with an image. Now , I've to get the number of pixels in that image. How to achieve that ?
Anu-maheswari
 
Vinod Venugopal
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If u get access to the image , then getPixels() of PixelGrabber class should do.
 
u sankarlal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
thanx. I completed that with multiplying getIconHeight() and getIconWidth(). Now, the problem is I've to find the number of colors in that image ? Do you have any idea about that ?
thanx once again.
Friendly,
Anu-Maheswari
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posted your answer here

-Nate
 
u sankarlal
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I'm having one serious problem while dealing images. I 'm in need to find the size of the image occupied in memory. How to find that.

Also, how to find the properties of the image which should provide number of colors for that image ? That is, by using pixel grabber class, we can get the individual pixel and do the calculation, but that will be giving only the number of colors used in the image. But, what I need is total number of colors., irrespective of used or unused.
thanks in advance
Anu-Maheswari
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic