mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Added WMCreateBlendedPixmapFromRImage()
This commit is contained in:
@@ -28,6 +28,7 @@ Changes since wmaker 0.64.0:
|
|||||||
- replaced bags with arrays wherever appropriate. This will improve
|
- replaced bags with arrays wherever appropriate. This will improve
|
||||||
performance a bit.
|
performance a bit.
|
||||||
- replaced some recursive code with iterative code in selection.c
|
- replaced some recursive code with iterative code in selection.c
|
||||||
|
- added WMCreateBlendedPixmapFromRImage()
|
||||||
|
|
||||||
|
|
||||||
changes since wmaker 0.63.1:
|
changes since wmaker 0.63.1:
|
||||||
|
|||||||
@@ -737,6 +737,9 @@ WMSize WMGetPixmapSize(WMPixmap *pixmap);
|
|||||||
|
|
||||||
WMPixmap *WMCreatePixmapFromFile(WMScreen *scrPtr, char *fileName);
|
WMPixmap *WMCreatePixmapFromFile(WMScreen *scrPtr, char *fileName);
|
||||||
|
|
||||||
|
WMPixmap* WMCreateBlendedPixmapFromRImage(WMScreen *scrPtr, RImage *image,
|
||||||
|
RColor *color);
|
||||||
|
|
||||||
WMPixmap *WMCreateBlendedPixmapFromFile(WMScreen *scrPtr, char *fileName,
|
WMPixmap *WMCreateBlendedPixmapFromFile(WMScreen *scrPtr, char *fileName,
|
||||||
RColor *color);
|
RColor *color);
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,21 @@ WMCreatePixmapFromRImage(WMScreen *scrPtr, RImage *image, int threshold)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WMPixmap*
|
||||||
|
WMCreateBlendedPixmapFromRImage(WMScreen *scrPtr, RImage *image, RColor *color)
|
||||||
|
{
|
||||||
|
WMPixmap *pixPtr;
|
||||||
|
RImage *copy;
|
||||||
|
|
||||||
|
copy = RCloneImage(image);
|
||||||
|
RCombineImageWithColor(copy, color);
|
||||||
|
pixPtr = WMCreatePixmapFromRImage(scrPtr, copy, 0);
|
||||||
|
RDestroyImage(copy);
|
||||||
|
|
||||||
|
return pixPtr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
WMPixmap*
|
WMPixmap*
|
||||||
WMCreateBlendedPixmapFromFile(WMScreen *scrPtr, char *fileName, RColor *color)
|
WMCreateBlendedPixmapFromFile(WMScreen *scrPtr, char *fileName, RColor *color)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user