image - objective-c scale background on one axis -


hi have background pattern image (vertical lines) like:

llllllllllllllllllllllllll

the line pattern image:

bgimg.backgroundcolor = [uicolor colorwithpatternimage:[uiimage imagenamed:@"pd_line2.png"]]; 

my problem: reframe bgimg - should repeat line on x-axis: stretch line on y-axis.

next problem: pattern image uses alpha channel.

is possible? can please give me hint?

thanks in advance

well can scale image in various ways via gccontext functions, perhaps easier way making view transparent (clearcolor background) , adding uiimageview (with pd_line2.png in it) underneath. uiimageview's built-in stretching options may enough achieve need without coding.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -