We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfImageEditor problems with color palette white

Thread ID:

Created:

Updated:

Platform:

Replies:

149399 Nov 25,2019 10:59 AM UTC Dec 2,2019 01:08 PM UTC Xamarin.Forms 10
loading
Tags: SfImageEditor
Marco Negroni
Asked On November 25, 2019 10:59 AM UTC

Good morning,

i deleted all the ColorPalette and just added, White and Black palettes (because the user can only draw in black/white and i used the white color like a an eraser):

this.sfImageEditor.ColorPalette.Clear();
this.sfImageEditor.ColorPalette.Add(Color.White);
this.sfImageEditor.ColorPalette.Add(Color.Black);

when the user uses the white in order to erase the black, some stranger points appears.

You can find a video attached.

Thanks in advance

Attachment: 20191125_115507_aceaee69.7z

Rachel A [Syncfusion]
Replied On November 26, 2019 08:45 AM UTC

Hi Marco, 
 
Thanks for contacting Syncfusion support. 
 
We have tried to replicate the scenario in the latest NuGet package (17.3.0.28) but we are unable to reproduce it. We have prepared a sample to show that the color palette in SfImageEditor control works fine. Please have the sample from the below link: 
 
 
Please check our sample and if the issue persists from your side, please modify the sample based on the application scenario to replicate the issue and also provide the NuGet package version and UWP Version so that we can provide an appropriate solution for the reported issue. 
 
Thanks, 
Rachel. 


Marco Negroni
Replied On November 26, 2019 03:18 PM UTC

I found the problem, setting custom background color, for example:

this.sfImageEditor.BackgroundColor = Color.FromHex("#f6f6f6");

Marco Negroni
Replied On November 26, 2019 03:20 PM UTC

Hi Marco, 
 
Thanks for contacting Syncfusion support. 
 
We have tried to replicate the scenario in the latest NuGet package (17.3.0.28) but we are unable to reproduce it. We have prepared a sample to show that the color palette in SfImageEditor control works fine. Please have the sample from the below link: 
 
 
Please check our sample and if the issue persists from your side, please modify the sample based on the application scenario to replicate the issue and also provide the NuGet package version and UWP Version so that we can provide an appropriate solution for the reported issue. 
 
Thanks, 
Rachel. 


We need a different background color, not white for the SfImageEditor.

The bug is preset also loading a white image, the background color causes the problem that you can see in the video.

Thanks in advance

Rachel A [Syncfusion]
Replied On November 27, 2019 09:56 AM UTC

Hi Marco,  
 
If the requirement is to view the drawing erased in some parts when the background color is defined, you can set the stroke color to the same as the background color. 
 
Also, we have prepared the screen video to demonstrate that the image is saved properly. 
 
 
Thanks, 
Rachel. 


Marco Negroni
Replied On November 28, 2019 12:23 PM UTC

Hi Marco,  
 
If the requirement is to view the drawing erased in some parts when the background color is defined, you can set the stroke color to the same as the background color. 
 
Also, we have prepared the screen video to demonstrate that the image is saved properly. 
 
 
Thanks, 
Rachel. 


Good afternoon,
my goal is to make an eraser, but if you set a custom background color with:

this.sfImageEditor.BackgroundColor = Color.FromHex("#f6f6f6");

then you load a white image for example a 512x512 blank white image, then you draw a black line and finally you use the white palette to delete the black line you will se the problem in my video.

Rachel A [Syncfusion]
Replied On November 29, 2019 02:01 PM UTC

Hi Marco, 
 
We have checked the same scenario having white image and we are able to replicate it. As we need timeline to diagnose the problem, will update you the status on 2nd December 2019. 
 
Thanks, 
Rachel. 


Rachel A [Syncfusion]
Replied On December 2, 2019 12:09 PM UTC

Hi Marco, 
 
We have used antialiasing method for providing the smoothness of the stroke, due to which we are facing this problem in white image. However, we have already considered the eraser requirement as feature request and the status can be tracked from the below feedback portal link. 
 
 
Please cast your vote to make it count. We will prioritize the features every release based on the demands and priority. This feature will be implemented in any of the upcoming release. 
 
So, we kindly suggest you to use white background for drawing shapes instead of white image until then. 
 
Thanks, 
Rachel. 


Marco Negroni
Replied On December 2, 2019 12:21 PM UTC

Hi Marco, 
 
We have checked the same scenario having white image and we are able to replicate it. As we need timeline to diagnose the problem, will update you the status on 2nd December 2019. 
 
Thanks, 
Rachel. 


Thanks very much

Marco Negroni
Replied On December 2, 2019 12:21 PM UTC

Hi Marco, 
 
We have used antialiasing method for providing the smoothness of the stroke, due to which we are facing this problem in white image. However, we have already considered the eraser requirement as feature request and the status can be tracked from the below feedback portal link. 
 
 
Please cast your vote to make it count. We will prioritize the features every release based on the demands and priority. This feature will be implemented in any of the upcoming release. 
 
So, we kindly suggest you to use white background for drawing shapes instead of white image until then. 
 
Thanks, 
Rachel. 


Thanks

Rachel A [Syncfusion]
Replied On December 2, 2019 01:08 PM UTC

Hi Marco, 
 
Thank you for the response. 
 
Regards, 
Rachel. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon