[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][gambas/gambas][master] Image: Add 'Stretch()' method. 'PaintImage()' and 'DrawImage()' now use the...



Benoît Minisini pushed to branch master at Gambas / gambas


Commits:
8862f1b2 by Benoît Minisini at 2026-08-07T09:09:16+02:00
Image: Add 'Stretch()' method. 'PaintImage()' and 'DrawImage()' now use the new stretching algorithm to automatically scale the image to a destination rectangle.

[GB.IMAGE]
* NEW: Image: Add 'Stretch()' method based on the 'smolscale' algorithm made by Hans Petter Jansson.
* NEW: Image: 'PaintImage()' and 'DrawImage()' now use the new stretching algorithm to automatically scale the image to a destination rectangle.
* NEW: Image: Define the '__Deprecated' constant with the list of deprecated methods.
* OPT: Faster conversion to premultiplied PRGB or PBGR.
* BUG: Implement conversion to and from premultiplied RGBP or BGRP.
* BUG: Image composition handle all image formats, and correctly.

- - - - -


11 changed files:

- main/lib/image/CImage.c
- main/lib/image/Makefile.am
- main/lib/image/gb.image.h
- main/lib/image/image.c
- main/lib/image/image.h
- + main/lib/image/smolscale-COPYING
- + main/lib/image/smolscale-COPYING.BSD-4
- + main/lib/image/smolscale-generic.c
- + main/lib/image/smolscale-private.h
- + main/lib/image/smolscale.c
- + main/lib/image/smolscale.h


View it on GitLab: https://gitlab.com/gambas/gambas/-/commit/8862f1b2b76c198c28def7c52dc0aa4134a6b384

-- 
View it on GitLab: https://gitlab.com/gambas/gambas/-/commit/8862f1b2b76c198c28def7c52dc0aa4134a6b384
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help