Skip to content

Commit

Permalink
Resize images. (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch authored Jan 9, 2024
1 parent 9737a04 commit 4f26109
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 8.0/SkiaSharp/MandelbrotAnimation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ urlFragment: skiasharpmaui-mandelbrotanimation

This sample demonstrates the use of SkiaSharp bitmap animations in a .NET Multi-platform App UI (.NET MAUI) app. Running the sample requires some patience because it first needs to create up to 50 bitmaps of various zoom levels of the famous Mandelbrot Set. After that's finished, however, the program animates those bitmaps to simulate a continuous zoom.

![Mandelbrot Animation app screenshot](Screenshots/MandelbrotAnimation.png "Mandelbrot Animation app screenshot")

As the sample is creating the 50 bitmaps, it stores them in application local storage as PNG files. This allows the sample to access those PNG files the next time that you run the program, so you don't have to wait for them to be created. However, these 50 bitmaps occupy over 20 megabytes of storage on your device.

The *MainPage.xaml.cs* file begins with several constants that you can change:
Expand All @@ -31,6 +33,4 @@ When you first run the program, the `Label` at the top of the program shows whic
> [!NOTE]
> On some devices, the animation runs smoother if the sample is not being run under control of Visual Studio's debugger.
![Mandelbrot Animation app screenshot](Screenshots/MandelbrotAnimation.png "Mandelbrot Animation app screenshot")

[!INCLUDE [Install SkiaSharp](../includes/install-skiasharp.md)]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions 8.0/SkiaSharp/PhotoPuzzle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ urlFragment: skiasharpmaui-photopuzzle

This sample demonstrates the use of SkiaSharp in a .NET Multi-platform App UI (.NET MAUI) app. It's a variation of the classic 15 puzzle. On the early Mac, the 15 puzzle was called PUZZLE. In early Windows, it was the only sample for Microsoft Pascal for Windows 1.0, where it was called MUZZLE (for "Microsoft Puzzle"). This is the .NET MAUI version.

After pressing the **Randomize** button, just tap a tile to move it into an empty position. You can *tap* any tile in the row or column of the empty position to move one, two, or three tiles at once. Use the numbers in the lower-right corner of each tile as a guide.

![Photo Puzzle app screenshot](Screenshots/PhotoPuzzle-randomized.png "Photo Puzzle app screenshot")

After pressing the **Randomize** button, just tap a tile to move it into an empty position. You can *tap* any tile in the row or column of the empty position to move one, two, or three tiles at once. Use the numbers in the lower-right corner of each tile as a guide.

[!INCLUDE [Install SkiaSharp](../includes/install-skiasharp.md)]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4f26109

Please sign in to comment.