Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4066143

PixelGrabber - Too slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1
    • 1.0.2
    • client-libs
    • None
    • 2d
    • 1.1
    • x86
    • windows_95
    • Verified



      Name: rlT66838 Date: 07/21/97


      I use yhe class PixelGrabber and when i invoke
      it's method grabPixels ( without parameters ),
      i saw for each invocation that its duration is
      minimum 300 Msec. .
      When i debugged the java src code of grabPixels
      I have noticed that this duration occured only
      for the invocation of startProduction from the
      grabPixels method .
      I don't know whether it is a known bug ,and
      since ImageProducer (which owns startProduction)
      is an interface and it's content canno't be seen
      i canno't point at the main reason for this
      duration which for my opinion it is exaggerated .
      I would like to know what cause this duration
      (just to decide about a "workaround"),do you
      think this duration is normal and if it is normal
      please let me know if maybe i used nonpropertly
      this awt.image package .
      I have provided here an example of how i used
      the PixelGrabber class .

              Image screenImage;
              int sourceImage[];

              PixelGrabber P = new PixelGrabber (screenImage,0,0,movieInfo.movieW,movieInfo.movieH,sourceImage,0,movieInfo.movieW);
                  try
                  {
                      P.grabPixels();
                  }
                  catch (InterruptedException E){
                      System.out.println ("ERROR ON ");
                  }


      Thanks
         
      ======================================================================

            flar Jim Graham
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: