有人做过屏幕录截图软件么?
可以截取Overlay surface上的视频内容和普通桌面(Primary Surface)上的内容
[解决办法]
看看这个吧美女
http://topic.csdn.net/u/20111118/18/58d1aae5-52d5-4782-8f80-b99bd15644e1.html
[解决办法]
Graphics::TBitmap *bmp=new Graphics::TBitmap;
TCanvas *cvs=new TCanvas;
cvs->Handle=GetDC(0);
bmp->Width =Screen->Width;
bmp->Height = Screen->Height;
bmp->Canvas->CopyRect(Rect(0,0,Screen->Width,Screen->Height),cvs,Rect(0,0,Screen->Width,Screen->Height));
bmp->SaveToFile("abc.bmp");
TJPEGImage *j=new TJPEGImage;
j-> Assign(bmp);
j-> SaveToFile( "a.jpg ");
TMemoryStream *mstr=new TMemoryStream;
bmp->SaveToStream(mstr);
BmpToJpg(mstr);
mstr->SaveToFile("abc.jpg");