mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 06:14:13 +01:00
wrlib: Improvement in the alpha channel support.
There are some problems in the alpha channel support, as is reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=72917 This patch add a new RCombineAlpha function, based on Gimp. This function is called when needed in the raster.c functions. This patch is based on the Brad Jorsch <anomie@users.sourceforge.net> patch for the 0.62.1-0.1 version. [crmafra: v1 was sent by Rodolfo kix Garcia <kix@kix.es>]
This commit is contained in:
committed by
Carlos R. Mafra
parent
e06b3005e8
commit
3ed409cbd0
@@ -356,6 +356,9 @@ void RCombineAreaWithOpaqueness(RImage *image, RImage *src, int sx, int sy,
|
||||
unsigned width, unsigned height, int dx, int dy,
|
||||
int opaqueness);
|
||||
|
||||
void RCombineAlpha(unsigned char *d, unsigned char *s, int s_has_alpha,
|
||||
int width, int height, int dwi, int swi, int opacity);
|
||||
|
||||
RImage *RScaleImage(RImage *image, unsigned new_width, unsigned new_height);
|
||||
|
||||
RImage *RSmoothScaleImage(RImage *src, unsigned new_width,
|
||||
|
||||
Reference in New Issue
Block a user