]> khamidou — GitHub mirrors - electron.git/commitdiff
Detalied documentation about frameBuffer's format.
authorHeilig Benedek <benecene@gmail.com>
Mon, 28 Sep 2015 20:33:43 +0000 (22:33 +0200)
committerHeilig Benedek <benecene@gmail.com>
Mon, 28 Sep 2015 20:33:43 +0000 (22:33 +0200)
docs/api/web-contents.md

index b2e924e5d083d4ca9e647bd2f3d03b837675709f..7cbf8d93ba2c5af74180a2782637df4a97d51bf3 100644 (file)
@@ -565,8 +565,11 @@ For the `mouseWheel` event, the `event` object also have following properties:
 Begin subscribing for presentation events and captured frames, the `callback`
 will be called with `callback(frameBuffer)` when there is a presentation event.
 
-The `frameBuffer` is a `Buffer` that contains raw pixel data, in the format of
-32bit ARGB.
+The `frameBuffer` is a `Buffer` that contains raw pixel data. On most machines,
+the pixel data is effectively stored in 32bit BGRA format, but the actual
+representation depends on the endianness of the processor (most modern
+processors are little-endian, on machines with big-endian processors the data
+is in 32bit ARGB format).
 
 ### `webContents.endFrameSubscription()`