Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Behavior of reference pixel methods on Series 40 3rd Edition devices (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Nokia 6111, Nokia 6125, Nokia 6131, Nokia 6136, Nokia 6151, Nokia 6233, Nokia 6234, Nokia 6265, Nokia 6270, Nokia 6280, Nokia 7370, Nokia 5200, Nokia 6085, Nokia 6086
Created: User:Technical writer 1 (21 Sep 2006)
Last edited: hamishwillee (13 Aug 2013)


The methods defineReferencePixel() and setRefPixelPosition() do not position the Sprite correctly.


The defineReferencePixel() and setRefPixelPosition() methods are used to position and transform the Sprite relative to a reference pixel. Initially the reference pixel is located in the upper left corner of the frame.

The implementation on the above-mentioned devices does not operate correctly, which causes the Sprite to be placed in an incorrect location on the screen.


Detect the phone model with SystemProperty("microedition.platform") and if the phone model matches one of the models above, use your own Sprite positioning function (by adding the refPixel coordinates to the Sprite coordinates).

This page was last modified on 13 August 2013, at 07:55.
66 page views in the last 30 days.