ImageDensityProperty

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the density of <mImage>
Associationscom.livecode.canvas
Summary

The density of an image.

Parameters
NameTypeDescription
mImage

An expression which evaluates to an image.

Example
// Load an image from a file
variable tImage as Image
put image from file "images/logo.png" into tImage

// scale down image based on standard DPI of 72.
variable tScale as Number
put (72 / the density of tImage) into tScale
scale this canvas by [tScale, tScale]
draw tImage into rectangle [0,0,the width of tImage,the height of tImage] of this canvas
Description

The image density in DPI (dots per inch)

Tagscanvas