| pjesh (9) | |
| Hey guys, I'm creating a program that essentially consist of a Canvas class that displays shapes (Rectangle & Square) inside it. The issue I have is, I can't seem to have a picture of how it suppose to display on the command prompt. Any screenshots and ideas would be highly appreciated. Thanks everybody :) | |
|
|
|
| majidkamali1370 (226) | |
|
search "SVG" or "Scalable Vector Graphics" in google. it is an XML file (text file). An SVG viewer renders this XML to a picture. | |
|
|
|
| pjesh (9) | |
|
Err does this work in C++? I am supposed to do it in C++ on standard libraries. | |
|
|
|
| majidkamali1370 (226) | |||
|
Standard library does not have any graphical header. you can create a text file in SVG format and then open it with an image viewer. This is a simple SVG picture:
As you see this is a text file. you can create one of them with c++, then you can open it with image viewer. EDIT: you can do this in an object oriented manner. | |||
|
Last edited on
|
|||
| pjesh (9) | |
|
Oh all right. Thanks for that. But I'm acquired to do it with standard library. It's for my assignment :) Is there a way to do it with a standard one? | |
|
|
|
| majidkamali1370 (226) | |
|
If you want to create an image, there are no standard or library in c++ for that. But as I said create a text file like above with standard library (fstream) and view that with an image viewer. | |
|
|
|