mriale / PyDPainter

A usable pixel art paint program written in Python
GNU General Public License v3.0
551 stars 26 forks source link

How to crop an image? #90

Closed jnikula closed 1 year ago

jnikula commented 1 year ago

This is pretty nostalgic! :)

I'm wondering how to crop an image. Picture | Page Size... lets me set the page size, but that keeps the portion from top left, and I'd want to choose a different part of the image to keep.

I don't seem to be able to do a round trip via ilbmtoppm -> crop ppm -> ppmtoilbm either, because those tools modify the order of the colors in the color map, and I need to preserve them. :(

mriale commented 1 year ago

Could you grab the part of the image you want as a brush? Then you could clear the screen and stamp it down again. Alternatively you could save the brush and load it in again as picture. Does either of those things work for you?

jnikula commented 1 year ago

Thanks, that worked! It's just been like, uh, 30 years since I last used Deluxe Paint, so I'm a little rusty. :)