Search:

Type: Posts; User: Cereno

Search: Search took 0.26 seconds.

  1. Replies
    3
    Views
    215

    Can an object change it's own reference?

    Hi,

    I was wondering if you could do something like this in java:

    public Class Actor {

    ...
    Object Object 1 = new Object(...);
    ...
  2. [SOLVED] Re: unable to display BufferedImage with RGBA colorspace

    I understand now. I never suspected the rgba values needed to be packed that way.

    Thank you so very much for your time. Thanks to you, my code is working now :)
  3. [SOLVED] Re: unable to display BufferedImage with RGBA colorspace

    That's exactly what I am doing since my RGBA array looks like this:

    Values[0] = 1st pixel / R component
    Values[1] = 1st pixel / G component
    Values[2] = 1st pixel / B component
    Values[3] =...
  4. [SOLVED] Re: unable to display BufferedImage with RGBA colorspace

    How can the alpha component be set to zero when i do this?


    for(int index = 0; index < RGBA.length; index++) {

    RGBA[index] = 50; // I didn't reproduced the randomness involved here

    }
  5. [SOLVED] Re: unable to display BufferedImage with RGBA colorspace

    Here is my SSCCE. Sorry for not thinking of that sooner.


    import java.awt.image.BufferedImage;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import...
  6. [SOLVED] Re: unable to display BufferedImage with RGBA colorspace

    I am not sure, i think it comes last but I could be wrong. The point is that each component in each pixels of my BufferedImage is set randomly to be between 0 and 255, so seeing Nothing when trying...
  7. [SOLVED] unable to display BufferedImage with RGBA colorspace

    Hello,

    I have some problems displaying a BufferedImage in a GUI.

    The program I'm writing uses a set of rules to generate an integer array representing an image in RGBA. I have something like...
Results 1 to 7 of 7