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
Post a Comment