Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    There is more than one array named pixels in the code. Which one was printed? And when was it printed?
    If it is printed before any data is assigned to it, it will be filled with 0s. That must be...
  2. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    It's a waste of time and space to post that many 0s. A few lines would be enough with a comment that the rest are all the same.

    What is the purpose of that post? What array was printed? Where in...
  3. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    The String in the ""s is for identifying what is printed. It is your choice what goes there.

    What happened when you compiled and executed those two statements?
  4. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    Please explain what you don't get?

    How much of the code did you write
    and how much did you copy?
  5. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    [I@5474b4 is the String returned by an array's toString() method. To see the contents of the array use the Arrays class's toString() method to format the array for printing:
    System.out.println("an...
  6. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    One way is to use the println() statement to print out the values of the pixels array and the pixels in the BufferedImage.
  7. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    Did you try debugging the code to see if the pixels from the image that is read in make it to the image that is drawn?
  8. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    How do the pixels get from the image to the screen? Have you tried adding some println statements to see where the data is and how it is passed?

    How large an image is needed? I'm using 100X100
  9. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    Can you explain how the code works? After the image file is read, what happens?

    The code doesn't have any comments explaining what it is doing.
  10. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    Write the code, copy it and paste it here. Be sure to wrap the code in code tags:



    YOUR CODE HERE

    to get highlighting and preserve formatting.
  11. Thread: i need help

    by Norm
    Replies
    21
    Views
    1,333

    Re: i need help

    Post a small, complete program that will compile, execute and show the problem.
Results 1 to 11 of 11