Draw a line without arrowhead

Hi,

In shape toolbar we've 3 options: Circle, Square and Arrow. Is possível remove arrowhead in this arrow? Or create one new component where the user draw one line without free hand sketching?

Tks.



3 Replies

RS Ramya Soundar Rajan Syncfusion Team August 4, 2020 01:05 PM UTC

Hi Henrique, 
 
Greetings from Syncfusion. 
 
Query 1: Is possível remove arrowhead in this arrow?  
   
We would like to inform you that currently, we don’t have a support to remove the arrowhead while adding the shape arrow.  
   
Query 2: create one new component where the user draws one line without freehand sketching?  
   
You can achieve this requirement by adding the Xamarin.Forms.Shapes Line as a custom view on an image. Please refer the sample from below location.  
 
 
Please refer the below link for more information of SfImageEditor custom view. 
 
Regards, 
Ramya S 



HE Henrique August 4, 2020 02:46 PM UTC

Ramya,

I changed your code and when I try resize line, this function is not right. Below my code:

 CustomViewSettings customViewSettingsStand = new CustomViewSettings()
            {
                IsResizable = true,
                Angle = 90
            };

            Line customLine = new Line() {X1=100,Y1=0,X2=0,Y2=20,Stroke=Color.Red,StrokeThickness=3, WidthRequest=100,HeightRequest=20 };
            imageeditor.AddCustomView(customLine, customViewSettingsStand);

So, the area between all resize point, I can move and resize. But, the image isn't resize.

Is possible create the line and after resized the image?

Tks


RS Ramya Soundar Rajan Syncfusion Team August 5, 2020 10:02 AM UTC

Hi Henrique,  
 
We have analyzed your reported query. You have mentioned that “Image isn’t resized” could you please confirm whether the added custom view as the line which one was not resized, or you are adding the image as a custom view that was not resized? So, can you please provide more information on your reported problem along with your current Syncfusion version and short video? This will be helpful for us to provide a better solution at earliest.   
 
Regards, 
Ramya S 


Loader.
Up arrow icon