Jump to content

dxDrawImageSection with section bigger than image


Bonsai

Recommended Posts

Posted

Hi,

I have a little problem with dxDrawImageSection. 

When the section that I'm drawing becomes bigger than the actual image, it will start showing the "other side" of the image again.

If I have a picture which is 500x500, and I draw a section of it from 200 to 700, it will draw the part from 200 to 500 followed by 0 - 200.

This is a problem as I need it to stop drawing at 500.

Is there a way to turn this off or avoid this?

 

Bonsai

Posted

Oh wow, thank you!

It works. This was a lot easier than I thought.

It also fixed another problem I had so now I don't even have to use dxDrawImageSection anymore and can use dxDrawImage instead.

 

Thanks!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...