Jump to content

Recommended Posts

Posted

hi Joel,

Thanks for your quick reply, I see the API about matrix rotation. If I put my bitmap image to a matrix then rotate it, it's posible?

Nhan

Posted

You would need to decode your image into a pixmap. That would then give you the image in memory non-rotated.

You could then build a rotation matrix and then point by point transfer the image to the display passing each x, y coordinate through your rotation matrix to get the destination x,y coordinate. 

Posted
6 hours ago, inmarket said:

You would need to decode your image into a pixmap. That would then give you the image in memory non-rotated.

To clarify: This is fairly easy as it's just two high-level API calls: gdispPixmapCreate() to create a valid GDisplay object and then pass that GDisplay* pointer as the first argument to your gdispGImageDraw() function. That's how you draw the image into the pixmap.

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
×
×
  • Create New...