Friday, December 13, 2013

UIImageView and UIImage

this is the case, I have here a picture of link, I need the picture show, but the picture size ratio with screen size ratio is not the same, I want to know someone a little solution enables image display when compared to normal yet. . . This is how I initialize the UIImageView to make him do the same picture aspect ratio. . .

tangled death of me. . . Will not
Reply:
1, the ratio is calculated, it is not on the short length cropped
2, calculate the ratio, it is not on the short length of the zoom
Reply:
That speed? From the thread?
Reply:
Less than 10 pictures, other than directly from the thread processing slow. I measured from 5 to 30 have been concluded ⋯ ⋯
Reply:
Still have to calculate the proportion ah? Do not automatically? ?
Reply:
references, 4th Floor yukiwang313 reply:
still have to calculate the proportion ah? Do not automatically? ?

Automatically on certain high efficiency it?

Reply:
Would know in advance what size ratio thing. . . . .
Reply:
I found the network initialization time program directly addresses image like dead. . . From the thread does not work?
Reply:
If the picture is a network address, then on a multi-threaded download. Then wait symbol is displayed.
To troubleshoot network speed problems.
Reply:
reference to the 8th floor ybh37 reply:
If the picture is the network address, in relation to a multi-threaded download. Then wait symbol is displayed.
To troubleshoot network speed problems.
there is no God Give me an example of a horse ah. . . . Neighborhoods
Reply:
Hello,
Initialized according to the size of the image view, image size can use UIImage, or UIImageView has a size property to get.
Reply:
cited landlord haitang59 reply:
this is the case, I have here a link to a picture, I need the picture show, but the picture with the screen size ratio size ratio is not the same, I want to know someone a little solution enables image display when compared to normal yet. . . This is how I initialize the UIImageView to make him do the same picture aspect ratio. . .

Tangled death of me. . . Not

1, if the time because the image is too large, then it and other than the big screen scaling
2, if when you want to initialize a UIImageView same picture size then press cxsjabcabc said the way to do

Reply:
Requirements are not too high, use contentMode set.
Depending on the parameters, you can automatically zoom or fill operation.
Reply:
You can refer to the way Three20 Photos displayed.
Reply:
reference to the 11th floor stackhero reply:
cited landlord haitang59 reply:
This is the case, I have here a link to a picture, I need the picture show, but the picture size ratio with screen size ratio is not the same, I want to know someone has solved a little program to make pictures show when compared to normal yet. . . This is how I initialize the UIImageView to make him do the same picture aspect ratio. . .

Tangled death of me. . . Not

1, if the time because the image is too large, then it and other than the big screen scaling
2, if when you want to initialize a chart with ......


Well, in addition, if you need to scale, you can refer to the source code
ccteam http://blog.csdn.net/cxsjabcabc/article/details/7185590
I hope to help the landlord.

No comments:

Post a Comment