Hi
TAdvSignatureCapture.SaveToImageFile('xy.jpg') saves a complete black image. What can i do?
Thanks, Sven
I cannot reproduce this.
Is this the latest version of the component?
Test code applied to a default TAdvSignatureCapture yields a white image:
AdvSignatureCapture1.SaveToImageFile('e:\tms\temp\signature.jpg');
I found out.
it happens, if i save the image after closing the form.
with TMyForm.Create(Application.MainForm) do
try
if ShowModal = mrOK then
begin
AdvSignatureCapture1.SaveToImageFile(_SaveToFilename);
Result := true;
end;
finally
Free;
end;
i will move it to OnClose
(That worked in an earlier version of TMS. we moved to the latest version)
I checked the repository and in the past months, nothing was changed in this area in our component. I think it is not a good practice to do this after ShowModal. From OnClose or OnCloseQuery is a better approach.
ok, thanks
the previous used version is very old, 4 years and more