Ink Picture Element

The Ink Picture Element allows you to write or draw on a form, e.g. to collect a written signature or to annotate a picture. The Element allows the user to write or draw with their finger or using a mouse within the boundaries of a defined rectangle. The Element can have a blank rectangle or you can display a background image over which the user can write or draw, e.g. to indicate the position of something relative to the image.

When you add an Ink Picture Element to your form, the default Element looks like this:

Picture showing default Ink Picture Element.

Click on image above to display larger

 

The buttons along the bottom of the drawing rectangle are:

Picture showing the Clear All button. - Clear all ink from the drawing rectangle.

Picture showing the Undo Last Change button. - Undo the last change. You can undo as many changes as you want to, by clicking or tapping this Undo button multiple times.

Picture showing the Decrease Line Thickness button. - Decrease the thickness of the line drawn.

Picture showing the Increase Line Thickness button. - Increase the thickness of the line drawn.

Picture showing Colour Choices for line. - Choose the colour of the line to draw. You can draw lines of different colours within the drawing rectangle.

 

If you want to provide a background image, you can either specify a static image which will always remain the same, or you can read the picture in from a Datasource, in which case the picture may change with each new record. The image will be resized to fit within the drawing rectangle.

If you include a background image, when a user submits their form, a 'flattened' image of the background picture together with any pen strokes added by the user will be written to the output mapped Datasource column. If you read in an image which has previously been annotated within an Ink Picture Element and saved to a Datasource, you cannot edit the previous pen strokes.

If you hide and then reshow an Ink Picture Element on which the user has drawn, the Undo button will not be able to undo the user's previous drawing strokes line by line.

 

You can see a list of pictures you have already used in this project in the Project Explorer's Project tab. Expand the Resources node to see the list of images imported into this project. Right-click on an image in the tree view to display a context-sensitive menu including Add New Resource, Cut, Copy, Paste, Delete and Rename options. Right-click on either an image or the Resources node to import an image file here rather than within an Ink Picture Element's properties.