parasyte/pixels

Scaling downwards

Open

#267 opened on Mar 24, 2022

 (3 comments) (1 reaction) (0 assignees)Rust (147 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (2,121 stars)
PR merge metrics
 (PR metrics pending)

Description

While writing a simple image viewer, I discovered that scaling down is not supported. That is, if the pixel buffer is larger than the surface texture. Would it be difficult to scale an image to fit the surface texture, adding borders horizontally or vertically as appropriate to keep the aspect ratio?

Contributor guide