jamesmontemagno / ImageCirclePlugin

Circle Images for your Xamarin.Forms Applications
MIT License
240 stars 68 forks source link

Transparency not working on UWP #77

Closed MorneZaayman closed 5 years ago

MorneZaayman commented 5 years ago

Bug Information

Version Number of Plugin: 3.0.0.5 Device Tested On: Windows 10 Pro, Version 1803 Simulator Tested On: N/A Version of VS: 15.8.8 Version of Xamarin: 3.3.0.967583

Steps to reproduce the Behavior

When creating a CircleImage in UWP witha FillColor property defined, and an image with transparency, the transparency changes to white, hiding the FillColor behind the image.

Expected Behavior

The FillColor shows behind the image in the parts of the image that are transparent.

Actual Behavior

The transparent parts of the image get rendered as white, covering the FillColor.

Code snippet

<circleimage:CircleImage x:Name="SelectionImage" Aspect="AspectFill" IsVisible="True" Source="{Binding Icon}" FillColor="{Binding FillColor}" BorderThickness="3" WidthRequest="30" HeightRequest="30" VerticalOptions="Center" Margin="0,5,30,0" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1"/>

Screenshots

White/Transparent images are between the <-- and -->

Example image: -->icon_tick<-- Expected (From Android build):

expected

Actual: --> actual<--

jamesmontemagno commented 5 years ago

Duplicate of : https://github.com/jamesmontemagno/ImageCirclePlugin/issues/1 however I don't think it can be solved after looking at the code. You can stack 2 on top of each other.