- Android
- Flash
- Windows
- iOS
- Returns native camera identifier
- Initialize native camera
- Take photo
- Take photos from a mobile device's camera and receive the byte data
- Triggers the built-in camera in iOS and Android, or the Photo Library picker in the iOS Simulator.
- Returns the captured photo to Haxe as JPEG byte data via a
CameraEvent
on the stage. - Simulates a camera event from provided
BitmapData
for non-mobile platforms. - Allows placing a
BitmapData
overlay over the built-in camera display. - TODO: Implement overlay in Android.
- Take video
git clone https://github.com/skaronn/nativecamera
lime rebuild nativecamera flash
lime rebuild nativecamera windows
lime rebuild nativecamera ios
lime rebuild nativecamera android
<include path="/path/to/nativecamera" />
class Main extends Sprite
{
public function new()
{
super();
NativeCamera.initialize();
...
}
}
- https://github.com/josuigoa/CameraMic
- https://github.com/hopewise/HardDiskSerialNumberExtension
- https://github.com/bazzisoft-openfl-extensions/camera
- http://adoptioncurve.net/archives/2012/04/using-the-camer-of-ios-simulators/
- http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
###License
The MIT License (MIT) - 1,0,0/LICENSE.md
Copyright © 2015
Author: Marcus Skaronn