Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 15.4 ('Xojo in Germany')
Instant purchase and download via GumRoad!

FEATURE

Shrink Your Apps!

Loose that extra app-fluff

Issue: 15.4 (July/August 2017)
Author: Mattias Sandstrom
Author Bio: >Mattias is the programming CEO of Tangix Design & Development, a Sweden-based company developing software solutions for the web and for the Windows platform
Article Description: ption>No description avai
Article Length (in bytes): 8,556
Starting Page Number: um
Article Number: 15403
Related Web Link(s):

(http://www.flaticon.com/
rdf="http
http://www.telerik.com/fiddler

Excerpt of article text...

>Just like it may be a good idea to keep an eye on your waist size, your application may all of a sudden need to be put on a diet.

In this article, I focus on desktop applications. If you are developing web-applications or iOS applications, the techniques described here are even more important to keep your application lean and responsive.

Gaining those extra pounds

After a successful migration of one project to HiDPI, I saw the distribution package was noticeably larger than the previous version. "For sure," I thought. "Enabling HiDPI will maybe increase the framework resources required, etc." and I didn't think much more about it.

Sometime later, I read an article by Rafael Rivera (https://www.thurrott.com/windows/109962/windows-bloated-thanks-adobes-extensible-metadata-platform) on the web about the extra bloat inside of Windows 10 from Adobe metadata due to image resources created in Adobe Photoshop and something said "click" in my brain.

I remember how I created the image resources required for the HiDPI in my application, using Adobe Photoshop. I found a nice icon-set (http://www.flaticon.com/) and decided to use it. The icons come in many sizes, but the maximum is 128x128 pixels. For smaller icons, it is possible to download different sizes and rename them to get the required sizes for HiDPI support. In a couple of places, we need a 128x128 size, so I thus need to scale up this icon. Using the tools at hand, I scaled the 128x128 icon to 2x and 3x files using Photoshop's "Export As" function, spitting out resized and properly named files. The files will, of course, become larger.

...End of Excerpt. Please purchase the magazine to read the full article.