[RPG]background when saving annotation

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]background when saving annotation

Post by MegumiSawada »

Hi,

I believe the background of the annotation is transparent when saving signature by using EZISERVICE.
Is there any way to save signature(annotation) with background white for example(not transparent)?

I appreciate your kind advice.

Best Regards,
Megumi Sawada
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]background when saving annotation

Post by MarkDuignan »

Could you please post a screen shot of the transparency issue so that I can understand the context?
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]background when saving annotation

Post by MegumiSawada »

screen shots are attached:

I think the background of signature is transparent in signature.png.
I would like to save the sign like signature2.png.
Attachments
image.jpg
image.jpg (29.09 KiB) Viewed 5522 times
signature.png
signature.png (20.34 KiB) Viewed 5522 times
signature2.png
signature2.png (24.94 KiB) Viewed 5522 times
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]background when saving annotation

Post by MarkDuignan »

The EZI code handling the signature request is LRNG_PROJ/QRPGLESRC member EZISRVSIGN.

It sets the property Annotation.MergewithImage to False so that only the signature is saved, not the background image.

There is currently no EZI option to change this.

You could change your own custom version of EZISERVICE - or we can do it for you and give you an updated LRNG_PROJ library.
Attachments
Capture.PNG
Capture.PNG (11.02 KiB) Viewed 5516 times
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]background when saving annotation

Post by MarkDuignan »

Alternatively - after doing the EZI_SetupSignature call to EZI in your RPG program you could do a LRNG_SetProperty to override Annotation.MergewithImage property to true.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]background when saving annotation

Post by MegumiSawada »

Thank you, Mark.

Do you mean in your reply "background " is PleaseSignHere.png?

I would like to save only signature without merging it with PleaseSignHere.png, but with white background.
(Still I would like to show that signature wit PleaseSignHere.png background on screen,though)

Is it possible somehow?

Best Regards,
Megumi
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]background when saving annotation

Post by MarkDuignan »

Try this .........

Locate <axesroot>\LongRange\resource\PleaseSignHere.png

Copy to make new file <axesroot>\LongRange\resource\WhitePleaseSignHere.png (or some other name).

Use PAINT to change WhitePleaseSignHere.png to have a white background. Save the updated image.

Very important - > Use WRKLNK to check that WhitePleaseSignHere.png has *R (and only *R) authority for user *PUBLIC.
If the authority is wrong it can be very confusing because the new image will not be served by aXes.

Change EZI set up call to specify WhitePleaseSignHere.png as the background image to be used.

That should show the white background behind the signature but not save it as part of the signature.
Post Reply