mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Fixed shadow and fixed a problem that alpha-channel bitmaps should NOT be reduced to 8-bit if not forced! (Still need to fix alpha-channel color reduction!) Removed a pre-build "rmdir", this removed the plugins but forces to do a complete rebuild every single time!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2507 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
ec5840550a
commit
c3966923e4
2 changed files with 21 additions and 16 deletions
|
@ -41,7 +41,7 @@ namespace Greenshot.Core {
|
|||
/// </summary>
|
||||
public class DropShadowEffect : IEffect {
|
||||
public DropShadowEffect() {
|
||||
Darkness = 1f;
|
||||
Darkness = 0.6f;
|
||||
ShadowSize = 9;
|
||||
ShadowOffset = new Point(-1, -1);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ namespace Greenshot.Core {
|
|||
set;
|
||||
}
|
||||
public virtual Image Apply(Image sourceImage, out Point offsetChange) {
|
||||
return ImageHelper.CreateShadow(sourceImage, Darkness, ShadowSize, ShadowOffset, out offsetChange, PixelFormat.Format32bppArgb); //Image.PixelFormat);
|
||||
return ImageHelper.CreateShadow(sourceImage, Darkness, ShadowSize, ShadowOffset, out offsetChange, PixelFormat.Format32bppArgb);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue