Are you sure it is not falling out of bounds?  That is what the stack
dump implies...  Could you do a println of your raster?  (i.e.
System.out.println("Raster is "+someRaster);)

jeannette

> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> Importance: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
> Date: Mon, 11 Dec 2000 20:06:00 +1030
> From: Sean <[EMAIL PROTECTED]>
> Subject: [JAVA2D]
> To: [EMAIL PROTECTED]
>
> Hello,
>
> what does the java.awt.image.Raster.getPixel(Unknown Source) error mean ? If
> i use a variable for the call as in :
>
> aPixel = someRaster.getPixel(xCoord,yCoord,aPixel);
>
> the code works fine. If i use an integer expression instead, as in
>
> aPixel = someRaster.gePixel(xCoord+1,yCoord+1,aPixel);
>
> the following is issued: (it is not falling outside of the bounds of the
> image)
>
>
>
> java.lang.ArrayIndexOutOfBoundsException
>         at java.awt.image.DataBufferByte.getElem(Unknown Source)
>         at java.awt.image.ComponentSampleModel.getPixel(Unknown Source)
>         at java.awt.image.Raster.getPixel(Unknown Source)
>         at RadarTracker.extractObject(RadarTracker.java:170)
>         at RadarTracker.<init>(RadarTracker.java:376)
>         at RadarTracker.main(RadarTracker.java:422)
>
> regards,
> sean
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to