Switch branches/tags
Nothing to show
Find file History

README.md

ImageCropView for Xamarin.Forms PayPal donate button

Image cropper for Xamarin.Forms.

NuGet: https://www.nuget.org/packages/DLToolkit.Forms.Controls.ImageCropView/

Video:

ImageCropView

Features:

  • Pan & pinch gestures
  • Custom border view support
  • FFImageLoading transformations support (like CircleTransformation, etc)
  • All Xamarin.Forms platforms supported

Important

  • It relies on FFImageLoading, so be sure to configure it properly
  • Add nuget to all projects (shared & platform specific)
  • CachedImageRenderer.Init() in you platform specific project.
  • var ignore = typeof(CropTransformation) in you platform specific project if you have linking issues in release builds.
  • More here: https://github.com/luberda-molinet/FFImageLoading/wiki

Simple Example:

Sample

<imgcrop:ImageCropView HeightRequest="300" WidthRequest="300" x:Name="cropView"
    Source="http://photos2.insidercdn.com/iphone4scamera-111004-full.JPG">
    <imgcrop:ImageCropView.PreviewTransformations>
        <fftransformations:CircleTransformation />
    </imgcrop:ImageCropView.PreviewTransformations>
</imgcrop:ImageCropView>
var result = await cropView.GetImageAsJpegAsync(quality=90, maxWidth=600);

For other examples see sample app: ImageCropView Examples (TIP: Clone repo, open the solution, build it and run sample app.)

FAQ

TODO