# PTMX Scale picture

**URL:** <https://discourse.processing.org/t/ptmx-scale-picture/25104>\
**Category:** Libraries\
**Created:** [November 1, 2020, 9:12am UTC](https://discourse.processing.org/t/ptmx-scale-picture/25104 "2020-11-01T09:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artyom](https://avatars.discourse-cdn.com/v4/letter/a/6a8cbe/32.png) [@Artyom](https://discourse.processing.org/u/Artyom)\
**Post date:** [November 1, 2020, 9:12am UTC](https://discourse.processing.org/t/ptmx-scale-picture/25104/1 "2020-11-01T09:12:38Z")

</div>

Hello!

I need help with a library for PTMX games. I don’t know how to scale the picture. It’s too small. I tried to use “setCamSize()” with different parameters, but it didn’t do anything:

```auto
Ptmx map = new Ptmx(this, "map.tmx");
map.setCamSize(500, 500);

```

Also, please tell me how to define the boundaries of the map?  
I did it like this, but I feel that it is not right:

```auto
if ((mouseX > width - 100 || right) && ((int) map.mapToCam(100, 100).x > width + 20 ) )
     xMapPosition += 5;

```

Thanks in advance for the answers)
