mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
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:
parent
ad265b2c54
commit
8d458998a1
332 changed files with 17647 additions and 9466 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue