Search:

Type: Posts; User: Serthy

Search: Search took 1.52 seconds.

  1. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    Ok thanks for the tips, as i said i'm quite new to java but im here for learning :D

    I've now removed the Jframe and the Graphics object.
    It solved why the pictures were painted "in" each other.
    ...
  2. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    As you said i've "removed" the try and catch. So now my image is nothing more than a plain (blue) image. So the problem with making it transparent were indeed lying in the loadImage method, or...
  3. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    How can i load my picture to my program if loadImage doesn't work?
  4. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    It kind of works... I've commented away the try/catch as u said. Now i can set the transparency of the picture.

    What i've done now to se how it works is painting the image over a rectangle. ...
  5. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    only difference from the code above is the for-loops



    import java.applet.Applet;
    import javax.swing.*;
    import java.io.*;
    import javax.imageio.ImageIO;
    import java.awt.*;
    import...
  6. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    using "for loops" over all pixels and then use setRGB(x,y, 0x00000000)
    but this only makes it black.
  7. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    as i said in my post above, i've read the documentation about a million times allready, giving me nothing.
    I see you dont want to help too much but i'd be really glad if i could get just a small...
  8. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    bump
  9. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    The thing is that i've been stuck on this problem for over a week now, and i've allready looked at the bufferedimage class (and about 100000 other classed that might be related to the case) over and...
  10. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    Ahh i see you were right, the run method wasn't necessary at all so i've removed it.

    But if there is anyone out there that could help me understand how to make my picture transparent i'd be glad....
  11. Replies
    21
    Views
    1,119

    Re: Transparency to bufferedImage

    The program itself is working and displays my picture. I think that the class as it implements "runnable" pretty much replaces the need for a main method.

    Guess i could remake that since i only...
  12. Replies
    21
    Views
    1,119

    Transparency to bufferedImage

    Hey, im a complete noob to java, but im trying to learn.

    The problem i have now is that i want to make some pixels transparent in my bufferedimage.
    What i "think" i've done so far is making an...
Results 1 to 12 of 12