I would like to know, if is possible set or get the position of shape or customview, while dragging? Or if possible drawing guide line, like this:
Thanks.
|
<imageeditor:SfImageEditor Source="{Binding Image}" x:Name="editor" ItemSelected="SfImageEditor_ItemSelected" /> |
|
private void SfImageEditor_ItemSelected(object sender, Syncfusion.SfImageEditor.XForms.ItemSelectedEventArgs args)
{
var selectedShapeBounds = (args.Settings as PenSettings).Bounds;
var imagebounds = editor.ActualImageRenderedBounds;
var size = editor.OriginalImageSize;
var selectedShapeXPosition = ((size.Width / 100) * selectedShapeBounds.X) + imagebounds.X;
var selectionShapeYPosition = ((size.Height / 100) * selectedShapeBounds.Y) + imagebounds.Y; } |
Great. It's Perfect.
And about drawing guide lines? Any suggestion?
And another doubt, when use "editor.AddShape(ShapeType.Line);" is possible set begin point and end point for drawing the line?
Thaks a lot!!!
Hi hello sorry for bothering you but is there a solution to the guide lines?
Hi AD Ware,
The current implementation of the SfImageEditor does not have support for displaying guidelines when adding shapes.
Regards,
Eswaran