Relationship between Pixels and Points in blackberry

I need to know the relationship between points, pixels, and how it affects different BB below 7.0 and version devices.

I have a project that analyzes the values of width and height of the items to display in the points and I converted to pixels and shown on different devices using the following formula.

fldwidth  = fldwidth*Display.getWidth()/100
fldheight = fldheight*Display.getHeight()/100

where initially the values of fldwidth and fldheight has pt in decimal values.

I'm wrong

Suppose you want a size of 57 points. The calculation is:

int pixelSizeReqd = 57 * Display.getHorizontalResolution() / pointsInOneMetre;

You should not replace the Display.getHorizontalResolution () by a character - it will be different on different devices and there is no need for you to try to set this value for yourself.

How many points is there in 1 meter? You can do the math, convert a 1/72nd of an inch in meters and then divide by 1 meter. Or you can type in Google "how many points in a counter" and get the answer 2,834.64567. We don't need precision, so we simply use arithmetic on integers to give us this:

int pixelSizeReqd = 57 * Display.getHorizontalResolution() / 2834;

Tags: BlackBerry Developers

Similar Questions

  • Relationship between db_flashback_retention_target and fast_recovery_area

    Hi all

    I was doing a test on Flashback Database on my Oracle 11 g 2 and I would like to seek clarification on the relationship between db_flashback_retention_target and fast_recovery_area. Here is my current settings:


    SQL > show parameter db_flashback_retention

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    db_flashback_retention_target integer 60


    SQL > show parameter recovery_file_dest

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    db_recovery_file_dest string L:\app\amosleeyp\fast_recovery
    _area
    whole large db_recovery_file_dest_size 20G


    That is the question. I know that the db_flashback_retention_target parameter specifies the upper limit (in minutes) to how far back in time, the database can be flashed to the rear. I did a test and this is the sequence of events.

    REMOVE FROM SCOTT. EMP WHERE ename = 'KING '. -* 12:13
    FLASHBACK DATABASE IN TIME = ' TO_DATE ('2013-03-25 12:12 ',' YYYY-MM-DD HH24:MI:SS') "; -* 13:30
    Select count (*) Scott. EMP where ename = 'KING '. -* 13:31

    COUNT (*)
    ----------
    1

    This simple test, I have the database of flashback to more than 60 minutes there despite my window of retention being set at 60 minutes. That's the reason that I have a huge 20 G db_recovery_file_dest_size? So I can't go back in time for more than 60 minutes? Thanks for sharing.

    Hello

    So you mean that the target of retention may be about 59,60, 61minutes or more depending on the space of fast_recovery_area? So it actually fluctuates? ~

    No, it does not fluctuate. fast_recovery_area is just a storage area for versatile use for backup, backup, archived redo logs, and flashback logs etc, so do not confuse with retention of flashback.
    retention of flashback time is time that Oracle will always ensure you the flashback database. If set to 60 minutes, then you will certainly be able to flashback your database at least 60 minutes.
    If your fast recovery area is free, Oracle will not remove the flashback logs (and you might be able to flashback to even several days if flashback logs have not been removed from the quick recovery area). It removes only the flashback logs if fast recovery area a little space left in it.

    Only when I put guaranteed restore points, then it will store always on 60 minutes?

    See below for this concept

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/flashdb.htm#autoId8

    Salman

  • The relationship between workstation and domain fails approval

    In our environment, we have Windows Server 2008 with Windows 7 machines. Lately some Windows 7 machines have received the error that does not have a trust relationship between workstation and domain and users are unable to connect to the machine. We know a fix by removing the machine in the field and join again the machine. I am currently trying to find the cause of this problem, your help will be appreciated.

    Thank you for visiting the Microsoft answers community.

    The question you have posted is linked to a domain environment and Windows Server and would be best suited in MS TechNetWindows Server Forum orTechnet Windows 7 Security Forum. Please visit this link to find a community that will provide the support you want. Thank you!

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Relationship between users and roles OID

    Hi team,

    We have created users and roles in the IOM and the synchronization of these OID values. Users and roles create under different containers in OID.

    We have the relationship between users and roles of the IOM. How the relationship between users and roles are maintained in the OID.

    Could you please help me on this. Thanks in advance.

    Thank you and best regards,

    Narasimha Rao

    For 11 GR 2 IOM, roles map to the OID groups if there is a ldap synchronization (between IOM and the OID). I know that it works for IOM 11.1.2.2 and OID 11.1.1.7 (also 11.1.1.6 OID as well).

    Between the IOM and the OID ldap synchronization will automatically synchronize users of IOM in OID. So if you add a user to the IOM it will come in OID under the users container.  You create the role of IOM, you should see a group created under the OID. Similarly, if you add users to the IOM for a role of IOM, it will map/synchronization user in OID OID group.

    (Hope this helps, please indicate your answer as answered if it solved your query)

  • Relationship between objects and objects of adapter HP vCenter

    Hi all

    I'm looking for a package of vROPs management that can provide the visibility of relationships between vcenter and hp oneview adapter. I want to display for example which cluster or vm is in what case hp.

    Thank you in advance. I really apreciate your help.

    Souad:

    It doesn't look like your question relates to the mapping of relationships within the vROps of the HP Server layer and the layers of VMware ESX.

    If this you're looking for, Medora blue MP vROps for HP servers provides the mapping of the relationship of out-of-the-box.

    See attached screenshot for an example.

  • Questions about a relationship between InDesign and S1000D specification

    Hi I have a few questions about a relationship between InDesign and S1000D specification. First, InDesign does not meet an S1000D standard? If so, what questions are supported in InDesign as "S1000D issue 4.1'?." In addition, inflicts InDesign interconnected with CSDB through any creative or other module. I'm looking forward to get useful answers and thank you in advance.

    I agree with the screen name of Test in this regard. Technical publications represent only a small percentage of the market of InDesign. And it is likely that the authors of these publications InDesign may not have heard of the S1000D specification.

  • Relationship between Per_all_people_f and fnd_user

    Hi frntz,
    Can I know the query of the relationship between Per_all_people_f and fnd_user.

    Thanks in advance

    What that has to do with SQL and PL/SQL?

    Please post to the right forum, which I think is one of the applications oracle ones.

  • What are the relationship between JPA and Hibernate, JPA and TopLink?

    What are the relationship between JPA and Hibernate, JPA and TopLink?
    Can APP instead of Hibernate and TopLink?

    The Java Persistence API (JPA) is the persistence of mapping relational object
    standard for Java. Hibernate and TopLink provide a Java Open source object-relational mapping framework.
    They provide an implementation for the Java Persistence API. In my opinion, Hibernate and TopLink support JPA
    and they can also be seen as complementary to APP.

    We will wait to see the opinions of the other person.

  • Relationship between PER_POS_STRUCTURE_ELEMENTS and PER_POSITION_STRUCTURES?

    Hello

    What is the relationship between PER_POS_STRUCTURE_ELEMENTS fsdp and PER_POSITION_STRUCTURES pps?

    It is ppse.pos_structure_version_id = pps.position_structure_id

    If so, it looks like a little incoherent.

    As I have a little not available ppse.pos_structure_version_id in PER_POSITION_STRUCTURES and vice versa.

    I am unable to find a position in hierarchy, position_structure_id in PER_POS_STRUCTURE_ELEMENTS?

    What could be the reason?

    Thanks in advance,

    Tania

    Hello

    You are missing a per_pos_structure_versions table. If you have multiple hierarchies defined, each of which can have several versions (with a start and end date). Then for each version, you have the parent/child relationship in per_pos_structure_elements.

  • architecture of the relationship between R and Oracl

    If I know, this will be the great success for Oracle. architecture of connection between oracle and R.
    R customer send it is SQL for Oracle server and Oracle perform the function of ore itself and send the results to R on the client. as ore.lm
    for other R packages as SNA, IGraph, Data mining in R code sending R Oracle to on server R and R on server run and send to Oracle. Oracle, send them to r. He connect through a single port and is secure. IS TRUE MY WRITING?

    I have another question. If we R 2 or more on the server, how oracle identifies correct R? for example, I install R2.13 and R2.15 on the server.
    tanks for your attention

    Published by: Nasiri Mahdi on 24 February 2013 22:42

    Nguyen,

    Architecture of ore, take a look at [url http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/ore-trng1-gettingstarted-1501628.pdf] the first presentation in our learning of the R series.

    For your second question. ORE will use R who we found during installation. The installer will display the value of R_HOME before it proceeds with the installation. In general 1.3 ore we recommend R 2.15.1 and ORE 1.1 - R 2.13.1.

    Denis

  • Relationship between AP_INVOICE_PAYMENTS_ALL and AP_PAYMENT_SCHEDULES_ALL

    Guys,

    I am new to Oracle Financials, can you please let me know if my understanding of the link between AP_INVOICE_PAYMENTS_ALL and AP_PAYMENT_SCHEDULES_ALL is correct or not?

    SELECT ai.invoice_id
    ai.invoice_num
    aps.due_date
    aip.accounting_date
    aip.amount, aip.payment_num
    AI ap_invoices_all
    ap_invoice_payments_all Ltd
    ap_payment_schedules_all aps

    WHERE aps.invoice_id = ai.invoice_id
    AND aip.invoice_id = aps.invoice_id
    AND aip.payment_num = aps.payment_num

    Please look at seeded views AP_DOCUMENTS_PAYABLE

    FROM
    ...
    ap_invoices_all ai,
            ap_invoice_payments_all aip,
            ap_payment_schedules_all aps,
    ...
    WHERE
    ...
    AND aip.invoice_id = ai.invoice_id
    ...
    AND ai.invoice_id = aps.invoice_id
          AND aps.payment_num = aip.payment_num
    ...
    

    your a little different from code

    AND aip.invoice_id = aps.invoice_id
    

    but it's ok

    >
    AND aip.payment_num = aps.payment_num

    Is this correct?
    >
    Yes

  • Relationship between ContentService and rights management

    Hi all

    I need know if have some relationship of content and rights management services.

    All files stored on my content Service are PDFS with a policy applied.

    So, I need a list of files (store on Content Service) that a user is allowed to access.

    If a web service do this for me, its great!

    Thank you!

    Rodrigo

    Hey Rodrigo,.

    I don't think it's as simple as calling a webservice. At least, I have not seen this kind of functionality in LiveCycle.

    What you could do is to build your own Web service. first list all ContentServices content:

    http://help.Adobe.com/en_US/enterpriseplatform/10.0/programLC/help/index.htm?content=00136 3. HTML

    and then make sure that the documents in PDF format:

    http://help.Adobe.com/en_US/LiveCycle/9.0/programLC/help/index.htm?content=000357.html#154 9157

    It will be useful.

    Diego

  • digital output: relationship between input and output values

    Hi, could someone tell me if you are using digital lines material OR daqmx (SMU 6358, if it is dependent on the device), what is the value of weight of the inputs that will change the output of 0s to 1s?

    Suppose, I write a table of 10 numbers from 0 to 9, which will output look the same?

    Thank you.

    This is of specific devices, but you will see a pattern the same values across many devices. Of the datasheet for your SMU:

    • Continuous positive threshold: 2.2V
    • Line negative: 0.8V

    Yes 0 - 9V, depends on which direction you're going. It is a grey between 0.8V and 2.2V area because the value will not switch until it reaches the threshold value.

    From False to True, you need read a value of 2, 2V. Changes from true to False, you will need to read a value less than 0.8V

    This image does a good job of this representative. See the red line (positive course) and green-(négatif cours).

    Your title says "Exit" and with the intervention. The above information concerning the digital inputs. The 0V or 5V output feature.

  • What is the relationship between gl_aloc_inp and gmf_xla_extract_headers?

    Hi experts,

    In the configuration of ALS, I want to use a custom source to get an account based in the code to a form of cost Allocation Maintenance award, but I can't determine the link between transaction_id (gmf_xla_extract_headers) and which column from table source.

    Please help me or give me a hint. Thank you very much.

    Best regards

    Cong

    Resolved in

    Pre-processor accounting OPM (Doc ID 1353054.1) debugging scripts

  • Relationship between WFTASK and CUBE_INSTANCE

    Hi experts,

    I am trying to create an MDX query for goal based on the tables WFTASK and CUBE_INSTANCE of the report. I use under query to retrieve the data.

    Select * CUBE_INSTANCE CI, WFTASK WF where CI. CIKEY = WF. INSTANCEID

    However, this query filter some lines. What is the columns of right relationship should I use?

    Kind regards

    Vikrant Korde.

    Hey Vikrant,

    Please use under reference query to retrieve the correct data: -.

    <-->

    SELECT (CASE WHEN c.STATE = 1 THEN 'OPEN AND running"

    WHEN c.STATE = 2 THEN 'OPEN AND SUSPENDED'

    WHEN c.STATE = 3, THEN 'OPEN AND FAULTY. "

    WHEN c.STATE = 4 THEN "CLOSED AND WAITING."

    WHEN c.STATE = 5 THEN "CLOSED AND COMPLΘTΘ"

    WHEN c.STATE = 6 THEN "CLOSED AND FAUTED"

    WHEN c.STATE = 7 THEN "CLOSED AND CANCELLED"

    WHEN c.STATE = 8 THEN "CLOSED AND ABANDONED"

    WHEN c.STATE = 9 THEN 'CLOSED AND STALE'

    WHEN c.STATE = 10 THEN "UNRECOVERABLE"

    OF ANOTHER C.STATE | ''

    The FINAL STATE) AS, w.approvers, count (*) AS NUM_OF_INSTANCES

    OF CUBE_INSTANCE C, WFTASK W

    WHERE c.cmpst_id = w.compositeinstanceid

    - and c.CREATION_DATE > = TO_TIMESTAMP('2014-11-17','YYYY-MM-DD')

    - AND c.CREATION_DATE<=>

    - and c.Composite_name = 'InvoiceProcessing'

    Group of w.approvers, C.STATE;

    <-->

    I replaced the condition "where CI.» CIKEY = WF. INSTANCEID'with 'WHERE the c.cmpst_id = w.compositeinstanceid'.

    Concerning

    Vipul Verma

Maybe you are looking for

  • El Capitan server has been updated to allow multiple users to GUI?

    Good afternoon We currently use a mini Server mac to run our software controller of AFN and we want it to be so that several people can manage the server of the Mini on their own connections. Is it possible that several people to connect with their o

  • N5P48UA #ABA: error creating recovery media

    I started my creation of recovery disks and did not have the correct DVD.  I stopped the process without throwing step of engraving and close the application. Now, I have the correct DVD and the custom of system I would all disks. None of the recover

  • How to increase dedicated on Satellite L870-136 graphics memory?

    I am trying to increase dedicated graphics memory allocation, and I read that I can do this if the BIOS, but I have absolutely no idea how access. Any help would be appreciated.Thank you

  • permanently

    In the attached file, the Fast Fourier Transform, distribution and probability density distribution is drawn at the end of the loop for. How to draw the same graphics as the because the loop is running?  (I have LabView version 8.0) Thank you verymuc

  • Smartphones blackBerry how to remove calendar items

    I have a storm and love it, but have hit a snag with it.  I get 2 of each item in the calendar, and a purple line next to her and with a green line.  I talked to Verizon and they could not help me then, here I am.  I'm syncing with Outlook 2007.  How