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

[FEATURE] Adding texture filtering modes (bilinear and nearest neighbor) #133

Merged
merged 2 commits into from
Dec 14, 2023

Conversation

adriengivry
Copy link
Contributor

User Problem

When dealing with low-resolution files, such as pixel art, our goal is to achieve clear visibility of individual pixels.

Current state of the picture viewer when zooming on a low resolution image (pixel art):
image

Changes

  • Removed MainHelper.cs and moved the PictureBox related helpers to a new class: QuickPictureBox.
  • Implement a feature to change filtering mode (also called interpolation mode) in the QuickPictureBox.
  • Added an option in the toolbar to select the filtering mode: Bilinear or Nearest Neighbor.
  • Added 3 icons (6 including variants) and updates resource file:
    • white-filtering.png
    • white-bilinear.png
    • white-nearest-neighbor.png
    • black-filtering.png
    • black-bilinear.png
    • black-nearest-neighbor.png
  • Added translations for "Filtering", "Bilinear" and "Nearest Neighbor" in all languages.

Additional Notes

  • The bilinear filtering mode is set as the default mode.
  • This feature is only available in the MainForm

Screenshots

quick-picture-filtering-modes

@adriengivry adriengivry force-pushed the feature/quick-picture-box branch 2 times, most recently from e445cd6 to 3797f5c Compare December 13, 2023 17:41
@Beelink Beelink merged commit 691f50a into ModuleArt:master Dec 14, 2023
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