Jump to content

[Delphi] Rysowanie po ekranie


k_argo

Recommended Posts

Mam problem z rysowaniem po ekranie, kiedy chce cos narysowac na pulpicie to nie mam z tym problemu, ale kiedy uzywam handle do gry i probuje wyswietlic napis w oknie gry to nie dziala, do rysowania uzywam:

 

hand := 'Age of Empires II';
hndl := FindWindow(nil, PAnsiChar(hand));
Canvas.Handle:=hndl;
Canvas.Font.Color := clRed;
Canvas.TextOut(100,100,':)');
ReleaseDC(hndl,Canvas.Handle);  

Link to comment
Share on other sites

Mialem kiedys programik pod TSa, ktory wyswietlal mi na ekranie kto mowi itp. i dzialal, a obraz nie migal, jeszcze przetestuje zmniejszenie czasu w timerze, ale watpie czy to cos zmieni :P

 

P.S - Cos na zasadzie wyswietlania FPS w Frapsie

Link to comment
Share on other sites

  • 2 weeks later...

Fraps robi troszke inna sztuczke zeby wyswietlac FPS i nagrywac filmiki :)

Podpina sie pod dllki dx albo ogl, a dokladnie w odpowiednia funcje Present albo SwapBuffers. Zdaje sie, ze modyfikuje je w pamieci. Na google cos powinno o tym byc.

Down With The Sickness :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...