Moving back to trunk!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-01-24 19:24:36 +00:00
commit 8d458998a1
332 changed files with 17647 additions and 9466 deletions

View file

@ -22,11 +22,8 @@ using System;
using System.Collections.Generic;
using System.Drawing;
namespace Greenshot.Helpers
{
public class Colors {
private Colors() {}
namespace Greenshot.Helpers {
public static class Colors {
public static bool IsVisible(Color c) {
return c != null && !c.Equals(Color.Empty) && !c.Equals(Color.Transparent) && c.A > 0;
}
@ -37,8 +34,8 @@ namespace Greenshot.Helpers
int g = 0;
int b = 0;
int count = 0;
foreach(Color color in colors) {
if(!color.Equals(Color.Empty)) {
foreach (Color color in colors) {
if (!color.Equals(Color.Empty)) {
a += color.A;
r += color.R;
g += color.G;