URGENT HELP: How to PrintScreen Graphics n TurboC3?

Status
Not open for further replies.

dragonball

Broken In
i have ade some projects in turboc3, (which i gotta demonstrate to my teacher) making circle,parabola, etc. But i am unable to o/p the images generated. Any method?

PS: the normal method "edit-mark-paste" used to o/p texts of DOS window doesnt seem to work for DOS images.
 

walking-techie

Journeyman
see if this helps

while in tc.. press alt+e or alt+enter key
u get tc in window form
now maximise it as much possible and take a printscreen
 

siriusb

Cyborg Agent
Try using a screen grab utility like snagit. They might be able to capture it off the video memory.
 

choudang

Padawan
can you give me the code


*services.nexodyne.com/email/icon/Q0uQGVutrP05jChumhiS/A%2BgIgdQ%3D/R01haWw%3D/0/image.png
 
OP
D

dragonball

Broken In
#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>

void cir_mid(int r)
{
int x=0,y=r;
int gdriver=DETECT,gmode;
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
int d=1-r;
line(0,240,639,240);
line(320,0,320,479);
putpixel(320+x,240-y,5);
while(x<y)
{
if(d<0)
d+=2*x+3;
else
{
d+=2*(x-y)+5;
y--;
}
x++;
putpixel(320+x,240-y,5);
putpixel(320+y,240-x,5);
putpixel(320-x,240+y,5);
putpixel(320-y,240+x,5);
putpixel(320+x,240+y,5);
putpixel(320-y,240-x,5);
putpixel(320+y,240+x,5);
putpixel(320-x,240-y,5);
delay(100);
}
getch();
closegraph();
}

void main()
{
int r;
cout<<"enter the radius of circle ::\n";
cin>>r;
cir_mid(r);
}
 

siriusb

Cyborg Agent
Perhaps you can write a c routine to getpixel and write it out in BMP format. If u can search deepe, you can even find a free c code snippet to that does it.
 

mediator

Technomancer
It seems ur using XP dude!
Use Win 95 or 98 (u may on Virtual M/C) and then try PrintScreen key!
Newy u may try this command in dos mode
"urprog.exe > file.txt"

I know Snagit wont work. Coz i faced the problem maself!

But If ur easy and know the O/P..u may just use paint and create output urself ..Why face such a problem
 

casanova

The Frozen Nova
Try Printscreen or shift+printscreen. The method said by walkie techie is good one. if u r not successfull with printscreen or shift+printscreen. Try walking techies method i.e; hit alt+enter, maximize to maximum size possible but u shud be able to see taskbar if autohide taskbar is disabled. Goto paintbrush, and cut only that part of screen that u wud have seen in full mode.
I use ne of these methods.
 
Status
Not open for further replies.
Top Bottom