1#![allow(deprecated)]slint::slint!{#[include_path=r#"/input/slint/tests/driver/driverlib/../../cases/examples"#]
2// Copyright © SixtyFPS GmbH <info@slint.dev>
3// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial
4
5export MainWindow := Window {
6 title: "Slint Image Scaling Example";
7 preferred-width: 800px;
8 preferred-height: 600px;
9
10 HorizontalLayout {
11 Image {
12 source: @image-url("../../../examples/printerdemo/ui/images/cat.jpg");
13 image-rendering: smooth;
14 }
15 Image {
16 source: @image-url("../../../examples/printerdemo/ui/images/cat.jpg");
17 image-rendering: pixelated;
18 }
19 }
20}
21}
22