Skip to content

nksmanya/Image-Manipulation-Project

Repository files navigation

2D Image Manipulation Project 📃

This project performs various image manipulation tasks using Java’s BufferedImage class, allowing you to manipulate images by applying effects, generating random images, and saving the output. It's useful for learning basic image manipulation techniques, working with pixel data, and generating custom images.


⚙️ Image Manipulation

  • Trim Borders: Removes a specified number of pixels from each side of an image.
  • Negative Color: Inverts the colors of each pixel to create a "negative" effect.
  • Stretch Horizontally: Expands the width by duplicating pixels horizontally.
  • Shrink Vertically: Reduces the height by skipping every other row of pixels.
  • Invert Image: Flips the image both vertically and horizontally.
  • Color Filter: Adds a color filter by adjusting the red, green, and blue values of each pixel.

🛠️ Prerequisites

  • Java Development Kit (JDK) 8 or higher.
  • An IDE like Eclipse or IntelliJ IDEA, or a text editor like VS Code.

📥 Installation and setup

  1. Clone the repository:
    git clone https://github.com/nksmanya/Image-Manipulation-Project.git
    
  2. Compile the Java files:
    javac Solution.java
  3. Run the main program:
    java Solution

📬 Feedback

Your feedback is valuable! Feel free to open an issue or submit a pull request to help improve the project.

About

2D Arrays: Image Manipulation Java Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages