Jump to content

dxDrawImageSection rotation


ertlflorian1

Recommended Posts

Posted

Hi everyone,

I want to draw an Image Section from an Image.

This is the full image

1.png

I want to draw for example only the Section within the red rectangle. How i can make the rotation ?

2.png

In game it should look like the rectangle, with the rotation of 0?

like that

3.png

Posted

Ok thanks it only can be this two s

arguments:

rotationCenterOffsetX: the absolute X offset from the image center for which to rotate the image from.

rotationCenterOffsetY: the absolute Y offset from the image center for which to rotate the image from.

Can you show me an example how it would work with this rotation?

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...