Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GPSメタデータを画像に追加しようとしています。他のキー値の設定方法については、このリンクを参照しました。kCGImagePropertyGPSImgDirectionしかし、「画像の方向」、つまりキーとの値を取得する方法を見つけることができませんkCGImagePropertyGPSImgDirectionRef。「画像の方向」が何を意味するのか、どこから値を取得するのかわかりません。ロケーションマネージャのlocationプロパティには、そのようなプロパティはありません。
kCGImagePropertyGPSImgDirection
kCGImagePropertyGPSImgDirectionRef
location
CGImageSourceRefとを使用して GPS データを取得してみてください。Image CGImageSourceCopyPropertiesAtIndex(...)Direction と Image Direction Ref の両方が返されます。これらは Cocoa/Cocoa.h の一部です。
CGImageSourceRef
CGImageSourceCopyPropertiesAtIndex(...)
また、Apple の ImageApp の例をダウンロードして、その使用方法を確認することもできます。