Board index » delphi » Double buffering a "transparent" form
Anton Rozsypal
![]() Delphi Developer |
Wed, 04 Jun 2003 12:21:54 GMT
Double buffering a "transparent" form
I would like to create a rectangular form which appears transparent,
so its Canvas should be filled with the screen background. Besides the background the form contains additional graphics. To reduce flicker I tried to use double buffering by copying the screen background into a Bitmap using PrintDesktop(Bitmap.Canvas.Handle); then draw the graphics onto the Bitmap and finally copy the Bitmap onto the Form.Canvas. As it is, the PrintDesktop operation copies the screen background always beginning with the screen point (0,0) at the left upper corner, no matter where is the form positioned on the screen. How can I enforce grabbing, for instance, the screen background beginning with (100,200) without creating a screen size Bitmap? Thank you for your suggestions, Anton -- ------------------ |