You Are Here:

Community: Developer Discussion Boards

#1 Old Display's aspect ratio - 2002-06-17, 08:42

Join Date: Mar 2003
Posts: 1
sv2dgi
Offline
Registered User
I have made a simple java MIDlet, to draw an analog clock. The clock appeared circular in the 6310i emulator (PC VGA screen is aspect ratio 1:1) but appeared oval in the actual 6310i device. Is there any "official" way to retrieve aspect ratio, so as not to hard-code it inside my software?
Reply With Quote

#2 Old RE: Display's aspect ratio - 2002-06-17, 16:26

Join Date: Mar 2003
Posts: 71
AbU5e
Offline
Regular Contributor
no, the aspect ratio is not retreivable in j2me. (though either basic midp, or nokias extensions)

you would do best assuming the ratio is 1:1 - and live with the distorted shape.
Reply With Quote

#3 Old RE: Display's aspect ratio - 2002-06-18, 07:43

Join Date: Mar 2003
Posts: 39
bjajo780
Offline
Registered User
I tried to do the same thing and of course got the same result. After some measuring with a ruler I found out that my circle was exactly 10.0 mm high and 8.5 mm wide.

If you want it to be 10.0 mm wide you have to:

8.5 * x = 10

10
x = --
8.5

x = 1.17647... (which is the value you shall multiplay x with)

Maybe I was a little bit too educational now =)

/Bjarne
Reply With Quote

#4 Old RE: Display's aspect ratio - 2002-06-18, 07:45

Join Date: Mar 2003
Posts: 39
bjajo780
Offline
Registered User
oops. that didn't look too good but i think you understand =)

..and of course that value is what you should multiply your arc width with, x was not a very good choice of variable name!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia