Display.isRowwise() - what is this??

I'm using Display.screenshot() to capture the screen. The reference mentions that my target bitmap must match the screen type, and then goes on to list Display.isColor(), Display.getNumColors(), and Display.isRowwise as methods to find out the screen's properties.

I want my app to be as compatible as possible with older blackberries so I'm taking steps to support different color amounts (Display.screenshot() exists since API 4.3, so there's no need to monochrome check with Display.isColor(): Blackberries with 4.3 and onwards have color screens, after all). However, I'm worried about Display.isRowwise since I have no idea what "Rowwise orientation" is.

Any light on the subject? I don't want a user to get my app to find that it crashes with an unexpected screen type.

Re: Display.isRowwise() - what is this??

okay...so I was a bit curious was this is and looked into it. Maybe this helps.

If you look at the JavaDoc of Bitmap, you find two types: ROWWISE_16BIT_COLOR and ROWWISE_MONOCHROME.

It explains a bit about and as far as I can tell, it has mainly to do with how the bitmap data is stored.

I would think that if you check for isRowwise() and if it is true, then set one of the two types. It both types actually go with color devices only. Therefore you will probably also have to check the getNumColors() to figure out if it is 16BIT or MONOCHROME.

I think you might still have to check for isColor() because from the types of Bitmap, it seems that even MONOCHROME is considered a color - well I guess it is a one shaded color.

----If this helped you, press the thumbs up button (on the far right - '+' thumb icon)If this post solved the issue, click "Accept as Solution"

---Spends time in #blackberrydev on freenode (IRC)----Three simple rules:1. Please use the search bar before making new posts.2. "Like" posts that you find helpful.3. If a solution has been found for your post, mark it as solved.--I code too much. Well, too bad.