Code: Select all
APrint := TBitmap.Create;
try
if CefWindowParent1.TakeSnapshot( APrint ) = True then
APrint.SaveToFile( 'Test.bmp' );
finally
if ( APrint <> nil ) and ( Assigned( APrint ) = True ) then
APrint.Free;
end;
I am using Lazarus 2.0.6 64 Bit (CEF 78.2.9).
I already tried to disable hardware acceleration(GlobalCEFApp.EnableGPU := False), and the result is the same.
Does anyone know why this is happening?