PTMX Scale picture


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:

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:

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

Thanks in advance for the answers)