Search:

Type: Posts; User: helloworld922

Search: Search took 0.16 seconds.

  1. Replies
    10
    Views
    13,040

    Re: Blur Image

    If you want to re-combine the 3 RBG byte values into an int, simply shift the values into the appropriate spots and add. I've said it before, it doesn't matter whether there's a hex or a decimal or...
  2. Replies
    10
    Views
    13,040

    Re: Blur Image

    Sorry, I still don't understand what you want. Do you want a String hex output? The int data type doesn't matter whether it's in decimal, hex, octal, or binary. They all represent the same value. The...
  3. Replies
    10
    Views
    13,040

    Re: Blur Image

    ... I'm slightly confused at what it is you want.

    To get a hex String to into an int:


    Integer.parseInt("1234AB",16);

    To get an integer back into a hex string:
  4. Replies
    10
    Views
    13,040

    Re: Blur Image

    You didn't set the radix (aka. base). To use parseInt on a hex number:


    Integer.parseInt("FF3a20056",16);
  5. Replies
    10
    Views
    13,040

    Re: Blur Image

    Here's code that ignores the edges. It also lets you set the blur level (how many times it's run).


    public static Color[][] blur(Color[][] image, int blurLevel)
    {
    Color[][] blurred =...
  6. Replies
    10
    Views
    13,040

    Re: Blur Image

    Here's a simple blurring algorithm:

    1. Take the 8 pixels surrounding your pixel and your pixel
    2. Average the RGB values of all 9 pixels and stick them in your current pixel location
    3. Repeat...
Results 1 to 6 of 6