Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SirOmega

macrumors 6502a
Original poster
Apr 17, 2006
717
12
Las Vegas
Two separate questions...

Is there any way to rotate a UIImage? I know I can rotate a UIView, but no setTransform on an UIImage.

Also, is there a way to set all the values of an image in one statement? eg. int myVals[4]; myVals = {4,6,8,10};
 

kpua

macrumors 6502
Jul 25, 2006
294
0
Rotate the UIImageView it's drawn in...

Not sure what you mean by the "values" of the image. The pixel values? Not unless you already have an NSData for the data. If you want to manually set pixel values, it looks like you'll have to go all the way down to the CG level and create a CGBitmapContext.
 

SirOmega

macrumors 6502a
Original poster
Apr 17, 2006
717
12
Las Vegas
You should just be able to do:

Code:
int myVals[] = {1,2,4,8};

You are, after all, able to use all of C.

Yea I might have to do that. Its just that the ints are declared in the .h and I had planned to put all the value assignment bits in the initialization.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.