Graeme Geldenhuys wrote:
On 29 May 2010 23:20, Felipe Monteiro de Carvalho wrote:
http://stackoverflow.com/questions/1774222/taking-screenshot-of-a-specific-window-c-qt

You could see the Qt source code to check what this does for the
Windows part of the solution.

Here is another way of doing it under Windows - as coded in tiOPF.
I've never used this myself, so don't really know the code at all,
just know it is there.

I had some code for X11, but couldn't find it now - it might be on my
work PC. If I find it, I'll post it here.

Thanks for that. Presumably some of the portability issues are due to the difficulty of manipulating bitmaps, hence TLazIntfImage etc.

Looking back through something I wrote in Delphi I see I used TCustomForm.GetFormImage. Bug 11292 implies this is in 0.9.26 for Win32 and GTK2, position with other widget sets uncertain.

I might take a look at this later but since it turns out to be non-trivial it would probably be wise if I concentrated on core functionality first.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to