# Wrap/Tile Bitmap?

**URL:** <https://forum.kirupa.com/t/wrap-tile-bitmap/257252>\
**Category:** Uncategorized\
**Created:** [April 11, 2008, 6:11pm UTC](https://forum.kirupa.com/t/wrap-tile-bitmap/257252 "2008-04-11T18:11:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![endemoniada](https://avatars.discourse-cdn.com/v4/letter/e/dec6dc/32.png) [@endemoniada](https://forum.kirupa.com/u/endemoniada)\
**Post date:** [April 11, 2008, 6:11pm UTC](https://forum.kirupa.com/t/wrap-tile-bitmap/257252/1 "2008-04-11T18:11:07Z")

</div>

Hi guys,

If I use a Matrix to transform a texture is there a way I can make it wrap so it tiles ?

matrix.translate(20,0);  
dstBitmap.draw(squareBitmap,matrix);

…displays the squareBitmap 20 pixels to the right, I want to fill in those 20 pixels on the left that will now be empty; they should be filled in with the right-most 20 pixels of the squareBitmap.

I hope I explained that correctly. Thanks.
