Board index » delphi » Capturing image(by Bitmap) of invisible Control(or Component)...

Capturing image(by Bitmap) of invisible Control(or Component)...

Capture image of Invisible Control....

Help me...

Thanks for reading...

I'm fool..... beginner...
===============================
  Visible Control Capture Method
=====================================
var
 DC: HDC;
begin
 DC := GetDC(Panel1.Handle);
 SendMessage(Panel1.Handle, WM_PAINT, DC, 0);
 Bitmap1.Canvas.Handle := DC;
end;

 

Re:Capturing image(by Bitmap) of invisible Control(or Component)...


use Getformimage which is  a bitmap and then extract the image from
that.
Quote
mmmbop wrote:
> Capture image of Invisible Control....

> Help me...

> Thanks for reading...

> I'm fool..... beginner...
> ===============================
>   Visible Control Capture Method
> =====================================
> var
>  DC: HDC;
> begin
>  DC := GetDC(Panel1.Handle);
>  SendMessage(Panel1.Handle, WM_PAINT, DC, 0);
>  Bitmap1.Canvas.Handle := DC;
> end;

Other Threads