Karoffe Posted August 23, 2015 Share Posted August 23, 2015 Well, I want to use interpolateBetween to make an image come into a box from the side, my problem is I have to make the image outside the box first then move it inside,, so I want the parts of the image to appear only once it entered the box Here's an image explaining if you don't understand http://imgur.com/0UZ7aog The part inside the box should be shown as normal but the other part outside the box should not appear, how can that be done ? Link to comment
Addlibs Posted August 23, 2015 Share Posted August 23, 2015 You could make the box a render-target, then everything outside the render-target region won't be displayed. If you prefer, you can do some math with dxDrawImageSection and use that. Link to comment
Karoffe Posted August 23, 2015 Author Share Posted August 23, 2015 I'd prefer to use image sections but, I am not able to discover the math I need to do this Here is a picture I made with paint to be able of better thinking of how the math is done in my situation, but it seems that I fail at math,, http://i.imgur.com/cRMzJke.png What am trying is to get to do an equation with all the black colored numbers to get the value 10 (the red colored one), Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now