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. Image for the cookie policy date

SfImageEditor problems with color palette white

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

10 Replies

RA Rachel A Syncfusion Team 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. 



MN Marco Negroni November 26, 2019 03:18 PM UTC

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

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


MN Marco Negroni replied to Rachel A 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


RA Rachel A Syncfusion Team 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. 



MN Marco Negroni replied to Rachel A 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.


RA Rachel A Syncfusion Team 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. 



RA Rachel A Syncfusion Team 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. 



MN Marco Negroni replied to Rachel A 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


MN Marco Negroni replied to Rachel A 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


RA Rachel A Syncfusion Team December 2, 2019 01:08 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon