New course! Every coder should learn Generative AI!
Try a free lesson+ 3
can we create an image using C or C++
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.
+ 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.
0
no i jst wanna insert an image jst by coding