uiimage

Show image from documents folder

I retrieve an image I have saved at the documents directory like this: //set background image NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder NSString *imagePath = [documentsDirectory stringByAppendingPathCo...

Stretchable image stretching part wider than 1px

I would like to create a UIButton which uses a stretchable image as Background image such as that I can easily resize the button for different labels etc. So I created the following code which works fine: UIImage *bgImage = [[UIImage imageNamed:@"Button-Template.png"]stretchableImageWithLeftCapWidth:2 topCapHeight:2]; UIButton *loginBu...

Problem rotating UIImage

My code below, anyone know what is happening? Sorry about the incomplete information, the image just desapear! - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *imCaptured = [info valueForKey:@"UIImagePickerControllerOriginalImage"]; CGImageRef cgirCro...

AFOpenFlow touchevent Image

Hello users, does anybody know a solution that i could implement at this code, that the pictures could be touched and an event will be started? - (void)viewDidLoad { [super viewDidLoad]; // loading images into the queue loadImagesOperationQueue = [[NSOperationQueue alloc] init]; NSString *imageName; for (int i=0;...

iPhone: Image mask with text/image running through mask

This question is hard to explain, so I will try my best. I know that you can create a mask by just building a .png with a transparent window, then put whatever I want inside that so it shows through. My question is, can I somehow mask an area? Say I have a background image with a second "mask" image over it. I want to marque some tex...

How to scale up an UIImage without smoothening anything?

I want to scale up an UIImage in such a way, that the user can see the pixels in the UIImage very sharp. When I put that to an UIImageView and scale the transform matrix up, the UIImage appears antialiased and smoothed. Is there a way to render in a bigger bitmap context by simply repeating every row and every column to get bigger pixel...

clipping an image objective-c

I created a Grid of Images. The frames of those images are squares-shaped(CGRects). Unfortunately the images fill-fits the square unproportionally. But I would like to "crop" or "mask" the given image. Which means my frames will show only parts of an image but proportionally correct. I tried contentModes of UIImageView but no luck. for(...

UIControl touchEvent

Hello people, i have implemented the following viewDidLoad() Method: - (void)viewDidLoad { [super viewDidLoad]; // loading images into the queue loadImagesOperationQueue = [[NSOperationQueue alloc] init]; AFOpenFlowView *openFlow = self.view; theControl = [[UIControl alloc] initWithFrame:self.view.frame]; NSStr...

UIImage from a region of UIView

Hi, I'm trying to clip a region of an UIView, into a UIImage for later reuse. I've worked out this code from some snippets: CGRect _frameIWant = CGRectMake(100, 100, 100, 100); UIGraphicsBeginImageContext(view.frame.size); [view.layer renderInContext:UIGraphicsGetCurrentContext()]; //STEP A: GET AN IMAGE FOR THE FULL FRAME UIIm...

UIImage in IUUmageView in UIScrollView?

Hey folks, i need a little push to the right direction i think. What i want to do is displaying pages of a brochure at the iPad Display and allow the user to flip through the pages (left to right & right to left). The user should also be able to zoom in to articles at the pages. I tried it with laying an UIImage into a UIImageView an...

iPad: UIImage imageWithContentsOfFile performance problems

I need to display a 20 x 15 grid of images on an iPad. Each image is 50px x 50 px. I am using [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"name" ofType:@"png"]] to do this but am running into performance issues. The application lags heavily. There are 14 different types of images, all 50x50 in png format. ...

How to convert CVPixelBufferRef from kCVPixelFormatType_32ARGB to kCVPixelFormatType_24RGB

I'm a new Apple developer and I'm struggling with the different image representations... I would Have a CVPixelBufferRef in kCVPixelFormatType_32ARGB format, and I would like to create a new kCVPixelFormatType_24RGB CVPixelBufferRef from it (i.e. discarding the alpha bits). Is there a simple way to do it, or do I have to copy it with ...

building stretchable Image in interface builder

Hello Everyone, I am trying to build a stretchable image in interface builder. Is this even possible? I have searched the web and cannot come up with a proper solution. I'd appreciate any answers. ...

iphone reduce large image loading time

Anybody know how to load the large image to become a blur image first and then only slowly load the full size of image. This will at least let the user to preview the image first other than waiting for a few second to load the full size image. Thanks ...

convert to an UIImage (iPhone) a data stream from an asp.net web service

Hello I developed an asp.net web service that send an image and i want to convert the received data stream to an UIImage in my iPhone this is a sample of what i get from the web service R0lGODlhbQCdAOYA...KsxbcSAAOw== thank you in advance ! ...

Saving hi-res images to photo album

I'm developing a simple image processing app and I've encountered an issue on my test unit (iPhone 3G) that generally any image over 1024x1024 pixels will cause the app to crash when saving. The process my app follows: User selects an image via UIImagePicker A working copy of the selected image is created and resized to the view bou...

Saving masked UIImage to disk

Hi there, I'm trying to save a multiple masked image to disk. The code below explains How I do it. The maskImagewithStroke masks 2 times a picture : first time to provide an irregular stroke to a texture then I'm remasking it with a bigger mask to get a stroke from it. It's the bast way I found to get an irregular stroke around my text...

UIImage resize, crop and rotate with frame

I'm searching for library or just code snippet to provide function like resize, crop with frame and rotate image after user pick image from image picker. Something like on this video: http://www.youtube.com/watch?v=Gb6xncXg1PY (0:55). Maybe someone has the same issue? ...

Saving masked UIImage to disk produces wrong image

Hi there, I've an app with a lot of masked image. For performance sake I ned to generate those masked image on disk and then incorporate them in the app (they'll be uploaded on demand nut not masked on the fly because it is already done). I'm using this kind of coding NSString *pngPath = [NSHomeDirectory() stringByAppendingPathCompon...

I am Using the default UITableViewCell .I want to set the image on cell from my local server...cell.imageView.image

BLImageCache *sharedImageCache = [BLImageCache sharedInstance]; NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:indexPath ,@"IndexPath", nil] ; NSString *urlString; urlString = [[mNewsArray objectAtIndex:indexPath.row] objectForKey:@"imgUrl"]; urlString =[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8Str...