Hi guys! I am new to java and I have a little problem with ma Java code. My application should read and paint an Image from file. The information about the image are in text format and the image can be composed of rectangles and circles. An example:
rectangle {
topLeft = 40 50;
size = 20 20;
}
circle {
centre = 40 40;
radius = 20;
color = 0 0 255
}
We have to use Canvas to paint an object. And the problem is, that I don't know how to paint from these text information an object like rectangle or circle. Can somebody help me?