can we create an image using C or C++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

can we create an image using C or C++

10th Jul 2020, 6:30 AM
kaneez fathma
kaneez fathma - avatar
3 Answers
+ 1
Assuming that you want to display an image using C++, you need to use OpenCV(similar to the library we use in python for performing different operations on image if u are familiar with python). To install opencv on your machine head over to the section "Installation by using the pre-built libraries" in here https://docs.opencv.org/2.4/doc/tutorials/introduction/windows_install/windows_install.html And for tutorial on how to use it head over here https://www.opencv-srf.com/2017/11/load-and-display-image.html You can also qt but I am not familiar with it.
11th Jul 2020, 1:58 PM
ROHIT SHARMA
ROHIT SHARMA - avatar
+ 10
Yes Graphics can be created in c/c++. Using headers like graphic.h, dos.h and initgraph like function you can create graphics in c++/c. SL code playground might not support it but don't know.
10th Jul 2020, 6:38 AM
Ketan [#Be Happy 😄]
Ketan [#Be Happy 😄] - avatar
0
no i jst wanna insert an image jst by coding
10th Jul 2020, 2:00 PM
kaneez fathma
kaneez fathma - avatar