Machriam / TheCardEditor

MIT License
0 stars 0 forks source link

Feature: Nearest neighbour scaling #10

Open TimKroeger13 opened 12 months ago

TimKroeger13 commented 12 months ago

Where: While editing a card in the card editor.

What is missing: When I scale an image in any axis, it gets scaled by a specific formula. I don't know which formula it's using right now, but it looks like a smooth blending to me. That is good for most tasks, but especially for drawing, I need a different option. Because drawings are imported as high-contrast images, which therefore only contain black and white as colors, this scaling smooths out the image too much because it introduces gray colors in the process of scaling. Therefore, I also need a "Nearest neighbor" scaling option (based on the Nearest Neighbor formula for pixels).

What I want: I want a button where I can change how an image is scaled. It can only be either "Normal" or "Nearest neighbor" scaling.