[WIP] Starter/Template scale/smear/bkgd color options

Now possible to set scaling and smearing options for
each starter or template image.  A ".dat" file can be
created which describes whether it's okay to scale and crop
the image's top/bottom and/or left/right, and if not both,
whether to smear the sides of the starter/template to the
edges of the canvas (the prior behavior, and the default),
or use a specific solid color background.

Once finished, will close
https://sourceforge.net/p/tuxpaint/feature-requests/190/

Still to do:
 + Document
 + Remove debugging printf()s (change to DEBUG_PRINTF()?)
 + Add files for starters & templates that ship with Tux Paint
 + Test!
This commit is contained in:
Bill Kendrick 2023-02-10 01:58:49 -08:00
parent 102bb825aa
commit 9b93805ef6
4 changed files with 325 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Various contributors (see below, and AUTHORS.txt)
https://tuxpaint.org/
2023.February.9 (0.9.29)
2023.February.10 (0.9.29)
* Improvements to "Stamp" tool:
-----------------------------
* Stamps may now be rotated.
@ -66,6 +66,24 @@ https://tuxpaint.org/
-----------
* Space_draw.svg by Ingrid Illa Terrier
* Starter and Template Improvements
---------------------------------
* [WIP] Now possible to set scaling and smearing options for
each starter or template image. A ".dat" file can be
created which describes whether it's okay to scale and crop
the image's top/bottom and/or left/right, and if not both,
whether to smear the sides of the starter/template to the
edges of the canvas (the prior behavior, and the default),
or use a specific solid color background.
Closes https://sourceforge.net/p/tuxpaint/feature-requests/190/
Bill Kendrick <bill@newbreedsoftware.com>
TODO:
+ Document
+ Remove debugging printf()s (change to DEBUG_PRINTF()?)
+ Add files for starters & templates that ship with Tux Paint
+ Test!
* Other Improvements:
-------------------
* A keyboard shortcut is now available for quickly accessing