Welcome!

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

Reply
Contributor
Posts: 13
Registered: ‎05-02-2012
My Device: Playbook
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.

Developer
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.997 Dev OS, Z30 (STA100-5)-10.3.1.997 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

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.