ok am drawing this on my screen // this is backround for the 2d platformer btw
http://s7.postimg.org/4frzz3pi3/backround.png
but i don’t want to draw it all i only want to draw what the screen can see
for example here i want to only draw whats inside that red rectangle
http://s22.postimg.org/oy71dto9t/backround2.png
i got it working with tiles and stuff using a collision box but i have never done it with an full image
do i need to get the pixels that are colliding and so how do i do that?