Author: Carlos Lopez <[email protected]>
Date: Tue Jun 5 19:40:53 2012 +0200
Surface: New CairoColorPrep class for cook and uncook operations.
---
synfig-core/src/synfig/surface.h | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/synfig-core/src/synfig/surface.h b/synfig-core/src/synfig/surface.h
index 265d8d7..875385a 100644
--- a/synfig-core/src/synfig/surface.h
+++ b/synfig-core/src/synfig/surface.h
@@ -68,6 +68,19 @@ public:
}
};
+class CairoColorPrep
+{
+public:
+ CairoColor cook(CairoColor x)const
+ {
+ return x.premult_alpha();
+ }
+ CairoColor uncook(CairoColor x)const
+ {
+ return x.demult_alpha();
+ }
+};
+
/*! \class Surface
** \brief Bitmap Surface
** \todo writeme
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl