photo width and height
Jun 7, 2015 6:58:14 GMT -5
Post by kokenge on Jun 7, 2015 6:58:14 GMT -5
When I store a photo link I get the width and height using loadgraphic.
I store it because loadgraphis is slow.
I use the width and height in order to show photos in a table. To make sure the tall thing photos, and the short fat photos take the same space in a cell I divide the (height * .75) by the width. I use the percentage as the width of the cell.
The only problem is that they could change the photo size after I store it.
So my question; Is there a faster way to get the width and height of a photo so I can get width and height dynamically instead of storing it up front.
Thanks for the help...
I store it because loadgraphis is slow.
I use the width and height in order to show photos in a table. To make sure the tall thing photos, and the short fat photos take the same space in a cell I divide the (height * .75) by the width. I use the percentage as the width of the cell.
The only problem is that they could change the photo size after I store it.
So my question; Is there a faster way to get the width and height of a photo so I can get width and height dynamically instead of storing it up front.
Thanks for the help...