crazedmeph's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Active Members
Active Posts:
93 (0.05 per day)
Joined:
19-October 09
Profile Views:
2,027
Last Active:
User is offline Mar 31 2014 11:41 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Toyota
Dream Kudos:
0

Latest Visitors

Icon   crazedmeph Live laugh code

Posts I've Made

  1. In Topic: Robot get pixel color question

    Posted 17 Mar 2014

    Color r;
    		r = robot.getPixelColor(1770+((1859-1770)/2), 152);
    //		1770, 1859
    		System.out.println(r);
    


    I just used this, (Long story on the numbers). Opened up paint, painted a picture one solid orange color the exact same way on both computers did the exact same steps and used that same exact code (Skydrive) and they gave me completely different colors.

    The first computer (mind you it is dual screen) gave me (255, 201, 14) and the second computer gave me 245, 246, 247 (Which is prob the white portion of the paint program, not the orange part. So its off by quite a few pixels. not just close to it or else it would of gave me orange because half of the screen was orange. Now I have a program that just figures out which one to use and between the computers works fine because I have them hard coded but..... I want to be able to code it based on the resolution and something is really messed up. So if you just run a robot get Pixel color on two PC's you should see two different results.
  2. In Topic: Robot get pixel color question

    Posted 15 Mar 2014

    They both are the same exact resolution. It makes no sense to me.... they both are set at 1920 x 1080 and are set up identical.
  3. In Topic: Byte array to BufferedImage Question

    Posted 15 Nov 2012

    How do you write an Image with ImageIO? And I see the problem, I am currently using this
    imageBytes = ((DataBufferByte) image.getData().getDataBuffer()).getData();
    
    To get the array of bytes, it will give me the correct amount of bytes that I would expect with a 2x2 image i get 16 bytes which is ARGB * 4 = 16. But there is nothing to tell that it is a picture. I was using
    try{
    			ByteArrayOutputStream baos = new ByteArrayOutputStream();
    			ImageIO.write(image, "jpg", baos );
    			baos.flush();
    			imageBytes = baos.toByteArray();
    			baos.close();
    		}catch(IOException e){System.out.println(e.getMessage());}
    

    Which always gave me 800+ bytes even with a 2x2 image..... Im not sure why. And when i save it with the first one I cannot view it, because there are no bytes that tell its a picture im guessing?
  4. In Topic: Byte array to BufferedImage Question

    Posted 2 Nov 2012

    I tried both
    BufferedImage.TYPE_4BYTE_ABGR
    and
    BufferedImage.TYPE_3BYTE_BGR

    Neither of them worked :/
  5. In Topic: Generic Casting Question

    Posted 12 Oct 2012

    Thanks for the help guys :), thanks for the information! You guys are awesome, can always rely on dreamincode for answers :)

My Information

Member Title:
D.I.C Head
Age:
26 years old
Birthday:
May 25, 1988
Gender:
Location:
Jacksonville, Fl
Full Name:
Justin
Programming Languages:
Java, some C

Contact Information

E-mail:
Private

Friends

crazedmeph hasn't added any friends yet.

Comments

crazedmeph has no profile comments yet. Why not say hello?