Giter VIP home page Giter VIP logo

anno-1602-reader's People

Contributors

danjb1 avatar szsascha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

anno-1602-reader's Issues

java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!

Hi!

Thank you for your great work!

Unfortunately I got some strange behaviour on my system. I copied the "AnnoReader" class into Eclipse and got the following output:

Reading palette
Saved image: out/TIERE.BSH_0.png
418058 bytes remaining
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.setDataElements(IntegerInterleavedRaster.java:301)
at java.awt.image.BufferedImage.setRGB(BufferedImage.java:1016)
at main.AnnoReader.readImage(AnnoReader.java:147)
at main.AnnoReader.read(AnnoReader.java:89)
at main.AnnoReader.main(AnnoReader.java:252)

But if I compile it via javac in the terminal (as you describe) it works. Currently I don't understand why it doesn't work in Eclipse.

I suspect ByteOrder.LITTLE_ENDIAN. Maybe that works a bit differently on MacOS. Reading the color palette works fine.

Some informations about my System:
macOS 10.14
Java JDK 1.8.0_111
Eclipse IDE for Java Developers Oxygen.3a Release (4.7.3a)

I would really appreciate a solution or a simple workaround!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.