Ivor Horton
Ivor Horton

Reputation: 91

How to quickly create difference sizes of images for a Xamarin Forms project?

I just started learning Xamarin Forms. I noticed in some open source projects there are images named like logo.png, [email protected] and [email protected]. Normally how does these images were created?

Upvotes: 1

Views: 93

Answers (1)

hvaughan3
hvaughan3

Reputation: 11105

Checkout Resizetizer NT which will size icons automatically for you.

  1. Install the NuGet
  2. Add your images (PNG or SVG) to your shared project as type SharedImage
  3. Set a base size within your shared project's csproj file for each image (see below)
    <ItemGroup>
        <SharedImage Include="xamagon.svg" BaseSize="60,60" />
    </ItemGroup>

Checkout the link for more detailed steps.

Upvotes: 3

Related Questions