i am just a hobby developer with almost no knowledge and bought me the FNC collection especially for the signature component. but I have a problem to save it to image. this my code
if you want to load a signature in a SignatureCapture component, you have to save it to the native siganture file and not to the image.
there is a bug in the SignatureCapture component that saves black images. To fix it you need in the LCLTMSFNCSignatureCapture.pas file in the following procedures: TTMSFNCCustomSignatureCapture.SaveToImageFile(FileName: string); (line 605 in fnc3.1.0.1) and TTMSFNCCustomSignatureCapture.SaveToImageStream(AStream: TStream); (line 625) between lines: bmp.Height := Round(Height);
and g := TTMSFNCGraphics.Create(bmp.Canvas);
insert code: bmp.Canvas.Brush.Color := Self.Fill.Color; bmp.Canvas.FillRect(0, 0, bmp.Width, bmp.Height);
so after the change it should look like this:
Sample application in attachementpublished.zip (108,2 KB)