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
Developer
smiley
Posts: 1,497
Registered: ‎07-14-2008
My Device: Z10

Re: How to write text on image


slashkyle wrote:

It would be a very useful feature to have but the label method works just not nearly as well


You can't put a label in a image and the save it as jpg or png.  The whole point of drawtext on the image is so that image can be saved to a file.

 

Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10

Re: How to write text on image

[ Edited ]

in a roundabout way its possible. The Qpainter method would be awesome, however since BB doesn't want to give it to us I used the tools avaliable to do the best i could with what i had.

 

And it's not too shabby :smileywink: although with Qpainter I do agree that it could be much better

 

Developer
hrbuckley
Posts: 38
Registered: ‎10-13-2010
My Device: LE Z10

Re: How to write text on image

Can you save and share the image being viewed with the text superimposed on it? If not then it is not a solution to the issue I have. I have also used the Label overlay method in qute a few places in software I've writen, first in HelloGPS. But now I am producing signal strenght maps that I want to annotate and save.

Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10

Re: How to write text on image

Allrighty I'll spill the beans :smileywink:

 

Just take a screenshot with the text then you can save, share etc

 

Downsides, the image is only the resolution of the screen

Upside, it's the only method availiable at the moment (and it works)

 

This sample demonstrates how to take a screenshot using 10.0 api's & no permissions

https://github.com/slashkyle/Cascades-Samples/tree/master/CaptureThis

Developer
hrbuckley
Posts: 38
Registered: ‎10-13-2010
My Device: LE Z10

Re: How to write text on image

Thought of that, the problem is the image is limited to the resolution of the screen. Not much point for what I'm doing.

Developer
slashkyle
Posts: 820
Registered: ‎10-16-2012
My Device: Red Z10

Re: How to write text on image

maybe you'll have better luck getting support incorporated after the craziness of whatevers happeing in november settles down

 

http://crackberry.com/ripping-band-aid-blackberry-board-allegedly-pushing-sell-company-november