user8644: I'd like to print a bitmap on my TFT.
I setup my screen with this library: http://forum.arduino.cc/index.php?topic=292777.0
It is like the Adafruit_GFX library (only a little bit changed). Everything works.
With the tool Img2Code I converted my image into a bitmap.
void Adafruit_GFX::drawXBitmap(int16_t x, int16_t y,
                               const uint8_t *bitmap, int16_t w, int16_t h,uint16_t color)


How to include this code and print the bitmap on the tft?

user4143: As the function prototype you have show suggests, the data needs to be in a uint8_t array format.
void Adafruit_GFX::drawXBitmap(int16_t x, int16_t y,
            const uint8_t *bitmap, int16_t w, int16_t h,uint16_t color)

So your array data would look like:
const uint8_t myBitmap[] = { 0xff, 0xff, 0xc0, 0x00, 0xc0, 0xff,
    0xc0, 0xc0, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef,
    .... etc ....
    0xff, 0xff, 0xff, 0xff, 0xff
};

You then call the function with the needed parameters:
tft.drawXBitmap(10, 20, myBitmap, 100, 80, 0xFFFF);

That is assuming you want to place it at (top left corner) 10,20 and the bitmap is 100x80 pixels in size.  It will draw it in white (0xFFFF).

8644: <p>I'd like to print a bitmap on my TFT.</p>

<p>I setup my screen with this library: <a href="http://forum.arduino.cc/index.php?topic=292777.0" rel="nofollow noreferrer">http://forum.arduino.cc/index.php?topic=292777.0</a></p>

<p>It is like the Adafruit_GFX library (only a little bit changed). Everything works.</p>

<p>With the tool Img2Code I converted my image into a bitmap.</p>

<pre><code>void Adafruit_GFX::drawXBitmap(int16_t x, int16_t y,
                               const uint8_t *bitmap, int16_t w, int16_t h,uint16_t color)
</code></pre>

<p><img src="https://i.stack.imgur.com/5fnlO.png" alt="screenshot"></p>

<p>How to include this code and print the bitmap on the tft?</p>
 4143: <p>As the function prototype you have show suggests, the data needs to be in a uint8_t array format.</p>

<pre><code>void Adafruit_GFX::drawXBitmap(int16_t x, int16_t y,
            const uint8_t *bitmap, int16_t w, int16_t h,uint16_t color)
</code></pre>

<p>So your array data would look like:</p>

<pre><code>const uint8_t myBitmap[] = { 0xff, 0xff, 0xc0, 0x00, 0xc0, 0xff,
    0xc0, 0xc0, 0xff, 0xff, 0xde, 0xad, 0xbe, 0xef,
    .... etc ....
    0xff, 0xff, 0xff, 0xff, 0xff
};
</code></pre>

<p>You then call the function with the needed parameters:</p>

<pre><code>tft.drawXBitmap(10, 20, myBitmap, 100, 80, 0xFFFF);
</code></pre>

<p>That is assuming you want to place it at (top left corner) 10,20 and the bitmap is 100x80 pixels in size.  It will draw it in white (0xFFFF).</p>
