Hello!
I tried to save a SignatureCapture with SameToImageFile with given PNG-filename according to the documentation (both pdf and web).
But the file is stored in BMP-format. Also checked the code - Bitmap is only used.
Br,
/Werner
Hello!
I tried to save a SignatureCapture with SameToImageFile with given PNG-filename according to the documentation (both pdf and web).
But the file is stored in BMP-format. Also checked the code - Bitmap is only used.
Br,
/Werner
Hi,
The TTMSFNCSignatureCapture uses a TBitmap canvas to draw the signature and save it to a file. The behaviour is framework specific. Saving to a PNG in FMX should work.
Are you using VCL? In that case if you need PNG format, you can work around by doing the following:
procedure TForm1.Button1Click(Sender: TObject);
var
png: TPngImage;
strm: TMemoryStream;
begin
strm := TMemoryStream.Create;
png := TPngImage.Create;
try
TMSFNCSignatureCapture1.SaveToImageStream(strm);
png.Assign(TMSFNCSignatureCapture1.GetImageFromStream(strm));
png.SaveToFile('test_image.png');
finally
strm.Free;
png.Free;
end;
end;