Toggle navigation
Images.Elk.pl
graphic26
Borland C++ Builder dla początkujących Zapisywanie zrzutu ekranu do pliku BMP Aby po kliknięciu przycisku Button1 zapisać zrzut ekranu do pliku BMP: Unit1.cpp void __fastcall TForm1::Button1Click(TObject *Sender) { TCanvas &PulpitCanvas = *new TCanvas(); Graphics::TBitmap *Bmp = new Graphics::TBitmap; PulpitCanvas.Handle = GetDC(0); Bmp->Width = Screen->Width; Bmp->Height = Screen->Height; Bmp->Canvas->CopyRect(Rect(0, 0, Bmp->Width, Bmp->Height), &PulpitCanvas, Rect(0, 0, Bmp->Width, Bmp->Height)); try { Bmp->SaveToFile("c:\\ekran.bmp"); ReleaseDC(0, PulpitCanvas.Handle); } catch(...) { } delete &PulpitCanvas; delete Bmp; } nadesłał: Bronx
Wyszukiwarka
Podobne podstrony:
graphic02
graphics
graphic11
graphite pet
Graphics
representing graphical user interfaces64834
graphic23
Graphic Design For Everyone 01
graphic13
graphic33
graphic12
Graphics2D
graphic15
więcej podobnych podstron