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: 24
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC

Can i get the sourceImage's original size of ImageView?

 
Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Can i get the sourceImage's original size of ImageView?

That's not possible. As a workaround load the image into QImage:

 

 

QImage img;
img.load(path);
img.width(), img.height()

 


Andrey Fidrya, @zmeyc on twitter
Contributor
Posts: 24
Registered: ‎12-02-2012
My Device: BB10
My Carrier: CMCC

Re: Can i get the sourceImage's original size of ImageView?

Thank you Zmey!