The basic image handling class of Cocoa-Touch on iOS.

learn more… | top users | synonyms

0
votes
0answers
25 views

how to draw a rect in UIImage with this shadow effect?

I want to draw a rect in UIImage to highlight the area selected.I want the rect effect is like this: But what i draw is like this: And my drawing code is as follows: - (UIImage ...
0
votes
1answer
34 views

UIImage from AVCaptureSession

What I'm trying to achieve is grabbing a still frame from a AVCaptureSession for something like a QR Code scanner. I have a view with a AVCaptureVideoPreviewLayer sublayer. I already tried using ...
0
votes
0answers
9 views

Can´t save SQLITE_BLOB

Am try'n to save the Facebook user image in a SQLite DB. NSURL *url = [NSURL URLWithString:path]; NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url]; NSURLResponse *response = nil; NSError ...
0
votes
1answer
16 views

Create custom UIImage from json data

could you please provide me by sample code for creation a UIImage object with specific width and height programmatically in the code then load an Image in it which supposed to fetch from json (it has ...
0
votes
0answers
12 views

Anybody had a memory leak whilst creating images from .PDF pages in Titanium Module

I am seeing a roughly 12MB memory leak with a titanium iOS module I have created to create variable compression and output format images from a .PDF files pages. It all works fine, except for the ...
0
votes
0answers
37 views

UIImage gives nil

I'm quite new to iOS development. My app gets a file over a network, writes it as image.png and later on reads and displays the image. However, the display part is not working as my UIImage object is ...
1
vote
0answers
30 views

SDWebImage UITableView Cell Images Not Persisting

I am using SDWebImage library in order to download and cache images and from a web service asynchronously. Following is the method i use to download the images: - (void) downloadThumbnails:(NSURL ...
0
votes
3answers
50 views

UIImage can't be initialed

I want to use NSString to initial UIImage.But I failed.here is my code UIImage *tImage=[UIImage imageNamed:file];//file is NSString @"1Shux.png" if (!tImage) { NSLog(@"%@ is ...
1
vote
1answer
25 views

SDWebImage With Custom UITableView Cell Image

I am trying to use SDWebImage library with a custom UITableViewCell. Below is the method that is downloading the images from the web service: - (void) downloadThumbnails:(NSURL *)finalUrl { ...
1
vote
1answer
12 views

different touch types on an UIImage will call different functions

I have a CollectionView with images in the cells. For the cells, or images in the cells, I want to implement 2 touch behaviors that call different functions. 1) a normal (short) tap on the UIImage ...
-2
votes
0answers
16 views

UIImage editing like photoshop? [closed]

How can we give effects to uiimage thats like some effects in photoshop like stretching with respect to our touch an drag,blur where we touch etc Is there any samples for that ?
0
votes
1answer
48 views

How can I add a white space between image?

I write a code to loop for creating multiple image on UIImageView inside scrollview. i did something like this: UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(38, 9, ...
0
votes
0answers
18 views

Overlay images on the photo

Please tell me any good solutions to this problem here: the image overlay on the photo (well, for example on the photo mask Batman impose and save to the library, well, everything like that), with ...
0
votes
2answers
18 views

UIImage zoom in center

I have method that zooming UIImage - (UIImage*)croppedImageWithImage:(UIImage *)image zoom:(CGFloat)zoom { CGFloat zoomReciprocal = 1.0f / zoom; CGPoint offset = CGPointMake(40, 40); ...
0
votes
2answers
31 views

Add an image inside UIButton as an accesory

I have the following UIButton I want to add an Image inside to the far right. Like an accessoryView I am already using backgroundImage and I want to avoid combining the 2 images into 1. Is it ...
0
votes
0answers
10 views

UIColor change all pixels color that are not blank

I Have Image (png) After replacing/removing red color some pixels are remaining.. How To replace all pixels that are not are not transparent? I'm using such method: ...
0
votes
0answers
7 views

Save Image to my plist to load hear in other view

I want to save my image import from the Photo library or my camera in a plist (Data.plist). Thank you in advance //I have hear my code to save the name of person write in my text field // ...
0
votes
0answers
4 views

Sending base64 UIImages comes out empty

I'm trying to send an HTML email with embedded UIImages. This is my code: MFMailComposeViewController *mailComposer = [[MFMailComposeViewController alloc] init]; mailComposer.mailComposeDelegate = ...
-2
votes
0answers
23 views

Setting custom UIButton gradient background and drop shadow in iOS [closed]

I've created a gradient image with 1 pixel of width to set as a background for a UIButton, as it seems to be the recommendation in iOS HIG section "Tips for Creating Resizable Images" (iOS Human ...
0
votes
2answers
33 views

UIButton Image size

I have 2 UIButtons. I set the background images to 2 different pngs. The pngs have different width. I looks like this: The button size is set to the images.size.width and height. I would like ...
-2
votes
3answers
39 views

How to resize an image in iOS? [duplicate]

hi I want to send an image to a web service. But I want to resize user selected any image into 75 x 75 and send it to web service. How can I resize this image into 75 x 75 Thanks
0
votes
0answers
6 views

Does not replace the existing image in NSDocumentsDirectory

It does not replace the existing image. When I query it from the code I get the old image itself. Is there anything I am doing wrong? Following is my code. NSArray *paths = ...
0
votes
1answer
21 views

how to stop a button from overruling a drag gesture

I have an image that can be dragged on the screen along the y axis and it works brilliantly, but when when I place a button on top of the image which tracks the image (moves with the image, so it's ...
0
votes
3answers
25 views

How to get a button's current image using imageForState?

I found a property called imageForState in xcode but am having trouble getting it to do what I want. When a button is pressed, I want to execute a block of code depending on the button's image. - ...
0
votes
1answer
29 views

Combine two images

I would like to take an image and duplicate it. Then increase it by 105% and overlay it on the original image. What is the correct way to do this on iOS?
0
votes
1answer
23 views

UIImage returning from OpenCV is too LARGE (6 MB) in iPhone

I was checking the allocations of my OpenCV app on iPhone and perceived that photos from the camera takes about 300kb and photos transformed by the app take 6 MB (20 times bigger). Isn`t that ...
0
votes
0answers
28 views

How to UIGraphics drawing text + image?

recently I bought a thermo printer which it supports iOS printing and has an SDK for it. The print function would require the content to raster to image to print. But since I am new to drawing with ...
0
votes
0answers
5 views

Images and title not loading for UITabBarController

I have been searching for a solution to a weird problem that I am facing in my application. My requirement is that I need to show tabbar with 3 items. The tabs are showing up and the views are ...
0
votes
0answers
15 views

Render B&W image with antialiasing

iOS project. I'm loading a bitmap from resources using [UIImage imageNamed:], it's a black-on-transparent monochrome PNG. I then cut it up with CGImageCreateWithImageInRect(). I render it in the ...
1
vote
3answers
43 views

Calling imageWithData:UIImageJPEGRepresentation() multiple times only compresses image the first time

In order to prevent lagging in my app, I'm trying to compress images larger than 1 MB (mostly for pics taken from iphone's normal camera. UIImage *image = [info ...
0
votes
2answers
58 views

iOS - Invert a UIImage with button

I have a simple application where I can take an photo or choose and existing photo on the camera roll and then display the image in a UIImageView. I want to have a button that you can press and invert ...
0
votes
0answers
10 views

Cropping UIImages to a square

I am working on an app where the user crops an image to a square. It will crop to the largest square that can fit in the images rectangle, but the user can specify where it will crop. There are two ...
0
votes
1answer
17 views

Modifying channels in an image

How does one modify the colour and alpha channels in an image? I am able to apply a colour to an image using CGContextSetRGBFillColor which creates a weird effect. How can a colour channel be ...
0
votes
2answers
59 views

UIImage isKindOfClass issue

This is my code in my application, [imageview setAlpha:1.0f]; [imageview setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@.png",[pages objectAtIndex:swipeCount]]]]; [imageview ...
0
votes
0answers
19 views

How to print UIImage at 5x7" in printout?

I would like to give my users the option to print their photos at 4x6 as well as 5x7. Printing a UIImage at 4x6" is easy, as all I have to do is UIPrintInfo *printInfo = [UIPrintInfo printInfo]; ...
0
votes
1answer
19 views

Fast rotation of an image (bitmap) on an iPhone for an arbitrary degree

I need to rotate a full size photo (about 8MB) as fast as possible on an iPhone (4s and up), an arbitrary angle. The code to do so with CoreImage is easy enough, but not fast. It takes about 1.5 ...
0
votes
1answer
16 views

UIImageView content pixels (ingore image padding)

The short version: How do I know what region of a UIImageView contains the image, and not aspect ratio padding? The longer version: I have a UIImageView of fixed size as pictured: I am loading ...
0
votes
1answer
26 views

IOS: share UIImage in instagram

In my app I want to share an UIImage means facebook twitter and instagram, for facebook and twitter there aren't problem in IOS 6, but I don't have idea how to share this UIImage with instagram; I ...
0
votes
1answer
23 views

UIImage -drawAtPoint: very slow for large images

So I have a massive UIImage, maybe 10,000x10,000 px (I know they're not supposed to exceed 1024x1024 apparently, but anyway that's not the main problem). Moving this around the screen (constantly ...
1
vote
0answers
24 views

DelayTime or UnclampedDelayTime for GIFS

When converting a Gif into a animated UIImage the delay for each frame is extracted from properties kCGImagePropertyGIFDelayTime or kCGImagePropertyGIFUnclampedDelayTime Like so: NSString ...
1
vote
1answer
37 views

How to make scrollview scroll when image is moved towards edge of the scrollview

This could be pretty difficult to explain, but here we go, I'll try. I would like to do what other apps do when the user drags an image for example to the bottom of the screen and the page scrolls, ...
-2
votes
0answers
34 views

Integrate images with button iOs [closed]

Hello friend look at my requirements, i have image in HtML And css with all its parts clickable, but i need to integrate same functionality in iOS plate form. 2.the coloured parts of the images ...
0
votes
1answer
10 views

load urlimage in background quicker

I am doing a tutorial where they ask me to load a urlimage in the background to a uitableview. Below is the code I am using and it is loading really slow. is there a code that makes it load faster? ...
0
votes
0answers
32 views

Detect if UIImage is preloaded?

I am working on an image viewer application. I noticed some lag when scrolling and discovered this code to solve the problem: https://gist.github.com/steipete/1144242 Basically, it just draws the ...
0
votes
1answer
35 views

The right way of showing images on UITableView?

I am developing an app, that takes events from 3 different shared calendars, and show them, sorted by date, in a UITableView. first calendar is for "Sports Shown on TV" second calendar is for "Live ...
0
votes
1answer
29 views

Make an image copy another images movements

I was surprised to find that I couldn't find another question like this. What I've done is made a uiimage moveable (by dragging it) and I would like another image to copy it's movements. Not go to the ...
1
vote
3answers
50 views

Displaying UIImage

I'm trying to displaying an image from file on my ViewController in Xcode. I have in my ViewController.h: UIImageView *image; @property(nonatomic,retain) IBOutlet UIImage* image ; ViewController.m ...
0
votes
2answers
50 views

How to add a UIImage to a UIScrollView without breaking the scrolling function?

I have a UIScrollView filling my entire view, which was placed using Interface Bilder. I also placed numerous buttons in my scrollable area, all of which works great. However, I would like to insert ...
1
vote
2answers
40 views

Core Data locking when downloading images on background threads

I'm trying to download images asynchronously and store them in Core Data. Step one is to download a json file, parse it, and save an entity in Core Data for each object in the feed. That part is ...
0
votes
1answer
62 views

How to display distance between 2 images in mm/cm

I'd like to display in (real world) mm/cm the distance (only on the y axis) between 2 images that can travel on the y axis. I've thought long and hard about this but can't think of a reasonable way to ...

1 2 3 4 5 74