Image Scaling in .NET MAUI

January 27, 2023
Image Scaling in .NET MAUI
When use an Image Control... 🧐 Have you ever been confused between the different values ​​of the Aspect property? You are in the right place😎 , in this article you will learn the difference of each one! Let's start! Exploring the Aspect Property The Image control has an Aspect property  which allow us to indicate how an image will fit into the display area (scaling). This property offers different values ​​which allows us to play with the visualization. Let’s look at each one of them: ➖ AspectFit: Allow the entire image to fit in the display area (If necessary letterboxes the image), it takes care of adding spaces at the top and bottom or on the sides (depending on the dimensions of the image).  ➖ AspectFill: Clips the image to fill the display area without altering the aspect ratio. ➖ Fill: It's responsible for stretching the image to completely fill the display area. ⚠ This stretching can distort the image. ➖ Center: It's responsible for centralizing the image in the display area without altering the aspect ratio.   And done!!  From now on, you are ready to play with the Image Aspect property in .NET MAUI I hope you like it! 💚💕

Hot Vacancies

.NET Developer

American startup, .NET

A developer is needed for an American startup that manages the operation and maintenance of residential complexes. This is a new project from scratch with a temporary integration of the old system (Web Forms, no code access).

.NET Backend Developer

Field Complete, .NET

Field Complete is a team of passionate, young & fun-loving professionals looking to change the uneffective way that Servicing Industry works on US markets. Field Complete is growing really fast. We are looking for a Back End Developer to build a top-level modern API, ready for high load. Strong expertise with:

Senior Xamarin Developer

DraftKings, Mobile

You will join a mobile team which is working on two very exciting projects, Sportsbook and Casino. The apps are used by users in the US, where we are working on the regulated markets. We are releasing apps every two weeks. Our apps are generating almost 75% of the company revenue and the user base is growing daily. Technical stack on the project: Xamarin.Forms, MVVM with DI, NewRelic, Azure + App Center etc. Switching to .Net MAUI in the nearest 2-3 months.

Senior .NET Engineer

DraftKings, .NET

You will be working in a large US-oriented company that puts as a priority: security, performance, and stability. The candidate will work on pushing a huge number of changes (several thousand per sec) to several thousand clients in a near real-time manner.

Middle strong .NET developer

SoftServe, .NET

Our customer is an American company that develops software for businesses to help manage their networks, systems, and information technology infrastructure. The company provides purpose-built products for IT professionals, MSPs, and DevOps pros.