<doc>
	<legacy_id></legacy_id>
	<name>systemPixelScale</name>
	<type>property</type>

	<syntax>
		<example>get the systemPixelScale</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Returns the default pixel scale of the system.</summary>

	<examples>
<example>set the pixelScale to the systemPixelScale -- Sets the pixelScale property to the device pixel scale</example>
	</examples>

	<history>
		<introduced version="6.5">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
		<global/>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
		<category>Objects &amp; Messages</category>
		<category>Windows &amp; Dialog Boxes</category>
		<concept>display</concept>
	</classification>

	<references>
		<command tag="iphoneUseDeviceResolution">iphoneUseDeviceResolution Command</command>
		<property tag="pixelScale">pixelScale Property</property>
	</references>

	<description>
	<overview>Use the <b>systemPixelScale</b> property to get the pixel scale of the operating system.</overview>

		<parameters>
		</parameters>

	<value>The <b>systemPixelScale</b> property returns the pixel scale of the system as a positive real number.</value>
	<comments>Modern mobile devices have screens of varying densities. For example, the iPad and iPad retina both have a logical screen size of 1024x768 pixels. However, the iPad retina has 2048x1536 device pixels. The intention of higher density is not to provide the developer with more screen real estate to work with, but rather to make text and other assets appear crisper.<p></p><p>LiveCode reports the <function tag="screenRect">screenRect</function> of both iPad and iPad retina in logical pixels (1024x768). When your app runs on the iPad Retina, LiveCode renders text, graphics and image assets according to the pixelScale.</p><p></p><p>The <b>systemPixelScale</b> property returns the default pixel scale of the operating system.</p><p></p><p>For example:</p><p>- iPad original returns 1</p><p>- iPad with retina screen returns 2</p><p></p><p><note> Currently the <b>systemPixelScale</b> returns the correct value for mobile devices, returning '1' on desktop platforms.</note></comments>
	</description>
</doc>