Possible to make transparent Form with good rendering PNGs as Background Images

Good Evening,

iam new to syncfusion and want to make a clear transparent Form in WinForms with PNG as Background - but it renders my Gradient Shadow in the Png not really good. 
Any options possible in synfusion to make it possible?

Trys with TransparencyKey gives really bad results.

Greetz
Pac

3 Replies

MA Mohanram Anbukkarasu Syncfusion Team June 18, 2018 10:14 AM UTC

Hi Pac,   
  
Thanks for contacting Syncfusion Support.   
  
If you set any color value for the TransparencyKey property and set BackGroundImage for the form, then the part of the form background with the specified color will become transparent.   
Please refer to the below code example and sample from the given location.   
  
Code Example   
this.BackColor = Color.White; 
this.TransparencyKey = Color.White; 
this.BackgroundImage = Image.FromFile(@"map.png"); 
 
  
If the above solution doesn’t meet your requirement, please provide more information about your requirement and the customization of your gradient shadow rendering. It will be helpful for us to analyze further and to provide you the exact solution at the earliest.   
  
Regards,   
Mohanram A.   



PA Pac June 18, 2018 10:57 AM UTC

I try to make a clean form with the picture below but the result is not really good. Any other suggestions to make the result better?


Thanks for your help anyway. :-) 

Greetz
Pac

Attachment: Desktop_120dc3d5.zip


MA Mohanram Anbukkarasu Syncfusion Team June 20, 2018 12:22 PM UTC

Hi Pac, 

Thanks for your update. 

We have checked the behavior of the TransparencyKey and found that, it renders a shadow for the background image by default. It is the behavior of transparent rendering in Form. So, rendering of the shadow for the background image cannot be avoided. 

Regards, 
Mohanram A. 


Loader.
Up arrow icon