I’m programming on objective-c. I have an image a line (see below) (1 x 30) pixels.

How can I get a UIImage (50 x 30) (see below) from this line?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create a CGBitmapContext with size of 50 * 30 than you can just draw that image on the context by using
CGContextDrawImage.After that use
CGBitmapContextCreateImageand[UIImage imageWithCGImage:]to create the UIImage