i think i was not clear in my quesiton.
my question actually was how to store a graphics image generated in C.
Eg.
#include<graphi cs.h>
void main()
{
int gm,gd=DETECT;
initgraph(&gd,& gm,"");
rectangle(50,50 ,200,300);
setcolor(1);
circle(150,150, 50);
save();
}
now save function should store the image generated into a jpeg file.
i think i was not clear in my last post.
sorry for the inconvinience.
actually i'm doing a project which is similar to paint in windows.
i wanted to give save option in my project.
thank you
with regards JT
my question actually was how to store a graphics image generated in C.
Eg.
#include<graphi cs.h>
void main()
{
int gm,gd=DETECT;
initgraph(&gd,& gm,"");
rectangle(50,50 ,200,300);
setcolor(1);
circle(150,150, 50);
save();
}
now save function should store the image generated into a jpeg file.
i think i was not clear in my last post.
sorry for the inconvinience.
actually i'm doing a project which is similar to paint in windows.
i wanted to give save option in my project.
thank you
with regards JT
Comment