Core Image

  • Hi All.
    I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.

    My doubt is: Is this key available in iOS?

    I'm using iOS 5.1 with Xcode 4.3.3

    Thanks in advance for any answer.

    Luca.
  • It's in the documentation as iOS4.0 and later and it's in the header file too

    grep kCGImagePropertyOrientation *
    CGImageProperties.h:IMAGEIO_EXTERN const CFStringRef kCGImagePropertyOrientation  IMAGEIO_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_4_0);

    Did you pick the right framework? It's normally, and indeed in this case is, listed at the top of the documentation for the symbol.

    On Jun 15, 2012, at 8:24 PM, Luca Ciciriello wrote:

    > Hi All.
    > I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.
    >
    > My doubt is: Is this key available in iOS?
    >
    > I'm using iOS 5.1 with Xcode 4.3.3
    >
    > Thanks in advance for any answer.
    >
    > Luca.
  • Op 15 jun. 2012, om 14:24 heeft Luca Ciciriello het volgende geschreven:

    > I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.
    > My doubt is: Is this key available in iOS?
    > I'm using iOS 5.1 with Xcode 4.3.3

    My documentation serach came up with this:

    kCGImagePropertyOrientation
    The intended display orientation of the image. If present, this key is a CFNumber value with the same value as defined by the TIFF and EXIF specifications. The value specifies where the origin (0,0) of the image is located, as shown in Table 1. If not present, a value of 1 is assumed.
    Available in iOS 4.0 and later.
    Declared in CGImageProperties.h.

    What are you trying to accomplish?
  • Op 15 jun. 2012, om 14:24 heeft Luca Ciciriello het volgende geschreven:

    > I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.
    > My doubt is: Is this key available in iOS?
    > I'm using iOS 5.1 with Xcode 4.3.3

    My documentation serach came up with this:

    kCGImagePropertyOrientation
    The intended display orientation of the image. If present, this key is a CFNumber value with the same value as defined by the TIFF and EXIF specifications. The value specifies where the origin (0,0) of the image is located, as shown in Table 1. If not present, a value of 1 is assumed.
    Available in iOS 4.0 and later.
    Declared in CGImageProperties.h.

    What are you trying to accomplish?
  • I build using CoreImage.framework and including CoreImage/CoreImage.h  header
    The BASE SDK is 5.1 and the Deployment Target is 5.1

    The error I get is "Use of undeclared identifier KCGImagePropertyOrientation".

    Is there some other header I've to include?

    Luca.

    On Jun 15, 2012, at 2:41 PM, Roland King wrote:

    > It's in the documentation as iOS4.0 and later and it's in the header file too
    >
    > grep kCGImagePropertyOrientation *
    > CGImageProperties.h:IMAGEIO_EXTERN const CFStringRef kCGImagePropertyOrientation  IMAGEIO_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_4_0);
    >
    > Did you pick the right framework? It's normally, and indeed in this case is, listed at the top of the documentation for the symbol.
    >
    > On Jun 15, 2012, at 8:24 PM, Luca Ciciriello wrote:
    >
    >> Hi All.
    >> I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.
    >>
    >> My doubt is: Is this key available in iOS?
    >>
    >> I'm using iOS 5.1 with Xcode 4.3.3
    >>
    >> Thanks in advance for any answer.
    >>
    >> Luca.
    >
    >
  • What framework does the documentation for kCGImagePropertyOrientation tell you to add? In my last mail I said it's right at the top of the documentation page, as it usually is for all such things.

    On Jun 15, 2012, at 9:00 PM, Luca Ciciriello wrote:

    > I build using CoreImage.framework and including CoreImage/CoreImage.h  header
    > The BASE SDK is 5.1 and the Deployment Target is 5.1
    >
    > The error I get is "Use of undeclared identifier KCGImagePropertyOrientation".
    >
    > Is there some other header I've to include?
    >
    > Luca.
    >
    >
    > On Jun 15, 2012, at 2:41 PM, Roland King wrote:
    >
    >> It's in the documentation as iOS4.0 and later and it's in the header file too
    >>
    >> grep kCGImagePropertyOrientation *
    >> CGImageProperties.h:IMAGEIO_EXTERN const CFStringRef kCGImagePropertyOrientation  IMAGEIO_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_4_0);
    >>
    >> Did you pick the right framework? It's normally, and indeed in this case is, listed at the top of the documentation for the symbol.
    >>
    >> On Jun 15, 2012, at 8:24 PM, Luca Ciciriello wrote:
    >>
    >>> Hi All.
    >>> I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to find the key KCGImagePropertyOrientation.
    >>>
    >>> My doubt is: Is this key available in iOS?
    >>>
    >>> I'm using iOS 5.1 with Xcode 4.3.3
    >>>
    >>> Thanks in advance for any answer.
    >>>
    >>> Luca.
    >>
    >>
    >
  • On Fri, June 15, 2012 7:24 am, Luca Ciciriello wrote:
    > Hi All.
    > I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to
    > find the key KCGImagePropertyOrientation.

    I notice that you keep spelling it KCGImagePropertyOrientation. The proper
    spelling is kCGImagePropertyOrientation, with a lower-case k.

        -- F

    --
    Fritz Anderson
    Xcode 4 Unleashed - Classics professors ask for it by name.
    x4u.manoverboard.org
  • Yes this is the problem.

    Thanks

    Luca.
    On Jun 15, 2012, at 4:03 PM, Fritz Anderson wrote:

    >
    > On Fri, June 15, 2012 7:24 am, Luca Ciciriello wrote:
    >> Hi All.
    >> I'm porting some  CoreImage code from MacOS X to iOS and I'm unable to
    >> find the key KCGImagePropertyOrientation.
    >
    > I notice that you keep spelling it KCGImagePropertyOrientation. The proper
    > spelling is kCGImagePropertyOrientation, with a lower-case k.
    >
    > -- F
    >
    > --
    > Fritz Anderson
    > Xcode 4 Unleashed - Classics professors ask for it by name.
    > x4u.manoverboard.org
    >
    >
    >
previous month june 2012 next month
MTWTFSS
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Go to today