On Tue, Jun 12, 2018 at 2:01 AM, Tiemo Hollmann TB via use-livecode < use-livecode@lists.runrev.com> wrote:
> > I thought the dpi only reflects at print, because any screen has it's fixed > pixels. I think an image 800x600 with 144 dpi looks identical on any > screen, > as an image 800x600 with 72 dpi because in both cases 800x600 screen pixels > are being used and there is nothing between the pixels. Or don't I see > anything here? > Changing the DPI setting in the image may affect display in image viewing applications. If you were to change the DDPI setting of an 800x600 image from 72 to 144 then the image would be displayed as a 400x300 image in an application like Preview on macOS or Photoshop. LiveCode will display an image using the natural dimensions by default. That means an image with 800x600 pixels will be displayed as an 800x600 image. As a developer you could get the `metadata` of an image and check the `density` key in the resulting array to determine if you should resize the image based on the density setting. Depending on your application you may face a new dilemma, however. You have to decide what the base DPI is for the image. An image with 144 DPI could be a 2x image if created on macOS (base of 72 DPI) or a 1.5x image if created on Windows (base of 96 DPI). So that image may need to be displayed at 400x300 or 533x400. -- Trevor DeVore ScreenSteps www.screensteps.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode