Closed GoogleCodeExporter closed 8 years ago
PS I'm using an iPad WiFi 3th gen - iOS 6.1.2
Original comment by ynfo.a...@gmail.com
on 26 Jun 2013 at 12:07
Hi ynfo.apps, apologies for the late reply!
The pixel data comes from the native side ordered as little endian, which
explains the swapped colours you are seeing. ActionScript's BitmapData would by
default expect it as big endian. You can set the ByteArray to be read as little
endian before it's displayed:
m_byteArray.endian = Endian.LITTLE_ENDIAN;
You can see the full example in the test app:
https://code.google.com/p/diadraw-air-camera-native-extension/source/browse/Flex
App/src/views/CameraTestAppHomeView.mxml
Cheers,
Radoslava
Original comment by Radoslava.Leseva
on 17 Jan 2014 at 2:26
Original issue reported on code.google.com by
ynfo.a...@gmail.com
on 26 Jun 2013 at 12:01Attachments: