Add support for premultiplied alpha. Patch by Charles Nicholson.

This commit is contained in:
castano
2008-03-07 00:41:03 +00:00
parent 6b933c4f62
commit 307c8b99ee
6 changed files with 53 additions and 2 deletions

View File

@ -118,6 +118,8 @@ void InputOptions::reset()
m.maxExtent = 0;
m.roundMode = RoundMode_None;
m.premultiplyAlpha = false;
}
@ -329,6 +331,10 @@ void InputOptions::setRoundMode(RoundMode mode)
m.roundMode = mode;
}
void InputOptions::setPremultiplyAlpha(bool b)
{
m.premultiplyAlpha = b;
}
void InputOptions::Private::computeTargetExtents() const
{