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

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

 
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

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

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

Thank you Zmey!