![IDTECH Vivopay Neo 2 Скачать руководство пользователя страница 422](http://html.mh-extra.com/html/idtech/vivopay-neo-2/vivopay-neo-2_developers-manual_618786422.webp)
NEO 2 Interface Developer’s Guide
Copyright © 2019, International Technologies & Systems Corporation. All rights reserved.
422
data. Thus, in this case, the cropping would begin at the Byte 1 (that is, the Column 1
boundary).
The following diagram shows how the header parameters are derived.
The Row Number refers to the number of rows, each of which is a row of pixels. The Column
Number refers to a byte location. So Row varies from 0 to 63, and the Column varies from 0 to
15.
Example
The following is a simple example of a bitmap which measures 24x4 pixels (24 pixels per row,
4 rows). All bitmap values shown are arbitrary (and in hexadecimal).
Note:
This example does
NOT
include image cropping.
ACTUAL BMP:
[14-byte BMP file header] + [40 byte DIB header] +
[Bitmap Data = (11 00 00 00) (22 00 01 00) (33 00 01 00) (44 00 00
00)]
First remove the headers.
[Bitmap Data = (11 00 00 00) (22 00 01 00) (33 00 01 00) (44 00 00
00)]
Then invert the image by swapping the rows. In this example, each row is 32 bits (4 bytes
long). Row 1 is swapped with the last row (4), Row 2 is swapped with the next-to-last row (3)
and so on.
[Bitmap Data = (44 00 00 00) (33 00 01 00) (22 00 01 00) (11 00 00
00)]
0
1
2
.
.
.
.
62
63
0 1 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 15