{"id":140,"date":"2007-05-12T16:04:57","date_gmt":"2007-05-12T14:04:57","guid":{"rendered":" http:\/\/www.nsonic.de\/blog\/2007\/05\/forms-save-form-as-bitmap\/"},"modified":"2007-05-12T16:04:59","modified_gmt":"2007-05-12T14:04:59","slug":"forms-save-form-as-bitmap","status":"publish","type":"post","link":"https:\/\/www.nsonic.de\/blog\/2007\/05\/forms-save-form-as-bitmap\/","title":{"rendered":"Forms: Save Form as Bitmap"},"content":{"rendered":"<p><em>Q:<br \/>\nHere is what I would like to do:<br \/>\nI am trying to create a dinamic wallpaper. My application would start<br \/>\neverytime I would start a computer. My form contains background picture and<br \/>\nsome labels that show me what to do.<br \/>\nNow to my problem:<br \/>\nHow can I save whatever is shown in my application to a BMP file (background<br \/>\n+ labels)?<\/p>\n<p>Thanks Bo\u00b9<br \/>\ntjan.Poglajen@siol.net<br \/>\n<\/em> <\/p>\n<p>A:<br \/>\nUse TForm.GetFormImage (see example in help) to save the contents of your<br \/>\napplication&#8217;s form to a bitmap, then use TBitmap.SaveToFile to save the<br \/>\nbitmap to a file.<\/p>\n<p>&#8211; Rick<br \/>\nA:<br \/>\nDo it using The Screen DC<br \/>\nDC=GetDC(0)<br \/>\nCanvas.handle:=DC<\/p>\n<p>Search the points with clienttoscreen and make a copyrect<\/p>\n<p>[tags]Delphi, Graphic[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q: Here is what I would like to do: I am trying to create a dinamic wallpaper. My application would start everytime I&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[11],"tags":[75,101],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p71Tml-2g","_links":{"self":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/140"}],"collection":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":0,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nsonic.de\/blog\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}