Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Image flip Raw data vertically #2369

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

AlexandreK38
Copy link
Contributor

Describe your changes

Add a new method flipRawData() to Image to flip raw data vertically. As for the initWithRawData it only works for RGBA8888 format.

Issue ticket number and link

Checklist before requesting a review

For each PR

  • Add Copyright if it missed:
    - "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

  • I have performed a self-review of my code.

    Optional:

    • I have checked readme and add important infos to this PR.
    • I have added/adapted some tests too.

For core/new feature PR

  • I have checked readme and add important infos to this PR.
  • I have added thorough tests.

@AlexandreK38 AlexandreK38 changed the title Image fliprawdata Image flip Raw data vertically Feb 4, 2025
void Image::flipRawData()
{
// only RGBA8888 supported

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should check pixel format

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants