Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created March 22, 2012 03:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonnyXu/2155382 to your computer and use it in GitHub Desktop.
Save TonnyXu/2155382 to your computer and use it in GitHub Desktop.
UIImageのimageOrientationについて

UIImage has a property named imageOrientation

See Apple's documentation: imageOrientation

What's the header looks like?

typedef enum {
    UIImageOrientationUp,            // default orientation
    UIImageOrientationDown,          // 180 deg rotation
    UIImageOrientationLeft,          // 90 deg CCW
    UIImageOrientationRight,         // 90 deg CW
    UIImageOrientationUpMirrored,    // as above but image mirrored along other axis. horizontal flip
    UIImageOrientationDownMirrored,  // horizontal flip
    UIImageOrientationLeftMirrored,  // vertical flip
    UIImageOrientationRightMirrored, // vertical flip
} UIImageOrientation;

Up? on the iPhone, which side is up?

This is the UPSide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment