Hiding Images in Java

Hi all,
I have to implement the Steganography using Java, i have to get two images and have to hide one image in another , please give me some ideas or sample links where i can explore to implement it...
Thanks & Regards,
Justin

Google
Wikipedia
http://www.cs.bham.ac.uk/~mdr/teaching/modules/security/lectures/Steganography.htm

Similar Messages

  • Hiding icons in java!!!

    Hi people!
    Is there any way of hiding images that i use in my JAVA applications, for example, icons.
    This is very crucial because the icons that i build should not be used easily by others. I have purchased these icons from various vendors.
    Please help me in the same.
    Thanks in advance.
    Leo

    You cannot make it impossble to get hold of the icons, just difficult. I have used two approaches in the past -
    (1) Encrypt the images
    (2) Turn the images into bytes within a Java file.
    An example of (2) is
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class DragonPainter  extends JFrame   implements ActionListener
        private static class Model
            private int x = 100;
            private int y = 10;
            private int deltax = 11;
            private int deltay = 13;
            public void update()
                x += deltax;
                if ((x > 400) || (x < 100))
                    deltax = -deltax;
                y += deltay;
                if ((y > 300) || (y < 10))
                    deltay = -deltay;
        private static final byte[] dragonImageBytes =
            71,73,70,56,57,97,-106,0,-106,0,-9,0,0,-124,0,0,-125,0,0,-126,
                    0,0,-127,0,0,-128,0,0,127,0,0,29,29,21,15,15,11,64,64,47,
                    49,49,36,-82,-82,-127,-105,-105,112,96,96,71,77,77,57,73,73,54,54,54,
                    40,-1,-1,-66,-2,-2,-67,-3,-3,-68,-5,-5,-69,-7,-7,-71,-15,-15,-77,-22,
                    -22,-82,-29,-29,-87,-36,-36,-92,-45,-45,-99,-57,-57,-108,-64,-64,-113,-69,-69,-117,
                    -73,-73,-120,-87,-87,126,-92,-92,122,-96,-96,119,-100,-100,116,-115,-115,105,-124,-124,
                    98,-128,-128,95,118,118,88,114,114,85,110,110,82,105,105,78,82,82,61,59,
                    59,44,43,43,32,-11,-11,-73,-51,-51,-103,-78,-78,-123,-110,-110,109,123,123,92,
                    91,91,68,87,87,65,-120,-120,102,100,100,75,68,68,51,36,36,27,21,21,
                    16,-67,-106,112,-36,-79,-122,93,76,58,-15,-65,-113,-51,-98,118,-77,-117,104,-25,
                    -57,-84,-30,-95,120,-54,-113,107,-17,-84,-128,-7,-76,-119,-77,125,93,123,87,67,
                    -9,-92,122,-39,-110,109,-59,-122,100,-60,121,90,61,40,31,-14,-112,108,-45,126,
                    94,-73,110,82,-92,99,75,83,51,39,-29,-128,96,-55,-107,-125,-43,110,82,-12,
                    -126,97,120,65,50,-73,93,69,-45,92,68,-14,111,84,-89,77,58,-112,75,60,
                    -73,122,108,55,24,18,83,36,28,-45,72,53,-93,61,46,-16,93,70,-73,72,
                    54,106,41,32,70,29,23,-16,-118,124,-68,55,41,-19,73,55,-108,51,39,125,
                    46,36,-87,42,31,-103,39,29,-47,55,41,-92,26,19,-113,27,20,-34,44,33,
                    -68,38,28,-14,55,41,-124,35,28,99,29,24,-37,17,12,-51,18,13,-66,18,
                    13,-96,15,11,-9,25,18,-115,14,10,-90,17,13,-120,15,11,-78,20,15,-99,
                    17,13,-24,27,20,-105,17,13,-40,28,21,-110,18,14,-118,17,13,-57,29,21,
                    -11,39,29,-103,24,18,-2,0,0,-3,0,0,-5,0,0,-7,0,0,-10,0,
                    0,-12,0,0,-13,0,0,-16,0,0,-17,0,0,-20,0,0,-22,0,0,-24,
                    0,0,-25,0,0,-28,0,0,-30,0,0,-32,0,0,-34,0,0,-36,0,0,
                    -38,0,0,-40,0,0,-41,0,0,-44,0,0,-45,0,0,-47,0,0,-50,0,
                    0,-51,0,0,-53,0,0,-55,0,0,-57,0,0,-59,0,0,-61,0,0,-63,
                    0,0,-66,0,0,-68,0,0,-70,0,0,-72,0,0,-73,0,0,-75,0,0,
                    -77,0,0,-80,0,0,-82,0,0,-83,0,0,-86,0,0,-88,0,0,-89,0,
                    0,-91,0,0,-94,0,0,-95,0,0,-98,0,0,-100,0,0,-101,0,0,-103,
                    0,0,-106,0,0,-108,0,0,-110,0,0,-112,0,0,-114,0,0,-115,0,0,
                    -118,0,0,-119,0,0,-122,0,0,-123,0,0,-117,2,1,-122,1,1,-123,2,
                    1,-67,3,2,-76,3,2,-79,3,2,-85,3,2,-87,3,2,-91,3,2,-94,
                    3,2,-96,3,2,-99,3,2,-101,3,2,-103,3,2,-105,3,2,-109,3,2,
                    -111,3,2,-115,3,2,-118,3,2,-119,3,2,-123,3,2,-125,3,2,-80,4,
                    3,-81,4,3,-90,4,3,-97,4,3,-104,4,3,-106,4,3,-124,4,3,-125,
                    4,3,-127,3,3,-109,5,4,-5,9,7,-12,9,7,-19,9,7,-28,9,7,
                    -83,7,5,-85,7,5,-93,7,5,-126,6,4,-35,9,7,-41,9,7,-48,9,
                    7,-54,9,7,-60,9,7,-68,9,7,-76,9,7,-90,8,6,-120,6,5,-123,
                    7,5,-84,9,7,-114,8,6,-95,9,7,-97,9,7,-101,9,7,-6,16,12,
                    -14,16,12,-108,9,7,-23,16,12,-119,10,7,-123,9,7,-30,17,13,-1,-1,
                    -1,33,-7,4,1,0,0,-1,0,44,0,0,0,0,-106,0,-106,0,64,8,
                    -1,0,-1,9,28,72,-80,-96,-63,-125,8,19,42,92,-56,-80,-95,-61,-121,16,
                    35,74,-100,72,113,-96,11,54,-103,78,-43,-86,-43,73,-46,-94,10,21,67,-118,
                    28,73,-48,78,-81,94,-68,118,-19,-22,5,96,0,31,53,119,-38,112,-31,-14,
                    -28,73,-124,29,16,32,-112,28,88,74,-44,39,80,-93,80,-67,-102,-75,75,64,
                    46,86,-102,30,29,34,68,-24,-62,-50,-89,80,73,-70,112,-95,33,67,6,126,
                    -64,2,8,24,64,-96,-85,-41,-81,94,7,-120,21,64,118,43,87,-80,97,7,
                    4,0,-64,-106,45,-80,95,-65,122,-27,-70,37,-85,-43,-104,23,37,70,116,-104,
                    117,75,87,-44,-65,33,45,-119,-118,-91,-117,-27,86,-76,94,11,40,94,-52,88,
                    113,-41,2,95,-57,-106,21,27,121,-128,-128,0,1,-80,8,-15,66,-27,-116,30,
                    86,-98,44,65,106,-12,4,-80,105,-121,117,40,-95,-102,-43,-53,114,-42,1,77,
                    76,56,64,-111,-26,20,-84,92,44,41,63,94,28,54,-128,47,92,-78,74,117,
                    90,96,99,96,-66,67,23,22,73,26,21,-53,86,-117,90,-77,100,-47,-62,-27,
                    43,0,-127,0,113,85,-14,-14,5,-32,112,87,1,0,120,-51,-1,82,-123,105,
                    -47,-95,64,25,78,67,-83,4,-86,85,25,26,43,16,-42,97,20,-22,-43,46,
                    96,2,-66,54,102,-36,117,0,-80,94,-77,120,2,-119,33,-124,24,97,80,46,
                    39,36,-44,65,33,-122,28,-94,-36,37,-98,-116,82,-54,41,20,-110,34,10,32,
                    81,40,-16,1,8,56,44,-63,8,35,-115,68,-110,9,40,-85,-44,-94,-117,0,
                    -67,-40,50,74,35,75,-71,-79,-128,122,35,89,81,72,35,-92,-80,22,-64,89,
                    -107,-23,-106,-104,99,96,-87,5,-116,47,-71,-40,-46,-54,40,-100,72,-62,-120,34,
                    -121,-112,33,4,-116,2,45,0,-62,2,52,-88,-64,-28,72,-124,24,-62,-56,40,
                    -72,-64,101,-53,43,-87,-84,34,2,65,-120,52,-40,8,38,-86,-36,-62,11,126,
                    56,-18,-72,31,-113,-120,-75,-39,-97,101,0,0,89,75,42,-102,68,-126,-63,-108,
                    120,14,68,72,33,-116,-112,-14,-117,39,-118,24,2,-61,67,34,-72,-64,-32,33,
                    -115,92,-14,-55,42,-77,-32,-62,-53,47,-81,-91,-23,-26,-92,-69,65,-122,24,-100,
                    -65,-51,82,10,37,-116,16,72,72,-98,59,-91,-127,-117,0,-69,-68,0,24,10,
                    -123,70,-95,72,35,-112,64,56,-118,42,-83,-84,-1,18,5,65,53,-48,48,-61,
                    7,100,28,-110,8,35,-109,108,114,-118,44,-73,-12,-14,26,88,-106,-10,6,-52,
                    46,-79,-108,18,9,-127,-125,-128,122,26,4,104,-32,98,75,44,-84,-100,2,-118,
                    38,81,-96,96,0,-88,65,84,57,-119,42,-74,84,87,-106,86,58,122,37,-64,
                    47,-68,-64,-94,9,35,-123,12,-78,-127,-77,11,5,-111,-58,43,102,-2,98,22,
                    0,-65,-24,34,-117,42,72,52,-80,-19,65,57,45,4,-63,28,-98,92,18,-121,
                    -127,33,65,48,-94,41,61,-88,112,-64,63,19,124,66,74,44,-44,-35,-88,102,
                    127,1,-92,24,-54,34,-19,14,-102,-89,18,-96,-108,-39,-53,47,22,-21,71,105,
                    90,107,-3,-30,75,74,-69,-16,50,50,-71,-40,-35,34,-118,36,-122,-72,-31,-79,
                    68,57,81,-47,15,-66,112,1,3,0,-71,-110,18,80,44,90,3,0,-80,-117,
                    44,-101,32,57,-125,122,74,44,-46,9,43,-71,-112,28,-42,101,63,-94,-60,75,
                    19,51,-92,-16,-64,13,12,-99,-80,64,32,-122,36,66,-119,41,-78,-16,-46,-35,
                    -91,-32,-83,124,11,-75,-92,120,-94,-119,37,-108,76,50,-55,37,-104,112,34,-118,
                    41,-83,0,-37,-117,117,-105,97,-1,70,86,-71,-113,-11,24,-98,45,-86,-8,-12,
                    -94,64,95,-24,-46,67,2,-89,17,114,72,37,-89,-28,2,-64,117,-66,-24,-46,
                    74,38,-112,68,-15,-64,68,-29,-115,66,-127,18,-100,-108,-110,-73,-103,-66,-96,73,
                    64,-38,-69,-28,-126,75,23,-38,-2,115,-62,11,75,-116,-77,-56,36,79,-101,105,
                    122,-32,-109,98,-102,-110,47,10,-96,80,-36,63,-117,44,2,-55,40,-71,124,-94,
                    72,33,75,-25,89,-91,35,-84,-24,114,73,34,60,-60,7,-47,17,-68,-24,-126,
                    -53,45,-75,-44,-91,10,41,-96,120,-46,-55,-9,-97,-124,34,97,42,-83,-52,-46,
                    -61,8,53,112,109,16,4,-108,-128,66,88,117,-3,-127,-89,-14,73,33,-96,-64,
                    -8,63,109,-76,-96,64,12,-1,70,68,6,39,-81,-48,69,40,-40,0,47,73,
                    -92,66,23,-75,0,-60,-51,-32,5,1,69,124,75,88,-77,48,69,26,104,-48,
                    63,120,-31,-128,0,104,8,1,-68,4,114,65,13,-26,-87,8,-89,-104,69,23,
                    26,-96,-66,13,-102,-16,-124,4,57,2,46,90,-125,-117,47,-96,-16,-123,48,100,
                    8,34,24,97,9,88,-36,-62,20,-109,72,4,-127,44,16,-61,24,58,-128,1,
                    35,80,64,21,-1,88,37,9,76,124,98,20,-84,-32,-117,-39,8,-16,31,94,
                    -52,5,58,-79,-120,-123,44,102,81,11,91,-36,-30,22,-74,-104,69,116,100,49,
                    -59,91,56,10,63,84,-80,-64,5,124,118,35,1,0,67,23,-79,64,69,38,
                    30,-79,8,69,56,69,32,16,16,2,25,-4,1,9,70,-116,-61,11,18,-24,
                    -31,83,76,64,-126,23,120,-128,3,92,-128,-124,32,-25,22,-118,-14,-19,-126,100,
                    65,-45,-49,-102,22,-55,72,55,-99,11,64,-93,-72,-124,34,16,-90,71,-64,4,
                    -63,18,-85,57,-45,-115,44,19,-128,-73,-64,-123,100,-34,17,26,127,34,115,25,
                    0,-8,-52,50,67,112,18,15,80,-47,10,91,-68,-52,44,93,-15,13,47,110,
                    -95,-59,59,68,-95,12,102,-64,2,19,-98,112,5,65,-64,34,20,-104,96,-60,
                    33,10,81,8,-112,84,-78,33,100,-128,-124,40,96,65,0,90,-80,66,4,9,
                    40,-31,63,-92,-64,-120,77,-48,-85,58,105,-38,-49,119,-14,-75,-118,28,18,34,
                    6,7,97,3,41,74,-63,0,-126,40,-127,65,-117,0,-32,45,-72,19,-54,55,
                    89,102,50,92,-63,-50,46,-24,-94,-118,80,104,2,18,58,108,87,17,98,104,
                    -1,11,62,-64,64,-102,6,9,-57,34,42,-47,10,93,-40,75,-111,-115,124,19,
                    0,122,-127,-117,86,116,36,-97,60,-52,-45,7,-10,116,-120,72,48,7,0,-92,
                    -56,33,34,76,117,-52,-127,72,-95,16,-118,-16,68,45,120,-63,55,114,-107,-95,
                    7,-103,-110,-123,45,118,-127,77,98,-115,-78,71,-91,124,-117,47,122,97,61,44,
                    106,49,22,-80,120,-123,43,118,-6,-118,87,-64,34,-118,-78,-64,-87,43,82,97,
                    79,72,44,-62,13,38,-88,96,71,31,50,-120,66,36,98,19,-74,24,64,43,
                    114,-120,15,7,32,4,4,70,-40,19,34,36,33,10,86,-40,98,59,-35,1,
                    -100,40,25,73,86,-104,118,114,126,-69,-48,-59,45,104,1,-117,83,108,66,18,
                    -119,40,4,33,-108,-80,84,-122,92,0,17,-109,-48,-56,37,28,65,3,-111,124,
                    -96,14,-123,56,4,35,34,-63,9,84,-72,-62,22,-123,-7,-59,-49,-52,50,22,
                    124,-83,76,37,45,-21,-123,47,32,-43,-99,118,38,-90,71,-40,-31,5,45,74,
                    -111,9,-114,17,-62,10,117,77,72,-126,40,18,-124,42,-104,-126,21,76,56,13,
                    7,-10,-108,8,76,-108,34,92,-8,-95,-108,107,118,1,11,81,-1,52,66,-82,
                    94,8,109,65,-58,-32,-88,-55,-7,70,-83,-82,24,69,21,40,-8,66,124,36,
                    -94,18,-87,-104,5,31,74,-96,0,45,-46,-62,-96,45,-63,29,1,-44,-30,-117,
                    90,-96,2,18,114,5,2,10,33,48,-118,87,124,53,82,-58,-102,105,90,117,
                    1,-39,-71,-56,-30,20,85,104,-127,7,102,48,90,-126,-16,-32,68,-102,-118,68,
                    34,62,-96,-44,-119,44,64,6,21,-28,-126,13,117,33,46,28,53,-58,43,25,
                    -69,5,41,26,65,-96,-66,-62,72,17,-106,80,69,45,12,115,-106,-95,-59,15,
                    59,43,123,98,80,117,-22,83,42,-34,98,37,-96,12,-102,101,126,-127,-117,88,
                    -128,-30,17,-120,40,4,25,-34,-40,16,26,-64,64,4,10,96,-62,24,94,81,
                    -117,21,14,75,77,-59,-126,83,92,36,-37,3,25,-124,-32,22,67,98,71,9,
                    78,-29,6,68,68,34,21,-71,-16,69,126,-118,54,75,-121,-10,33,5,36,-87,
                    0,36,-38,19,-75,-110,17,13,60,-98,-52,74,126,-90,-5,-50,-65,-119,37,-111,
                    66,115,-109,-113,-32,-126,47,89,-40,-42,16,-38,-51,83,32,10,-79,-120,80,-52,
                    2,24,-45,-6,2,2,4,50,7,89,-108,51,-1,36,38,30,-127,8,60,-96,
                    1,123,-28,-30,81,-7,-7,5,-114,57,1,-119,23,-4,-82,32,66,-24,68,43,
                    70,-118,72,-94,97,7,37,-70,24,66,97,6,-16,11,91,-128,-128,6,127,54,
                    72,16,14,1,-119,86,-32,-62,18,-119,-16,32,-98,42,64,-23,86,-28,-30,18,
                    100,48,1,12,31,55,-118,90,8,57,99,8,-68,67,-115,-21,-5,23,30,-44,
                    98,0,-67,-64,-63,6,-103,-96,-40,43,108,-80,8,-118,-88,68,44,122,17,-118,
                    25,72,73,-73,-64,22,-119,47,92,80,-125,96,27,91,34,118,104,73,14,-114,
                    -51,108,-110,120,32,20,-86,-104,-59,0,92,33,10,117,24,-77,-39,-40,118,-120,
                    11,22,-15,8,77,-52,-126,23,-98,104,-124,14,35,-102,-19,114,35,-60,10,92,
                    -91,-123,-98,57,-37,41,66,-72,-63,-36,33,49,-63,12,60,80,5,76,-40,91,
                    19,-99,16,-59,41,90,121,-94,-54,77,-53,21,-86,48,-59,40,64,-63,-119,76,
                    84,66,18,-112,120,-124,35,30,-31,6,33,-28,81,2,59,-72,4,-35,56,81,
                    -123,9,16,36,6,12,-104,1,19,116,-111,88,1,-24,98,22,-92,-16,-120,92,
                    65,11,111,-88,-92,-64,4,33,-1,-64,-63,39,74,-95,10,88,-44,-30,-62,-36,
                    105,44,48,102,-18,-77,-74,-104,82,-90,51,61,-55,100,-49,-10,38,-116,-95,-117,
                    46,-81,104,69,43,94,49,69,45,-62,-94,21,-89,-8,4,-26,62,4,9,54,
                    -112,59,-37,-67,84,43,51,98,-47,-118,84,-100,-94,20,-90,56,5,-84,-122,114,
                    -117,59,67,74,43,-80,116,-23,75,79,-58,38,-76,-31,43,23,-79,80,-123,6,
                    28,102,-112,17,-68,-95,-28,11,121,-127,17,6,-83,73,-1,-110,-75,-84,39,-21,
                    -111,-116,115,-47,-118,80,64,66,17,-120,32,57,-36,5,70,-119,26,5,25,104,
                    87,6,-36,-102,40,101,-58,25,-113,44,-84,83,-85,-102,52,-48,-64,-124,38,64,
                    65,12,86,-8,-126,26,-116,1,-118,76,68,98,15,79,-121,59,4,8,27,64,
                    33,111,83,46,61,104,-127,45,112,115,-69,-79,14,-51,53,-107,-61,34,21,100,
                    -16,-69,31,52,-126,118,-106,126,-44,39,21,-69,-31,89,70,-121,25,106,32,-125,
                    22,-122,-81,5,51,-12,99,23,-124,-53,-124,35,60,-107,109,41,60,-62,-102,-67,
                    32,0,2,-49,0,-125,21,60,76,32,-110,-8,68,-103,98,-114,80,30,21,-83,
                    -70,-94,-88,-124,-1,34,90,87,-112,12,60,66,18,-102,-128,1,-29,-116,48,9,
                    72,-80,-89,108,-65,-32,74,-107,-61,30,-7,-33,-64,2,21,69,18,-9,33,12,
                    65,-127,-48,14,118,20,78,-124,3,-2,98,16,82,-48,8,-103,80,80,45,5,
                    99,-68,113,58,64,-110,10,-111,-128,8,-124,-96,105,4,-111,11,104,-80,64,2,
                    -15,3,76,-127,8,-19,67,47,-119,-75,123,42,35,94,-70,48,23,87,-28,69,
                    44,-43,29,-107,35,11,-92,-128,9,-57,-29,110,49,52,10,-83,48,4,38,0,
                    80,4,65,8,-118,-64,9,-78,-96,11,-83,-121,119,-89,19,30,-55,18,9,-61,
                    20,8,19,-111,2,12,-128,2,39,-128,2,12,-112,2,8,-80,2,-111,118,16,
                    37,-64,1,12,-94,8,-108,-16,9,-80,-64,11,4,48,11,-101,112,91,-124,-96,
                    0,-64,-26,5,-121,112,9,-88,-112,37,78,54,41,11,-8,96,-2,-74,10,-98,
                    80,9,-62,100,8,-71,-123,39,29,16,8,-126,69,9,-85,-112,11,-85,-48,48,
                    -64,22,88,-107,-32,10,89,34,41,112,50,115,-117,-43,125,14,38,22,41,83,
                    61,-74,0,11,-84,64,10,-99,-112,9,-19,-41,8,-116,112,84,66,16,1,14,
                    -1,1,1,65,-32,6,-126,84,68,75,48,120,85,-62,8,-94,-80,78,4,-112,
                    29,35,3,78,46,112,10,-103,96,9,-101,-112,92,117,39,118,99,-105,35,125,
                    -29,22,-98,-28,-127,-97,-76,50,-72,64,11,-86,0,8,71,112,2,-42,55,120,
                    3,-47,84,101,54,42,-74,32,10,-108,-80,8,-48,100,16,94,-80,39,-118,112,
                    9,-93,112,-125,-20,-108,72,119,-105,-116,49,-106,54,-68,48,-120,-86,48,10,-99,
                    -96,9,-108,48,26,113,85,8,64,88,110,82,-32,45,-79,32,0,-93,-48,41,
                    90,-72,16,29,16,14,-127,-75,8,-106,64,10,-84,96,34,-81,-124,-116,-54,120,
                    -118,105,-15,78,41,-61,80,-77,112,10,123,-75,20,77,-63,108,69,-32,84,-103,
                    48,11,-35,120,8,-19,5,17,51,16,5,79,24,9,-104,64,10,-81,64,11,
                    -72,-95,88,127,-45,38,-18,-24,55,-116,-43,38,101,-9,29,-8,-78,11,-29,-95,
                    -126,4,-78,-122,-64,-106,1,-109,32,10,-67,-128,-126,59,-74,19,34,-48,1,13,
                    -110,8,-114,80,9,-100,96,-114,46,-105,11,-69,48,4,10,16,2,30,-64,4,
                    119,64,84,-47,-88,9,-100,0,10,-90,-96,10,-51,113,-112,-112,-1,103,50,-92,
                    4,12,-77,-92,10,-105,-64,46,-125,-16,110,-64,-42,3,-42,-47,1,120,-94,2,
                    53,-48,0,50,16,3,24,-73,16,30,-96,85,-112,-96,9,-32,114,31,-19,-12,
                    -112,69,-61,80,-86,64,9,-118,64,8,-125,64,73,-74,-104,3,95,-48,54,-101,
                    -112,9,-101,96,4,22,104,26,24,120,8,-114,48,10,95,-43,18,88,102,46,
                    103,52,11,-96,-80,8,-122,-48,-107,-51,6,1,44,-75,-119,114,81,11,109,-11,
                    9,67,-32,0,-41,7,47,-31,96,8,-113,80,10,-33,-26,11,45,-80,50,-37,
                    -15,98,-59,98,70,-70,-64,10,-101,-112,8,92,-7,37,29,5,1,28,120,80,
                    113,-14,113,-88,-16,9,33,-16,0,-127,-119,66,-114,64,9,-93,-32,10,67,32,
                    37,22,-64,114,-124,81,104,-94,20,22,-64,-128,118,-104,-80,20,-51,2,67,79,
                    -96,96,65,6,121,106,-15,115,72,-48,2,45,-64,5,-94,-48,-101,-96,-80,9,
                    -108,-16,8,72,114,8,26,-48,-111,5,1,1,-115,-10,9,70,-11,1,75,24,
                    17,65,32,10,-92,-112,10,47,-48,0,-41,23,1,-94,64,-118,-86,-23,122,0,
                    -42,11,2,70,96,-124,112,-106,76,2,1,-96,-1,-64,10,-76,-16,40,57,-87,
                    119,101,-15,55,100,-47,73,114,-46,10,-92,16,10,71,-108,92,-126,-64,3,100,
                    -47,-102,-88,-128,9,-120,64,6,-3,56,18,84,-112,11,-123,81,58,-28,-110,119,
                    106,-111,34,115,-87,-122,-101,51,37,-2,-112,9,101,114,38,-106,69,52,11,105,
                    115,126,-125,35,85,-90,27,-73,-103,11,-87,-112,9,-110,73,6,13,113,4,-84,
                    96,10,-16,-39,9,-98,0,10,-91,-80,10,5,-23,40,-36,17,-122,-107,82,25,
                    -23,41,0,45,-112,11,-82,-112,9,-115,48,14,86,-91,30,66,-64,8,-105,-32,
                    105,9,-40,-114,-14,23,23,-73,0,11,95,-128,3,31,-80,0,47,-80,0,33,
                    32,68,-63,-61,42,-107,-16,9,-65,-126,27,-25,25,63,63,-126,99,-92,112,9,
                    -115,-128,36,-127,16,4,16,-127,1,23,-16,-97,82,-106,77,99,-8,72,-76,36,
                    29,72,-10,15,89,52,11,36,32,61,-90,17,54,-102,16,11,81,35,127,-99,
                    -60,80,-50,-44,59,-51,-7,16,26,-32,-122,-94,-71,78,-47,-107,101,102,55,63,
                    41,-63,113,28,23,89,-109,-27,51,-12,-89,72,120,26,25,-45,-43,104,-85,-128,
                    9,-115,-80,8,13,64,16,104,-1,-80,102,-49,50,35,-100,-64,26,-109,-29,-104,
                    -81,48,10,-112,-96,0,51,42,18,-36,-91,10,6,41,46,83,-109,-112,25,-109,
                    11,-77,32,116,92,-9,40,-83,-105,119,58,74,57,93,64,5,58,-75,107,-80,
                    -64,9,-57,35,-127,76,82,4,-124,-112,8,-100,-48,10,-67,112,46,-68,48,4,
                    51,-64,5,-104,-80,9,35,64,17,25,48,-115,-115,-16,8,-76,-61,74,-24,120,
                    80,-70,26,65,-97,80,5,-114,106,16,45,-112,6,-73,17,115,26,-58,73,126,
                    51,93,-57,114,11,-81,-96,0,39,-48,-100,-123,-128,8,-107,-64,11,-87,-32,8,
                    -121,-112,60,120,-78,39,-116,112,10,-65,-112,10,-106,-16,8,111,6,21,18,96,
                    90,-80,50,11,-74,-80,66,-25,18,65,67,64,-99,7,97,9,-89,-112,-102,119,
                    74,101,-121,-15,11,-126,-48,1,47,-64,1,115,32,10,-88,-112,7,47,-32,0,
                    113,122,16,23,-48,8,-60,-109,10,-110,96,-108,121,-30,6,-124,-55,98,-110,80,
                    -82,33,33,3,12,96,2,48,64,2,51,-16,2,34,48,2,37,96,2,70,
                    -120,-124,43,-64,106,3,1,1,-116,-96,9,-83,100,122,-14,-29,68,-73,-32,2,
                    12,-64,118,81,-89,-127,9,-89,80,93,-89,64,2,-96,-94,4,-111,-80,10,3,
                    48,10,92,32,106,39,84,4,-57,-75,10,-73,-32,27,104,-9,14,30,-32,0,
                    50,-88,30,45,-48,26,-65,112,56,121,114,10,81,-27,104,38,-124,107,-103,-80,
                    10,0,-96,10,-97,48,3,13,11,47,77,64,0,-16,-110,1,98,1,2,-16,
                    -14,8,-106,48,104,72,80,108,-74,8,21,100,-101,39,-80,-80,11,76,-16,107,
                    111,107,108,2,112,-73,122,-101,1,103,66,0,-126,-64,2,122,91,114,60,48,
                    104,-1,-47,10,105,96,-91,-127,-101,109,28,-64,9,-59,-8,11,-81,26,9,-5,
                    -108,-72,-40,-58,6,-110,-112,9,-51,99,10,-110,-128,36,-41,38,-71,-64,-58,1,
                    -7,-64,8,-104,0,100,-99,-16,-128,-123,-128,15,-1,-100,107,108,45,-96,8,-111,
                    96,10,-115,-26,119,-57,51,8,-111,123,-70,-107,-23,15,-104,-96,9,-92,96,67,
                    1,-128,11,-81,-48,9,-114,16,98,-31,64,98,-78,-101,1,24,-96,6,-83,-64,
                    10,-86,112,-68,121,19,46,-7,50,-86,-87,-64,61,110,115,9,-107,-48,126,-113,
                    -48,8,110,-96,4,59,-32,-120,7,-47,7,54,113,16,-70,-7,5,-53,48,69,
                    45,-42,26,-106,35,10,62,40,87,-64,43,-69,2,-47,0,40,64,2,30,-112,
                    6,-112,16,9,-109,32,-118,119,-29,10,-75,-48,100,-79,71,11,84,23,112,62,
                    -63,9,-102,-80,9,-99,0,10,-48,-55,5,44,-80,4,-95,32,62,-88,-80,10,
                    -78,-128,6,71,64,98,41,39,89,-65,-80,-119,-70,0,11,-97,64,9,-43,120,
                    39,-24,-69,16,52,48,103,105,80,9,-102,0,10,-89,-64,10,-64,-62,95,-42,
                    113,86,39,-31,50,-110,-27,11,40,-100,115,123,-102,11,-2,-7,120,-14,55,25,
                    -89,-13,11,-13,-28,-98,-96,-16,61,-98,32,10,88,103,10,-17,9,-100,70,-91,
                    8,71,117,-63,2,17,3,35,0,2,84,80,-81,44,-91,-102,-119,-105,-60,-18,
                    120,115,124,-120,-94,-67,-127,47,-1,40,-47,50,-68,-32,50,-43,35,45,105,71,
                    10,-100,80,9,-108,-96,9,8,107,-63,119,-101,19,16,-16,3,72,-16,5,99,
                    -96,7,122,-16,-97,-118,5,52,-88,-22,78,-118,-121,-98,-23,25,-120,107,-27,10,
                    29,80,2,9,96,3,9,16,3,11,-128,3,-65,-48,4,-16,-42,2,25,16,
                    5,99,16,10,-99,-80,9,-104,32,113,-103,-48,9,-95,-112,10,42,101,-98,13,
                    -86,-128,-1,37,-122,15,9,22,102,-44,11,-75,112,10,-99,-48,2,40,0,-60,
                    8,32,3,52,64,2,33,-48,1,92,-96,-56,6,-27,100,-21,120,119,-120,-31,
                    96,112,-39,11,-76,16,73,-26,33,-108,64,124,-127,-94,32,11,-44,-47,-92,126,
                    -88,-125,-88,122,101,2,-48,15,107,-32,7,-12,0,-117,73,-79,-120,94,124,-70,
                    16,16,-70,68,-127,-112,98,-27,-56,99,-8,100,103,5,-88,-95,36,99,-65,96,
                    7,84,-32,5,26,32,6,70,-48,5,119,80,12,-95,33,9,123,-64,-71,65,
                    -112,9,53,-14,40,64,-77,-98,17,106,119,-20,56,22,-14,-57,-109,-71,-80,17,
                    23,-122,-112,-11,-57,11,-72,-16,12,122,16,5,68,-128,5,89,96,5,94,112,
                    6,-25,-96,10,-1,-100,16,9,-116,-128,8,-3,103,-117,66,-80,100,-78,-116,72,
                    -100,20,23,83,44,89,57,56,118,5,-99,-62,-3,-32,1,49,-32,0,35,-80,
                    9,-97,96,10,68,113,-94,101,81,-88,-16,24,11,-54,112,6,81,48,5,112,
                    0,6,77,96,5,93,0,14,-81,80,10,-106,96,30,76,65,87,-26,-42,8,
                    -98,-64,10,89,2,75,-65,-128,6,61,80,2,29,-80,10,20,-61,-96,-28,-68,
                    -116,60,-119,11,-80,-112,10,95,16,-90,16,-125,36,-116,0,57,6,-103,86,44,
                    -84,11,125,-85,-85,34,-104,11,126,-128,6,101,-128,6,104,-80,6,-34,16,39,
                    -73,-80,10,-97,-32,-99,28,-112,109,-120,-16,8,-94,64,20,4,-96,-104,61,-96,
                    126,23,-40,9,-122,9,-50,92,-22,125,-99,-92,11,-107,74,9,31,-32,-74,2,
                    81,7,26,-64,1,-118,0,9,-99,-96,10,32,-128,2,-17,96,33,-90,-32,10,
                    81,-109,31,41,-61,101,100,-79,-109,-51,-88,10,-101,16,9,-127,82,8,75,98,
                    108,-71,-58,-106,4,112,52,51,29,105,82,48,9,-73,123,31,97,-8,-56,-70,
                    26,11,-101,-32,8,-123,32,3,7,-15,3,-108,112,9,75,-16,107,23,112,36,
                    -1,-115,80,9,-86,-80,66,37,115,101,-114,-76,80,-81,-56,10,-94,-16,86,-116,
                    16,87,-127,-112,-40,-57,-28,5,45,11,11,-65,32,11,30,-64,0,-11,-91,-70,
                    -90,96,38,-1,-22,122,11,40,0,13,8,9,75,1,-98,-79,80,11,61,-80,
                    -124,76,97,8,-114,48,-98,-63,66,89,-104,49,-35,110,1,23,40,124,-62,-10,
                    114,46,-56,-105,44,82,-22,41,-23,17,67,-111,-51,9,-76,112,11,32,112,-96,
                    6,1,-82,-92,16,46,-63,-67,72,-37,-76,11,-83,32,126,-97,69,-75,3,65,
                    0,10,-16,-84,4,17,-116,78,-11,124,-84,-60,23,-72,-48,-33,-41,-109,69,84,
                    -73,10,-89,64,10,-93,32,10,18,98,-109,38,2,12,4,0,32,-86,80,9,
                    -61,-28,46,48,4,1,-99,-80,10,-72,0,3,13,43,4,-121,96,64,-90,86,
                    -39,-20,61,93,84,93,10,-105,0,-127,-97,82,16,106,-80,16,32,16,5,-30,
                    -80,43,-114,32,9,-105,-112,9,-21,-128,4,46,-80,0,48,112,2,15,-115,0,
                    8,-112,2,25,28,5,-121,48,67,-124,-91,10,101,51,0,-69,-48,77,-110,57,
                    8,104,123,66,95,32,11,56,-32,-76,9,81,4,-120,0,9,-1,-89,16,44,
                    -92,-84,-125,27,-106,11,94,102,-40,-122,-128,15,-25,11,35,31,-32,5,-33,-38,
                    8,-99,-16,10,-2,25,10,62,104,8,30,16,108,-122,0,9,-97,64,11,-36,
                    71,41,-55,124,58,63,-94,-69,32,-34,-49,-123,32,120,83,-30,2,90,-107,125,
                    -72,-128,20,-112,-112,-81,117,-88,8,-126,-122,-125,83,70,118,-55,-84,59,-74,-64,
                    10,-93,-128,-88,72,18,14,-76,13,35,30,32,14,-113,112,9,64,123,5,50,
                    -16,-76,-107,52,8,-122,32,9,101,98,47,105,50,22,-29,-116,80,-54,-84,50,
                    -70,96,11,-5,18,10,-100,16,-100,71,18,120,121,84,17,57,33,7,-95,48,
                    120,17,-16,-83,-102,112,-125,-109,67,101,-79,-12,35,41,-31,-62,-90,-24,-96,80,
                    -74,50,106,53,11,-44,50,-32,53,60,-106,18,103,9,-106,64,55,-104,112,-56,
                    -100,16,-94,5,-4,9,-101,112,9,117,-60,8,-112,-32,1,-100,13,119,99,-74,
                    8,-96,-32,74,123,-40,29,10,-80,0,-6,-80,47,-84,-124,88,-102,94,-53,10,
                    -71,-98,-90,-92,-89,70,-51,-62,-2,-115,11,44,-116,-18,-40,35,11,-85,16,10,
                    -54,119,4,38,16,-74,-40,118,-119,88,-94,88,-1,-95,46,11,-75,48,4,-46,
                    -109,1,71,98,-93,-93,-16,109,-39,89,41,-38,-92,101,-119,-73,-94,111,-4,35,
                    -71,64,11,-87,-48,2,33,48,-19,119,107,-17,-72,96,52,125,119,9,71,0,
                    -15,2,17,-116,-122,-96,8,100,34,-16,78,92,-54,-88,-84,-112,-14,-124,99,-16,
                    -34,-61,86,-112,-22,112,-41,84,-118,-16,9,-73,80,-123,-103,-51,-113,7,-95,0,
                    -51,61,-44,33,84,-101,78,44,-36,32,-49,38,-128,104,-21,-72,80,11,-7,91,
                    10,-97,80,39,72,82,8,110,16,122,-58,22,8,-114,115,9,-77,32,0,-89,
                    -64,34,75,112,63,8,97,-25,-114,-29,8,-105,80,10,-51,97,-86,-101,116,-54,
                    57,127,41,-42,90,-18,106,115,127,-103,32,76,-124,-128,15,70,31,90,21,-80,
                    39,-113,-96,10,4,96,60,-122,-64,81,12,1,4,90,-91,-74,46,56,11,56,
                    25,-88,41,42,-24,33,-97,22,-14,-61,-99,-84,32,-26,-61,68,8,101,-65,84,
                    -62,-8,9,-70,96,60,-121,96,-100,14,17,2,110,16,88,-48,94,88,-34,-123,
                    97,1,42,91,-119,7,-55,-88,-20,26,114,17,11,-94,96,9,43,-88,-46,-64,
                    -42,99,-90,-51,10,-111,-80,8,-1,-103,76,17,31,-55,32,-120,-32,8,-104,48,
                    -98,-45,-127,-11,-12,39,115,30,72,70,86,-122,22,-107,111,70,-77,-76,10,107,
                    -60,124,-64,-106,8,-109,48,10,1,16,73,-5,73,-6,0,-71,-15,2,-23,-126,
                    33,60,50,-64,-48,15,107,-15,35,-69,-16,-118,-79,-48,83,-80,-96,-17,-72,-128,
                    -58,-76,60,-88,24,-61,-109,-75,112,-88,-127,66,8,63,0,108,125,32,10,-2,
                    -7,10,60,11,21,32,96,-79,14,18,-102,-100,-112,-56,92,-105,1,30,80,2,
                    39,0,3,11,112,4,92,48,-67,-114,-32,126,92,108,-45,-92,67,-53,127,-104,
                    89,-77,-64,-117,-80,-7,-35,0,-15,79,-32,64,-126,5,13,30,68,-104,80,-95,
                    64,125,2,2,124,88,24,49,-94,-116,19,36,94,124,80,48,-124,-55,16,42,
                    77,16,-114,112,81,-24,80,34,72,-98,80,-47,-30,-27,43,-64,0,2,45,9,
                    20,-128,-23,-110,-64,0,1,-65,114,-55,2,-59,-24,16,33,55,18,125,-2,4,
                    -6,111,3,-127,50,65,-115,30,29,40,98,3,33,67,-118,46,-91,-102,-59,11,
                    -104,0,-106,50,95,-54,20,0,-84,87,-83,81,-108,118,14,-22,-128,84,-20,-40,
                    -97,16,-126,120,-1,-22,-12,105,84,11,-78,17,-83,48,125,-76,-23,-43,-82,95,
                    84,-83,-34,29,16,-64,87,45,85,-109,-66,-74,5,76,54,-121,26,89,-84,80,
                    -119,-30,-108,41,-118,9,21,-127,37,14,34,-124,8,-45,43,92,117,7,92,-58,
                    -116,87,111,-82,-66,-119,8,13,-14,-32,88,-12,66,36,3,126,-15,-70,85,-21,
                    -43,-87,80,105,24,31,24,45,-111,80,-95,71,-90,102,-11,2,6,0,0,-80,
                    95,-64,2,-40,-107,57,0,-128,47,91,-93,38,25,26,-124,47,-10,-14,127,63,
                    -94,-3,18,-18,107,-41,45,88,-86,66,-119,104,112,-125,-71,68,50,-122,32,-103,
                    -110,-91,11,71,11,93,-71,114,-15,-6,-75,-78,101,1,-105,2,0,-16,-126,5,
                    106,-47,103,16,-37,-37,-62,-86,-91,43,-3,0,96,-66,110,-86,-14,100,-122,26,
                    96,-77,79,34,69,30,-15,-92,21,89,96,72,-95,-123,85,90,-119,37,-105,-3,
                    -42,99,111,-90,-102,112,105,-59,43,66,2,41,-48,40,8,84,-111,37,23,95,
                    -128,-71,76,47,92,102,57,-123,-117,17,108,32,11,-126,42,-36,105,-53,-117,75,
                    60,73,-27,-125,6,4,74,67,-108,85,-94,2,64,0,-105,96,-86,80,-72,93,
                    -1,102,-23,36,-111,66,6,41,-95,67,-119,32,64,-59,-107,91,122,-103,48,43,
                    95,110,121,5,21,18,26,-96,97,32,8,-56,-40,71,-111,69,22,105,36,-110,
                    -124,32,88,101,-109,73,28,113,33,75,-79,32,-48,4,20,83,-88,-120,-127,-64,
                    52,62,81,-59,-106,93,-90,-86,-22,-91,-104,102,10,-96,-105,91,70,97,4,57,
                    24,-108,28,-77,-108,86,-98,-36,-81,-86,-68,126,-23,37,23,91,104,-103,-123,-106,
                    90,106,-103,69,-106,85,64,-63,100,28,5,76,88,-31,-96,37,112,-47,101,-107,
                    74,20,-15,2,1,-78,84,25,3,7,26,12,32,-24,-108,87,106,-95,75,-67,
                    31,-127,-84,-48,68,82,26,49,-124,-112,19,8,53,-88,-109,82,-62,-13,-91,-57,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

  • Useless code in java.awt.image.SampleModel.java?

    Hey there,
    i just looked up the sourcecode of java.awt.image.SampleModel.java in JDK 6
    I discovered two issues i'd like to discuss.
    1) on lines 736 to 739 this code is stated:
    if (iArray != null)
    pixels = iArray;
    else
    pixels = new int[numBands * w * h];
    I asked myself, why does this code exist? while the getPixels() method is overwritten twice by double[] getPixels() and float[] getPixels, it is impossible to reach the part of the java code that initializes the pixels-array. One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO.
    the java developers could get a little more performance out of this method if the if statement would be cut out - especially when reading a lot of very small rasters
    or, on the other hand, they could replace this piece of code by an explicit bounds check.
    When somebody touches this code, i would appreciate it if the errormessage "index out of bounds!" could be rewritten to be a little more verbose, like: Index out of bounds(x=123; y=456, maxX=100, maxY=400)!(numbers are just examples)
    I hope i didn't miss something very basic and could help improving this class a little bit.
    2) the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention.
    best regards
    kdot

    One could only step into that line if "null" is given for the i/d/fArray-parameter. but if one would do so, the Java parser couldn't determine, which method is to use. so this part of code is just useless IMHO. You can have
    sampleModel.getPixels(x,y,w,h,(int[]) null, dataBuffer);No ambiguity on which method to use.
    the local variable Offset(line 734) is coded against code conventions which say, variables shall start with a lowercase letter. Offset obviously doesn't fit that convention. You're correct, offset is against coding conventions. So are many other examples scattered throughout the jdk source code. For example, Hashtable should be called HashTable. In some cases the coding conventions might not have been established when the original code was written. In other cases it might have been human error. In yet other cases the conventions were probably ignored. The person who wrote the SampleModel class did so some 10+ years ago (Java 1.2). Who knows what he/she was thinking at the time, and in all honesty - does it really matter in this case?
    Did you know there are some classes that declare unused local variables (ahem ColorConvertOp)? Some also have unused imports ( *** cough *** BufferedImage *** cough *** ). In essence, the jdk source code is not the epidemy of code correctness. But it's still pretty good.

  • Display image in java.awt.List

    hello guys,
    How i can display image in java.awt.List means listbox. give me sample code. if you have
    Waiting for your favorable reply.
    Regards,
    Bhavesh Kharwa

    java.awt.List you can not.
    javax.swing.JLast you can.

  • How to open and validate the tif images via java?

    Is it possible to open and validating the photoshop images via java. Kindly advise me.
    Thanks for looking into this.
    Maria Prabudass

    I have recently looked at athe code for Image Processor.
    To avoid bailing on errors it uses two techniques.
    1) It turns off all PS error reporting in addition to just turning off dialogs with:     app.displayDialogs = DialogModes.NO;  (it restores the original settings when exiting)
    2) It uses the Javascript construct  Try.....Catch around the basic body of the code so "any" error will not abort the script but just jump to the "Catch" code.
    Hope that is useful

  • How to scale up and scale down a image in java

    i have a problem i want to scale the any image in java
    i mean that what i have to do actually when i scale up the image and scale down the image
    plz reply as soon as possible
    mail me at following address
    [email protected]
    [email protected]
    [email protected]

    Look at Image.getScaledImage(...)

  • How can I set the size of an image in java?

    How can I set the size of an image in java? I have to choose the width and height of image...thanks to everybody...sorry for my english :-)

    Hi 43477
    Can you provide more details, do you want to setsize to display an image on a screen of when saving image etc?
    PS.
    There is a good invention called googlegoogle is good, but sometimes it's better to use more specific search, there is a search field avove on this page :)

  • Images in Java

    How can I use images in java

    javapro9999 wrote:
    I thought this place was for "New to JAVA".It is. It is not "New to having a brain and being capable of asking meaningful questions that can be answered without having to be nudged until you do".
    I participate in other forums like asp.net but they don't reply that way.Instead they put a straightforward answer .Was it that difficult?With a vague idiotic question like: "How can I use images in java" - yes, it would have been difficult. Like what, someone is supposed to read your mind to determine what you don't understand, or just repeat what is already in tutorials here? The appropriate response given that stupid question was to just point you to the tutorials.

  • How to resize image using java imageio

    Hello ,
    I want to know how to resize image using java imageio.
    I dont want to use java awt because i am writing a web application.
    help is very much needed
    thank you.

    Just use an AffineTransform !
    Its much easier

  • How to create dynamic images in java servlets?

    I want to create dynamic images in java servlet. Can servlet create dynamic images that based on the input data files? The results can be displayed in GIF, JPG..format? how can this be done? any example in internet?
    What OS do I need to install and what other requirements needed if i want to build up a servlet server?
    Thanks a lot!

    Also worth having a look at SVG http://www.w3.org/TR/2001/REC-SVG-20010904/, you can get a viewer at http://www.adobe.com/svg/ or you can use Batik http://xml.apache.org/batik/index.html to convert SVG to other formats such as JPEG.
    HH

  • Transforms image between Java 2 and Visual J++6.0.

    Hello experts,
    Where describe that transforms image in Java 2
    to image in microsoft Visual J++6.0.
    Please help me ,thank you.
    BCH Oct 14,2004

    Eh, what?
    /Kaj

  • Opening Images With Java

    How do you open images with Java? It is a JPEG, and as most will figure out from this post, I'm new to this. :P thanks in advance for any effort...

    Well... Can you possibly tell me what to put in (eg Source Packages) so yea... I'll look into the tutorial, but I also have another question. Would this work?
    Image img = Toolkit.getDefaultToolkit().getImage(C://desktop/[gamefolder]/[hiddenimages]/[image]);
    When [gamefolder] is the name of the folder, [hiddenimages] is the sub-folder with the images in it, and [image] is the image...

  • Print image using java

    Dear All,
    Can any one help me, how to print the image in java.
    Thanks in Advance.

    [http://java.sun.com/products/java-media/2D/index.jsp|http://java.sun.com/products/java-media/2D/index.jsp] will help you . Java 2d also have print api.
    you look at this
    [http://java.sun.com/javase/technologies/desktop/printing/|http://java.sun.com/javase/technologies/desktop/printing/]

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

  • How to download an image from java server

    Hi,
       I have created a program which allows me to upload images to Java Server thru Multipart.
    How can i receive an image from server and download it to iPhone app.Is there any way apart from NSURL i can download the image.
    Base64 Encoding & Decoding  seems to be not working.
    Thanks in advance,
      Haritha

    Hi,
       I have created a program which allows me to upload images to Java Server thru Multipart.
    How can i receive an image from server and download it to iPhone app.Is there any way apart from NSURL i can download the image.
    Base64 Encoding & Decoding  seems to be not working.
    Thanks in advance,
      Haritha

Maybe you are looking for

  • Grainy, pixelated photos in Photoshop and ACR

    All my photos in Photoshop and ACR look very grainy and pixelated on my new Macbook Pro? How do I fix this? I have already updated everything and installed the plugin for my raw files. Any help is appreciated! Using Photoshop CS5

  • Importing FCE to FCP and G5 iMac to Duo Core iMac issues

    I mainly film & edit weddings, but work on a number of other things as well. Someone told me to try hitting escape when I get the error message window, which worked good enough on a few of the projects, but not on most. Have been using FCP 5.1.4 for

  • Checking the size of the infocube

    Hi, How can we check the size of the infocube with large volume of data? From the SAP standard practice what is the optimal size that an infocube can consist of data with out an impact on the query performance?

  • What do you want PDO to do?

    Recently a group of people including PHP developers and a few database organizations have been discussing how the PDO database access layer in PHP can be fixed and improved. A proposal about the process is on the table for all PHP folk to comment on,

  • Issue with OBJECTS

    Hi All, I need a help in solving the type object issue.. I have a package where im calling a function (with parameters id and lang_code).. im initializing the object with id and lang_code and then calling that object(where it does all the calculation