Formula DPI

Hello world

I want to add focusable Images in my application and want the images to adapt to a specific part of all blackberry screens, I've heard of a DPI formula, someone knows something about this?

Thank you

My answer to that:

"Please correct me if I'm wrong with my formula:

long h = Display.getHorizontalResolution ();

long v = Display.getVerticalResolution ();

long HT = h v; PPM

double HVI = hv * 39.3700787 ;

The 'long h' and 'long v', give the same values and the response to this formula is 3.710443460782276E9.

Just for the settlement of clarification is the desnity of pixels on the screen.  Many people mix it with the size of the screen, they say their screen resolution is 320 * 240, of course, which is actually the size of the screen.

In your code, h and v are already resolutions - pixels in a meter.  Both are the same because screens of BB all have the same resolution both vertically and horizontally.  If you want to convert this to dpi (dots/pixels per inch), you would divide by 39.3700787.

Then

Double inchesInAMeter = 39.3700787;

HVI double = ((double) Display.getHorizontalResolution ()) / inchesInAMeter;

should give you what you want.

Tags: BlackBerry Developers

Similar Questions

  • Why my photos are taken with the iPad Pro only 72 dpi?

    So I publish my own books in which I print A3 color photos... I want to use some of the pictures I took with my iPad 9.7 Pro. For all that it is supposed to be a good camera I do not see why my photos show that only 72 dpi...?  I need at least 300 dpi at print, could get away with 250 + and climb later in Photoshop, but 72 is horrible. What can I do?

    View the dimensions in pixels of your image, not the CIO.

    DPI is just a mathematical way to express the resolution. When you say "I need 300 dpi" is only half of the formula.

    300 dpi at what number of inches?

    An image that is 3000 pixels on the long side (wide) could be expressed as being...

    10 "wide @300 dpi (= 3000 pixels)

    5 "wide @ 600 dpi (= 3000 pixels)

    41.67 "wide @72 dpi. (= 3000 pixels)

    Actual size of the image remain the same. By default, Photoshop to express everything at 72 dpi.

  • Numbers: The mobile cell formula

    This may work for you:

    E2 = if (value (D2) > 0, C2−D2, ' ')

    It's abbreviation dethrone select cell E2 and then type (or copy and paste it here) the formula:

    = IF (value (D2) > 0, C2−D2, ' ')

    Select cell E2, copy

    Select cells E2 at the end of column E, block

    F2 = SIERREUR (IF (AND (E2 = "", E1 > 0), C2 + CEILING (SUM($E$1:E1) ÷ (ROWS (D) −COUNTA (D)), 1), ' '), ' ')

    Select cell F2, copy

    Select cell F2 at the end of column F, dough

  • Need a formula which uses the VLOOKUP and HLOOKUP function to return a single value

    I'm creating a worksheet price with multiple values. In the table below if I select size 16 in blue the result must return 19.5

    Red Yellow Blue Green
    size
    10 5 6.25 7.5 8.75
    12 13 14.25 15.5 16.75
    14 15 16.25 17.5 18.75
    16 17 18.25 19.5 20.75
    20 19 20.25 21.5 22.75

    Hi Eric,.

    More large table is Table 1.

    Formula is C2 of table 2.

    C2: = INDEX (1::A1:E7, GAME table (Table a, 1::A, 0), GAME (B2, 1::1:1, 0),-l' surface index)

    Kind regards

    Barry

  • export of raw to jpg in 300 dpi

    Salve,

    Editando STO con su foto della mia canon raw file mac e con I would esportarli to jpg dpi di at least 300, como posso fare?

    Di default 72 dpi my devo stampare e export file in a large formato da a provider.

    Grazie

    1. you cannot export a RAW JPEG - you export the original unmodified as a RAW or you export the current version to JPEG

    2. digital photos have a DPI field but it is meaningless - DPI is the result of a problem of Mathematics (points divided by inches) not a framework and anything that the calculation is always determined the DPI

    LN

  • Use of formula number

    3.6.2 numbers

    Header 1 Header 2 Header 3 Header 4 Header 5
    07:00 x z There

    I need a fix.

    The header 1 is lasting. If in the header is 2 or 3 x the value in 1 header will be copied in heading 4. If x is not present in 2 or 3, the value of the header 1 will be copied in heading 5.

    Can someone help me with this?

    Thank you

    Hi onopilot,

    Here is one approach. First note the format for the duration which recognize numbers. You can get the display to indicate what you have but your data entry should be as above if you don't want to fight against the program.

    D2 = IF (OR(B2="x",C2="x"), A2,"" ")

    It copies the value in A2 if there is an 'x' in B2 or C2.

    E2 = IF (LEN (D2) 0, A2 ="," ")

    This will check to see if there are characters in D2 and if there is not, copy the value in A2.

    These two formulas can be filled down.

    Quinn

  • How to move cells containing formulas without absolute references and maintain cell references

    I know about the selection of the absolute references, etc., but sometimes I'd like to be able to copy a group of cells with formulas and paste elsewhere all retaining the original cell references. For example, several cells with a formula referring to 'A1' continue referring to 'A1' even when I copy the cells elsewhere.

    Is there a change of copy and paste (for example, command + option + C or something?) so that I can copy the same that in Excel, that does not change the cell references when you copy a formula elsewhere?

    Thank you!

    Hi jivejive,

    I am not in anyway you want with a group of cells. I did it with individual cells by copying the function since the Inspector formula and then paste in the Inspector in the new location.

    Quinn

  • Help formula: count the number of whites in a column "up to the...» »

    name string metric
    Matthew 5
    brand 1
    brand optimusPrime
    brand
    Luke 2
    Matthew jamesLikesSteak
    John 3
    Luke lukingGood
    Matthew
    Luke
    John johnnyPop
    John

    Hey guys - so I do business with a bit of a problem in number. I have a number table - the table above is a simplified representation of the corresponding parts of the table. The left column 'name' is a series of 12 names repeated and 0 missing values. The "string" middle column is a column that has a lot of missing values by a formula based on another column that is not relevant to this problem. Who is not missing is all strings. The problem I have is in the 'metric ': right column

    I am trying to create a dynamic formula which will result in the numbers and blanks, exactly as above. My goal is to create a formula that, for each line, account the number of whites in the column 'chain' until we reach an empty 'string' which occurs next to "namesake" as in the line of housing the formula - and if there is no such a situation, so that it is empty. For example, if the second row (including header row) bears the name of "Matthew". The next time that a white 'string' occurs next to the name "matthew" is tenth. The number of whites that occur between the second row, and the ninth is 5 (lines 2, 3, 5, 6 and 8). I manually coded a small part of the table to use something like this (which would be installed in cell C2 in this example):

    = IF (B2 = "", COUNTBLANK(B2:B9), "")

    This formula produces the correct number for the first row of data (5), but it does not dynamically fulfill what I'm trying to do this since I am currently having the formula to find the next blank 'chain' that occur next to "name" in the formula line.

    I hope that someone has encountered anything like this before. I tried to go through all the functions and numbers from formulas, but so far I have not found much success.

    Hi BaronDe,

    I need to ask, "why you try to do this? So what you want is possible it will be a complex solution. It may be much easier to get your information in a different way. Indicate these blanks?

    You should know that COUNTBLANK() will not count a cell with a formula, even if this formula resolves to «»

    Quinn

  • Formula works in a line, but the same formula (copied and pasted) work not in other rows.

    I have a formula which, if there is a number in the box, multiplied by a price, then sums the results in a final column. I copied it in 7 rows. He changed that required line numbers, the formulas that look all right, but nothing than to do the work of other 6, it seems to me unless I fill all the blank cells in row 0. Curiously, one that works is not that I typed the formula in the original line, and it has empty cells.

    Here's the formula, each column has a product, then the cell is multiplied by a number, this number being the cost of the product. If there is no product sold, the cell is empty, so it is 0.

    IFERROR ((B6×50) +(C6×30) +(D6×60) +(E6×40) +(F6×30) +(G6×25) +(H6×25) +(I6×20) + (6 × 20) + (K6 × 25) +(L6×20) +(M6×15) + (6 × 10) + +(O6×10) (P6), 0)

    Ideas?

    Thank you!

    Here's a way to do what you call:

    I guess constant multipliers are immutable, when used on different lines...

    In this example, the multipliers are stored on the first line (but can be anywhere you like).

    A2 = SUMPRODUCT (B$ 1: $ 1, B2:P2 P)

    It's shorthand dethrone select cell A2, and then type (or copy and paste it here) the formula:

    = SUMPRODUCT(B$1:P$1, B2:P2)

    Select cell A2, copy

    Select cells A2 at the end of the column, paste

    The constants are set up like this:

    Here is the table already set up (you can copy and paste here) then you can just add the formula:

    50

    30

    60

    40

    30

    25

    25

    20

    20

    25

    20

    15

    10

    10

    1

    381

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    1

    50

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    30

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    60

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    40

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    30

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    25

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    25

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    20

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    0

    20

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    0

    25

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    0

    20

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    0

    15

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    0

    10

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    0

    10

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    0

    1

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    0

    1

    50

    1

    60

    1

    30

    1

    20

    1

  • 300 dpi image back at 72 dpi in preview?

    I need to resize the images to apply to a show. Requirements for the site are 300 dpi. When I resize the image 72 dpi to 300 DPI always comes back to 72. I use an excerpt. How to prevent this?

    You start with an image of higher resolution than 300 dpi. What is the origin of the 72 dpi file?

  • Excel "Delete content" is also the removal of formulas

    I've duplicated a worksheet and you want to delete the content but not the formulas. I know going in Edition > erase > content is supposed to erase the data, but leaves intact forms; However, it is clearing my formulas as well. Any ideas, what could go wrong and how to fix it? : S

    (Second question would be best place to ask this question, as my selections of community seemed somewhat limited!)

    Clear content has always cleared all the "content", including the formulas in Excel.

    Therefore, select only the cells that have data (not formulas) and then clear the contents in these specific cells or columns instead.

  • Hello team... Formula of numbers of 'IF '... Help

    Hi all

    I'm a little embarrassed to ask, but what is the formula in number to ask for

    IF X = True and multiply the number Y of 0.2

    I tried a few variations, but failed to get the formula to paste

    Thanks in advance

    JD

    Hi jd,

    One-way, with boxes, to

    Formula in D3 (fill down)

    = IF(B2,C2×0.2,C2)

    Kind regards

    Ian.

  • IF = date formula

    Hi, I had this formula cannot be used in number but CAN Excel, Help!

    Column Casting date %
    1/a 23/08/16 = IF(Date casting >1,1,0)
    1/b 25/08/16 = IF

    Still new to this and I had missed the opportunity to edit the message, it is of the I need the spreadsheet formula.

    If anyone knows how to get Red B2 to get % of all columns is good. TQ

  • Strings, the formula = numeric values?

    is there a way of having a cell to display a string numbers, but when this cell is referenced in a formula it will be used as a numerical value? See screenshot.

    I want the storage capacity label.

    I want the strings displayed in column A to represent numeric values in column B.

    then "128 GB" = 0.13. or "128 GB" = B2. I need a cell to associate it with the value of the other.

    My goal is to make a column of pop-ups with storage capacities that can be used in a formula in another table.

    If you choose "128 GB" I want its value to be 0.13

    I prefer to use a table of choice like that.

    (1) create a table (as you have) that contains the list of text and the corresponding values

    I named the 'TaillePour Value' table

    In the table where you want to use, use the following formula:

    C2 = SIERREUR (IF (VLOOKUP (B2, TaillePour Value::A:B, 2, 0) = 0, ' ", VLOOKUP (B2, TaillePour Value::A:B, 2, 0))," ")

    It's shorthand dethrone select cell C2, then type (or copy and paste it here) the formula:

    = SIERREUR (IF (VLOOKUP (B2, TaillePour Value::A:B, 2, 0) = 0, ' ", VLOOKUP (B2, TaillePour Value::A:B, 2, 0))," ")

    Select cell C2, copy

    Select cells C2 at the end of the C column, paste (or as needed)

  • Insert the formula pop up menu

    Hello

    I have a pop up menu with five different choices in it. I also have a date next to each choice, basically I want to insert a formula into the pop-up menu to tell if it is beyond the date in cell A1 then change the pop-up menus to choose from one of the options automatically without having to click on it myself. Is this possible?

    Thanks in advance

    Rob

    Hi Rob,

    You ask what I would call dynamic or auto update of popup windows. Unfortunately, this is not something that can make numbers. Would it be possible to have a cell next to be updated according to the date and the choice of the popup. If you need help with that, please provide more details.

    Quinn

Maybe you are looking for

  • On macbook air SSD

    All Hi, the problem is that the information on the hard disk does not appear correctly, wrote that "programs" occupies more than 343 gigabytes, 228 available free all 249. How can it be a problem?

  • PC repair

    is it possible to fix the javascript expand collapse message id true on your pc

  • during initialization

    I have printer HP laser jet MFP M127 fw, running with Windows 7 Edition home premium. When the printer starts, it often to keep the initialization and stuck to the initialization and never return to the main screen until I have to turn off and on the

  • increase the size of the icons on the tookbars and the taskbars in Windows 7

    Help!   I asked about this before and I followed the instructions and I it has not resolved.  I want to increase the size of the icons on the tool bar and the taskbar.  Smitty sent a response making me refers to Sevenforums.  and I tried to follow, b

  • Can't play the SIMS 3, error: The Sims 3 has stopped working.

    Original title: problem NEED of HELP PLEASE OK so when I load my game is through the intro stuff but it wont load beyond the second screen then a pop up saying "the Sims 3 has stopped working" then it tells me that I haft to close the program I did e