> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/prt__bitmap__vos_8cpp.md).

# prt\_bitmap\_vos.cpp

[Enumerations](#enum-members) | [Functions](#func-members)

`#include "`[\_logf.h](/s-adk-5.1-programmers-guide/__logf_8h_source.md)`"` `#include "`[prt.h](/s-adk-5.1-programmers-guide/sdi_2src_2prt_8h_source.md)`"` `#include <printer.h>` `#include <dlfcn.h>` `#include <string.h>`

Include dependency graph for prt\_bitmap\_vos.cpp:

![](/files/PBXojVDiiq0NHp793PYf)

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| enum         | { [BLOCK\_HEIGHT](#abc5c98fcc1211af2b80116dd6e0a035dab5a7e599d7747bab6f97e9f15aa3b729) = 512 }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| enum         | { [PRINTER\_WIDTH](#ac36f475ca5b446f4fde4c9b90bec77c8aa24ed1c134538684bb1d59a06f7bde38) = 384, [PRINTER\_BYTES\_PER\_ROW](#ac36f475ca5b446f4fde4c9b90bec77c8ac9eb66aa9aba19fda4a028305e3e999b) = (PRINTER\_WIDTH + 7) / 8 }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| enum         | <p><a href="#a7350482c4308f419111c9dd6edb941c0">PrintResult</a> {<br>  <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0af2ad9f75739b523e78df0375ad38a546">PRT\_OK</a> = 0, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a8de6b77dc9ed09b215c1999c7e2ba06b">PRT\_BUSY</a> = -1, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a97c7d651a078ac337e76812e2c065ee8">PRT\_PAPERJAM</a> = -2, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0ad9c03d6e1ea575ed6f996d945d83a945">PRT\_HEADOPEN</a> = -3,<br>  <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a800ccbd12989598a0bfd6aa12141776c">PRT\_PAPEREND</a> = -4, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a429988d9a2c4de64c091c963c53de39f">PRT\_OVERHEAT</a> = -5, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a41e79c4dbe0869fdf53de2ac223a6c55">PRT\_OVERVOLTAGE</a> = -6, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a4b5ae5a3826908d62ba457037a20f78d">PRT\_UNDERVOLTAGE</a> = -7,<br>  <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0ae4bf0cf9fc2178e4bab2ee0ddfbb1cbc">PRT\_FAIL</a> = -8, <a href="/pages/1PVUgFaDXf2qfQiGdqbI#a7350482c4308f419111c9dd6edb941c0a7e51c5aeff1f987d71f6fe16119f026a">PRT\_NO\_PRINTER</a> = -10, <a href="#a7350482c4308f419111c9dd6edb941c0af2ad9f75739b523e78df0375ad38a546">PRT\_OK</a> = 0, <a href="#a7350482c4308f419111c9dd6edb941c0a8de6b77dc9ed09b215c1999c7e2ba06b">PRT\_BUSY</a> = -1,<br>  <a href="#a7350482c4308f419111c9dd6edb941c0a97c7d651a078ac337e76812e2c065ee8">PRT\_PAPERJAM</a> = -2, <a href="#a7350482c4308f419111c9dd6edb941c0ad9c03d6e1ea575ed6f996d945d83a945">PRT\_HEADOPEN</a> = -3, <a href="#a7350482c4308f419111c9dd6edb941c0a800ccbd12989598a0bfd6aa12141776c">PRT\_PAPEREND</a> = -4, <a href="#a7350482c4308f419111c9dd6edb941c0a429988d9a2c4de64c091c963c53de39f">PRT\_OVERHEAT</a> = -5,<br>  <a href="#a7350482c4308f419111c9dd6edb941c0a41e79c4dbe0869fdf53de2ac223a6c55">PRT\_OVERVOLTAGE</a> = -6, <a href="#a7350482c4308f419111c9dd6edb941c0a4b5ae5a3826908d62ba457037a20f78d">PRT\_UNDERVOLTAGE</a> = -7, <a href="#a7350482c4308f419111c9dd6edb941c0ae4bf0cf9fc2178e4bab2ee0ddfbb1cbc">PRT\_FAIL</a> = -8, <a href="#a7350482c4308f419111c9dd6edb941c0a7e51c5aeff1f987d71f6fe16119f026a">PRT\_NO\_PRINTER</a> = -10<br>}</p> |

|           |                                                                                                 |
| --------- | ----------------------------------------------------------------------------------------------- |
| Functions |                                                                                                 |
| int       | [print\_bitmap](#ad23c179a90a8246f38ba424afaf63336) (int width, int height, const void \*vdata) |

### EnumerationType Documentation <a href="#enumeration-type-documentation" id="enumeration-type-documentation"></a>

### anonymousenum <a href="#abc5c98fcc1211af2b80116dd6e0a035d" id="abc5c98fcc1211af2b80116dd6e0a035d"></a>

anonymous enum

|               |   |
| ------------- | - |
| Enumerator    |   |
| BLOCK\_HEIGHT |   |

### anonymousenum <a href="#ac36f475ca5b446f4fde4c9b90bec77c8" id="ac36f475ca5b446f4fde4c9b90bec77c8"></a>

anonymous enum

|                          |   |
| ------------------------ | - |
| Enumerator               |   |
| PRINTER\_WIDTH           |   |
| PRINTER\_BYTES\_PER\_ROW |   |

### PrintResult <a href="#a7350482c4308f419111c9dd6edb941c0" id="a7350482c4308f419111c9dd6edb941c0"></a>

enum [PrintResult](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/prt__bitmap__png_8cpp.md#a7350482c4308f419111c9dd6edb941c0)

|                   |                                 |
| ----------------- | ------------------------------- |
| Enumerator        |                                 |
| PRT\_OK           | no error                        |
| PRT\_BUSY         | Printing in progress            |
| PRT\_PAPERJAM     | Paper jam                       |
| PRT\_HEADOPEN     | Head open                       |
| PRT\_PAPEREND     | Paper end                       |
| PRT\_OVERHEAT     | Head too hot                    |
| PRT\_OVERVOLTAGE  | Head over voltage               |
| PRT\_UNDERVOLTAGE | Head under voltage              |
| PRT\_FAIL         | function failed (generic error) |
| PRT\_NO\_PRINTER  | no printer available            |
| PRT\_OK           | no error                        |
| PRT\_BUSY         | Printing in progress            |
| PRT\_PAPERJAM     | Paper jam                       |
| PRT\_HEADOPEN     | Head open                       |
| PRT\_PAPEREND     | Paper end                       |
| PRT\_OVERHEAT     | Head too hot                    |
| PRT\_OVERVOLTAGE  | Head over voltage               |
| PRT\_UNDERVOLTAGE | Head under voltage              |
| PRT\_FAIL         | function failed (generic error) |
| PRT\_NO\_PRINTER  | no printer available            |

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### print\_bitmap() <a href="#ad23c179a90a8246f38ba424afaf63336" id="ad23c179a90a8246f38ba424afaf63336"></a>

int print\_bitmap


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/prt__bitmap__vos_8cpp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
