Sunday, January 5, 2014

Painted on the picture

I now want to spread a great background, can use a small picture stitching together one by one to form a backdrop?
Reply:
Open a large sheet of UIImageView ...
Then
through coordinates addSubview ......To go into a small map one .....
 UIImageView * Big = [[UIImageView alloc] initWithRect: rt]; 
[Big addSubview: small];
CGPoint pt = CGPointMake (0,0);
[Small setorgin: pt];
[Big addSubview: small2];
CGPoint pt2 = CGPointMake (10,0);
[Small2 setorgin: pt2];

Like
loop not write ....
Other code not written ....
Environment .....
company did notSo these I do not know right ....
Reply:
Thank you for your answer.

If so,
Need a lot of small UIImageVIew, in memory, the performance will be better than the direct loading of a large map? ?
Reply:
Not ....
It is recommended to use opengl .....
Please art composition or the big picture
Reply:
Do you mean to say that the picture with opengl form a large map?

In this case, compared with the direct use of large image, memory and no province, just a small point program for it.
Reply:
Picture quantity, then use opengl group efficiency will be better than UIImageView ....
Memory is not the province ....
Just use a small figure, usually has some special needs, for example, a game map
Zhang has a great lawn, lawn as long as a small figure, it is a combination of uppercase figure like ...
Another hurdle grass is relatively small, the same can be set up with a small figure ..
Reply:
Understand, thank you for your answer.

No comments:

Post a Comment