Results 1 to 14 of 14
Thread: help with some pixels
- 07-08-2012, 07:31 PM #1
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
help with some pixels
here is the line of code, if I use this together with some other code it should do something with the screen on my GUI:
it tells me that DataBufferInt cannot be resolved as a type. I am using JRE 7. please help anyone? :)Java Code:private BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB); private int[] pixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();
- 07-08-2012, 08:54 PM #2
Re: help with some pixels
Did you import the class?
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 07-08-2012, 09:51 PM #3
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
import which class? i have imported BufferedImage.
-
Re: help with some pixels
- 07-08-2012, 11:46 PM #5
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
the compiler says there is an unresolved compilation problem with the main method. and I am using eclipse, and eclipse says that DataBufferInt cannot be resolved as a type.
-
Re: help with some pixels
- 07-09-2012, 12:28 AM #7
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at com.ole.game.Game.main(Game.java:87)
that is the hole error message^^
-
Re: help with some pixels
- 07-09-2012, 12:34 AM #9
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
I dunno how to compile -.- srry, that's why I didn't understand your questions.
-
Re: help with some pixels
Are you using any tools to help you create your code, such as an IDE like NetBeans or Eclipse? If so what tool? And does the tool indicate that there's an error present before you try to run your program?
- 07-09-2012, 12:39 AM #11
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
I use Eclipse, and yes, before I try to run the code the only thing it says is "DataBufferInt cannot be resolved as a type".
-
Re: help with some pixels
- 07-09-2012, 12:53 AM #13
Member
- Join Date
- Jun 2012
- Posts
- 49
- Rep Power
- 0
Re: help with some pixels
thx, I feel stupid... -.-
-
Re: help with some pixels
Sorry that I wasn't more direct in post #4 of this thread. I thought that you would pick up on which class needed the import.
Similar Threads
-
Pixels
By shakeel in forum Java 2DReplies: 0Last Post: 03-01-2011, 11:32 AM -
Decimal Pixels?
By Jcbconway in forum AWT / SwingReplies: 0Last Post: 11-29-2010, 09:25 PM -
Modified Pixels
By monkey04 in forum Java 2DReplies: 1Last Post: 03-12-2009, 08:15 AM -
Blurring pixels
By tim in forum New To JavaReplies: 0Last Post: 01-01-2008, 02:06 PM -
Counting Pixels
By shaungoater in forum Java 2DReplies: 5Last Post: 11-29-2007, 05:51 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks