Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Patch 1 #15

Merged
merged 2 commits into from
Feb 24, 2025
Merged

Patch 1 #15

merged 2 commits into from
Feb 24, 2025

Conversation

SanchozzDeponianin
Copy link
Contributor

Keep color value of transparent pixels by direct in-memory copy pixels bytes instead of Graphics.DrawImage.
Also sync kanimal, when reading SCML dont throw error if <character_map> entry is present, just ignore it.

by direct in-memory copy pixels bytes instead of Graphics.DrawImage
@romen-h
Copy link
Owner

romen-h commented Feb 24, 2025

Can you separate these two changes to separate PRs (can I do that?)

I have a couple of concerns about the bitmap copy change:

  • I'm working on removing System.Drawing.Bitmap currently
  • My intended solution for the bug would be to process the transparent pixels and overwrite color to match the surroundings so that it "fixes" bad pixel colors. Just copying the pixels never "fixes" the pixel color if it's already bad.

Copy link
Owner

@romen-h romen-h left a comment

Choose a reason for hiding this comment

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

I will just merge now so everyone can enjoy the fix and then my new code is probably going to delete the CopyTo extension.

@romen-h romen-h merged commit d3f63e7 into romen-h:main Feb 24, 2025
@SanchozzDeponianin SanchozzDeponianin deleted the patch-1 branch February 26, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants