Q:
Here is what I would like to do:
I am trying to create a dinamic wallpaper. My application would start
everytime I would start a computer. My form contains background picture and
some labels that show me what to do.
Now to my problem:
How can I save whatever is shown in my application to a BMP file (background
+ labels)?
Thanks Bo¹
tjan.Poglajen@siol.net
A:
Use TForm.GetFormImage (see example in help) to save the contents of your
application’s form to a bitmap, then use TBitmap.SaveToFile to save the
bitmap to a file.
– Rick
A:
Do it using The Screen DC
DC=GetDC(0)
Canvas.handle:=DC
Search the points with clienttoscreen and make a copyrect
[tags]Delphi, Graphic[/tags]
0 Kommentare zu “Forms: Save Form as Bitmap”