uiimage

How can I load vector image directly with iPhone SDK?

How can I load vector image directly with iPhone SDK? Just as UIImage loads bitmap images. ...

How do I concatenate two images in objective c?

I have two UIImageView's, and I want to concatenate them both to be one UIImageView. To let you know, the images have some transparency to them so you will see both of them. Als they are the same size. ...

Loading image into OpenGL ES from c++ code in iPhone

Hi, I'm creating an iPhone game and I need to load an image from a PNG file into OpenGL (and bind it as a texture). I'm using function glTexImage2D to achieve this goal. I know how to load an image into OpenGL using UIImage (by converting it into CGImage and afterwards drawing into a context). How can I call my Objective-C code from w...

Save Web Images to Sqlite

Hello Brad, I have an application which sets an web image to the background of the homepage.From next time it loads the homepage background from web as my application stores just the name with the address.This is my code: Sqlite *sqlite = [[Sqlite alloc] init]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, ...

multiple uiimageview touch

hi guys, I am just trying to plan a new app... I want to have a series of images which a user can drag around the screen and drop where they want. I'm thinking that I will have an array (NSMutableArray) of all the images. when the app loads, it will draw these out to a scrollable UIView... then the app will know which a user has presse...

Removing image from UIImageView

I load a UIImageView with an image depending on user interaction. When the parent view is initially displayed, no image has been selected and the imageview is black. If the user leaves that view and comes back, the image is still there. I've tried myImageView.image = nil; upon leaving the view but the image remains. How can I remo...

How does photo library display so many images?

To extend on the subject, ...without crashing? I load about 15 full size images from the photo library in UIImageViews and get out of memory warnings and eventually an app crash. These images range from around 250KB to 400KB. The UIImageViews are set to aspect fit. The photo library seems to load smaller file size versions of images,...

iphone uiimage tag - can you use strings?

quick question... I have a series of buttons, each with a tag. I click the buttons which individually create a uiimageview based on the tag number. So this tag number, say 43 is passed and a new uiimageview is created using 43.png All this is working nicely and I can remove the created images by clicking on them... ..but... I'm now wo...

How do I join x number of UIImages together?

I'm looking to stitch some images together, with the images always being added to the bottom of the previous image. e.g. I have images A,B and C. I would like them to appear on top of one another like: A B C What's the best way to do this? Thanks! ...

Taking image using UIImagePickerController

Hi All, I am taking pictures from the iPhone camera using the UIImagePickerController Class. I am using this delegate method for getting the image. (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginal...

iPhone programming

hi all, i try to display UIImage from url in tableview cell but it's not scroll soomthly. at time to scroll image is not cashed and every time its goes to url to display and scroll is stick some while [cell setProductImage:[UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:[dict_productinfo valueForKey:@"product...

UIImageView renders image differently to original

The image on the right is the one that I produced in photoshop. I then stripped all text and put it in an image view, as soon as I did that there was a change in colour and the vertical line lost it sharpness. Has anyone else run into a similar problem? What do I do? ...

UIImage iPhone Rotate 37.8 degrees

After I load an image from the device, I need to rotate it 37.8 degrees then display it on a View. Is there an function in Objective-C that can do the image rotation? Ian ...

UIImageView and UIImage of equal size

I came across a weird scenario in my code the other day: I have a UIImageView that loads an image with setImage:. The UIImageView is prior initialized with a frame having the exact size of the image (41*41 px). I also set the content mode to UIViewContentModeCenter, which should ensure my image is never scaled. Now when I look at my im...

Copy part of scaled UIImage

I want to be able to scale and position an image, and then save just part of that image. I currently have a UIImageView inside a UIScrollView. After zooming and positioning the image I hit a button and then have the following code. // imageScale = current scale of UIView // get the new width and height of the scaled UIView float scaledI...

[iPhone programming] UIImagePickerController run out of memory with camera source

Hi everyone. I got a big performance issue using UIImagePickerController and saving the image on disk. I can't figure out what I am doing wrong. Here is my code : - (void)imagePickerController:(UIImagePickerController *)pick didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControlle...

Will saved images have tag properties with them when I load them back?

I have 3 UIImageViews, and they all have tags 1, 2, 3, and are inside of an NSMutableArray. I want to save the images to a file upon termination of the app, then load them back whe the app loads and extract them from the array, and still have them have the tags. ...

How do I reduce Image quality/size in iPhone objective-c?

I have an app that lets the user take a picture with his/her iPhone and use it as a background image for the app. I use UIImagePickerController to let the user take a picture and set the background UIImageView image to the returned UIImage object. IBOutlet UIImageView *backgroundView; -(void)imagePickerController:(UIImagePickerContro...

iphone: relative paths to local file?

Using MontoTouch for .NET C# iPhone development. (though should not matter) In the iPhoneSimulator, I use UIImage.FromFile (@"images/Bahai.png"); to get the Bahai.png from the images folder. However, when I run it in debug mode on my iTouch, the function returns a null. Only if I put the image file in the root does it work in the iTou...

make UIImage conform to the NSCopying protocol

Hello, The question is quite simple, I need to have an UIImage conform to NSCopying protocol but I have absolutely no idea on where to start to achieve this. Do you have any pointer to help me? Thanks in advance ...