mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
Added alpha-blending to the Quantizer, otherwise the colors would be counted wrong and look like sh*t.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2509 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
e5ee2c3711
commit
565bf262db
2 changed files with 35 additions and 6 deletions
|
@ -138,6 +138,17 @@ namespace GreenshotPlugin.Core {
|
|||
bool Contains(int x, int y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This interface is implemented when there is a alpha-blending possibility
|
||||
/// </summary>
|
||||
public interface IFastBitmapWithBlend : IFastBitmap {
|
||||
Color BackgroundBlendColor {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
Color GetBlendedColorAt(int x, int y);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The base class for the fast bitmap implementation
|
||||
/// </summary>
|
||||
|
@ -659,7 +670,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// <summary>
|
||||
/// This is the implementation of the IFastBitmap for 32 bit images with Alpha
|
||||
/// </summary>
|
||||
public unsafe class Fast32ARGBBitmap : FastBitmap {
|
||||
public unsafe class Fast32ARGBBitmap : FastBitmap, IFastBitmapWithBlend {
|
||||
public override bool hasAlphaChannel {
|
||||
get {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue