This is a Java program that converts PNG images to a custom .na
file format. You can select a PNG image, convert it to .na
, and view the converted image.
- Select PNG File: Choose a PNG image file from your computer.
- Convert to .na: Convert the selected PNG image to
.na
format. - View Image: Open and view images stored in
.na
format.
- Select a PNG: The program lets you pick a PNG file.
- Convert: It converts the PNG image data to
.na
format. - View the Converted Image: You can open and display the
.na
image.
- Java Development Kit (JDK): Make sure you have Java installed. You can download it here.
- Clone or Download this project to your computer.
- Open the Project in your Java IDE (like IntelliJ IDEA, Eclipse, or NetBeans).
- Compile and Run
PngToNAConverterGUI.java
:- This will open a window with buttons for selecting, converting, and viewing files.
- PngToNAConverterGUI.java: The main class with the user interface.
- ImageUtils.java: Handles image processing (converting PNG data).
- NAFileUtils.java: Manages
.na
file operations (saving and reading).
- Click Select PNG File to choose an image.
- Click Convert to .na to convert the image.
- Click Open .na File to view the converted image.
- File Not Found: Make sure the PNG file is accessible.
- Conversion Errors: Check if the file is a valid PNG image.