Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 13
Registered: ‎05-02-2012
My Device: Playbook
My Carrier: Rogers
Accepted Solution

Resizing a Cascades Image

What is the suggested way to resize a cascades Image object? I'm trying to display .jpg captured by the camera app on the BB10 Alpha device, but when I try to display them onscreen I get : 

ERR: Image <path to image> texture size 1836x3264 exceeds GL implementation max 2048


In the C++ code, where I'm loading the image, I have a cascades Image instance, but I can't seem to find any way to access the pixels themselves, or any helper functions to reduce the resolution.


Any help would be greatly appriciated.

Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: Resizing a Cascades Image

Have you seen this: http://supportforums.blackberry.com/t5/Native-Development/ImageView-cascades-noob-question/m-p/17048...

---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.