Results 1 to 2 of 2
- 07-04-2008, 01:15 PM #1Member
- Join Date
- Jul 2008
- Rep Power
urgent please.what do 4 repeating fields in byte array of jpeg specify?
i have a jpeg image that is completely red. i used BufferedImage to construct its object and then used getRGB(i,j) to get values at all the pixel locations.
displaying in binary formatting gave me the 24 bit repeating integer
11101101 00011011 00100100
then i used ImageIO with format "jpg" to write to ByteArrayOutputStream and then convert it to byte array. and again printed array values . now that gives me these 4 bytes repeating.
first of all how could the byte value change.
second where did the fourth byte come from? it should be only rgb.
also please tell me which of the bytes is red ,green and blue?
- 07-04-2008, 05:39 PM #2
- By shaktish in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 02-17-2009, 03:52 PM
- By sandor in forum New To JavaReplies: 12Last Post: 01-15-2009, 04:31 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 01-16-2008, 11:41 AM
- By artemis_r2 in forum New To JavaReplies: 1Last Post: 11-17-2007, 05:48 AM
- By Hasan in forum New To JavaReplies: 1Last Post: 05-31-2007, 03:42 PM