This method draws a Stamp object from the specified point.

[Visual Basic] Public Function DrawStamp(pt As System.Windows.Point) As Boolean
[C#] public bool DrawStamp(System.Windows.Point pt);

Parameters

pt

The coordinates of type System.Windows.Point designating the top left corner of the Stamp object.

Return Value

Returns True if successful, otherwise returns False.

Explanation

This DrawStamp method draws a Stamp object from the specified point. Prior to executing this method, set appropriate values in the FontName, FontSize, FontBold, FontItalic, FontStrikeout, FontUnderline, ForeColor, ForeColorOpacity, BackColor, BackColorOpacity, Border, BorderColor, BorderColorOpacity, BorderShape, Fill, PenWidth, TextAlign, VerticalText, and RightToLeft properties. Then set the text to be drawn in the Text property.

Set the coordinates for the top left corner of the Stamp object in the DrawStamp method's pt parameter. When the DrawStamp method is executed, the Stamp object with the text that is set in the Text property will be drawn with its top left corner at that coordinate location. Text will be drawn on a single line unless a new line character is used.

This method will draw text, irrespective of the EditKind and WordWrap property values.

If the coordinates set in the pt parameter are outside the image displayed in the ImageKit control and the LimitAnnotationPosition property or the LimitDrawPosition property are set to True, the text will be repositioned so the coordinate location is within the image.

To delete the text drawn with the DrawStamp method, right click the object and display the context menu, the select "Undo" or execute the Undo method.

The DrawStamp method can be used without setting the EditKind property to KindOfEdit.Stamp. The WordWrap property does not affect the output of this method.

It is also possible to draw a Stamp object by setting the EditKind property to KindOfEdit.Stamp then, on the base image displayed in the ImageKit control, use the mouse and keyboard. For more details, please refer to the Edit Overview.

See also

ImageKit.Edit Members | Newtone.ImageKit.Wpf.ImageKit

 

The ImageKit WPF is created by Newtone Corporation