mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Merge pull request #28587 from Daw11/lanczos
Implement Lanczos image filter
This commit is contained in:
commit
05cb337f2d
5 changed files with 161 additions and 2 deletions
|
|
@ -1015,8 +1015,7 @@ void EditorNode::_save_scene_with_preview(String p_file, int p_idx) {
|
|||
y = (img->get_height() - size) / 2;
|
||||
|
||||
img->crop_from_point(x, y, size, size);
|
||||
// We could get better pictures with better filters
|
||||
img->resize(preview_size, preview_size, Image::INTERPOLATE_CUBIC);
|
||||
img->resize(preview_size, preview_size, Image::INTERPOLATE_LANCZOS);
|
||||
}
|
||||
img->convert(Image::FORMAT_RGB8);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue