Skip to content
This repository has been archived by the owner on Aug 3, 2018. It is now read-only.

Xamarin Forms Tinted Image for iOS, Android & Universal Windows Platform

License

Notifications You must be signed in to change notification settings

shrutinambiar/xamarin-forms-tinted-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross Platform Tinted Image

A simple custom control for tinting images in Xamarin Forms.

[This repository is no longer maintained]

Supported Platforms

The TintedImage control supports native renderer implementations for the following platforms:

  • iOS
  • Android
  • Universal Windows Platform

iPhone 6s Screenshot Nexus 6 Screenshot Windows 10 Mobile Screenshot

Installation

  • Available on NuGet: Plugin.CrossPlatformTintedImage
  • Install into your shared PCL project and Platform projects.
  • Make sure to initialize the renderer in your iOS, Android, and UWP projects as shown below:
Xamarin.Forms.Init();
TintedImageRenderer.Init();

Sample Usage

  • In Xaml:
<ContentPage 
    ...
    xmlns:controls="clr-namespace:Plugin.CrossPlatformTintedImage.Abstractions;assembly=Plugin.CrossPlatformTintedImage.Abstractions"
    ...>
    ...
    <controls:TintedImage TintColor="Blue" />
    ...
</ContentPage>
  • In Code:
var tintedImage = new TintedImage { TintColor = Color.Blue };

For more details, refer to the demo app.

Note

Tinting can be disabled by setting TintColor to Transparent. This will display the original image.

About

Xamarin Forms Tinted Image for iOS, Android & Universal Windows Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages