Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ASCII art involves making images out of characters (chars). It turns out that this is not very far from how images really are represented theyre
ASCII art involves making images out of characters (chars). It turns out that this is not very far from how images really are represented theyre really just two-dimensional arrays of colors. This short assignment will get you to explore how image manipulation programs work. For this assignment, images are represented as a 2D array of type char.
Create a class called Image with:
- Constructor that takes a 2D array the represents an ascii art image as a parameter and assigns it to an appropriate member variable.
- toString method that prints out the image.
- flipHorizontal method that flips the image horizontally. Note: the characters themselves don't flip!
- flipVertical method that flips the image vertically.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started