Results 1 to 4 of 4
  1. #1
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Posts
    101
    Rep Power
    0

    Default getrgb method slowing down animation

    My get RGB method is slowing down animation and its only being called once but its acting like its being called every time paintcomponent repaints. Re-reading using myImage = ImageIO.read(myFile) worked after myImage.getRGB(the whole pixel method not just one getRGB[]array).

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: getrgb method slowing down animation

    Is there a question buried in your post somewhere? I don't see it...please provide context (aka code) as to what the exact problem is, and asking a specific question would help you receive suggestions as to a solution to your problem.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: getrgb method slowing down animation

    Don't listen to doWhile. He's only whining because he doesn't have a crystal ball like I do, and thus is unable to answer questions where code isn't present and questions are vague. Anyway, the magic crystal ball is telling me that your problem is on line 32 of your clearFoobars() method. You forgot a minus sign.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,243
    Rep Power
    19

    Default Re: getrgb method slowing down animation

    Quote Originally Posted by Fubarable View Post
    the magic crystal ball is telling me that your problem is on line 32
    42! 42! It's always 42!
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 0
    Last Post: 11-18-2011, 01:58 AM
  2. slowing the animation of LogoAnimator.java
    By ladygagads in forum New To Java
    Replies: 2
    Last Post: 08-26-2011, 11:02 AM
  3. slowing down playback of mp3
    By paddala in forum Advanced Java
    Replies: 0
    Last Post: 10-17-2010, 12:14 AM
  4. getRGB
    By mortoneff in forum New To Java
    Replies: 4
    Last Post: 09-17-2009, 11:23 AM
  5. Image class (getRGB)
    By shaungoater in forum New To Java
    Replies: 1
    Last Post: 03-07-2008, 09:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •