Archive Browser
Download AdobeSwatchExchangeLoader-v2.zip version 2.0.0.0, last updated 21/10/2015 (72.79 KB)
Download- md5: 3591debc1f6749c23ad9bbd113dd760a
- sha1: 9b8b0e53179b0b8d04c14324125ae5452df58305
- sha256: 152c5051abec694120031b4b0ed923608627b0081994f99cf6d043cc1663ed20
using System.Drawing;
// Reading Adobe Swatch Exchange (ase) files using C#
// http://www.cyotek.com/blog/reading-adobe-swatch-exchange-ase-files-using-csharp
// Writing Adobe Swatch Exchange (ase) files using C#
// http://www.cyotek.com/blog/writing-adobe-swatch-exchange-ase-files-using-csharp
namespace AdobeSwatchExchangeLoader
{
internal class ColorEntry : Block
{
#region Constructors
public ColorEntry()
{ }
public ColorEntry(Color color)
: this(color.Name, color)
{ }
public ColorEntry(string name, Color color)
: this(name, color.R, color.G, color.B)
{ }
public ColorEntry(byte r, byte g, byte b)
: this(null, r, g, b)
{ }
public ColorEntry(string name, byte r, byte g, byte b)
: this()
{
this.Name = name;
this.R = r;
this.G = g;
this.B = b;
}
#endregion
#region Properties
public byte B { get; set; }
public byte G { get; set; }
public byte R { get; set; }
public ColorType Type { get; set; }
#endregion
#region Methods
public Color ToColor()
{
return Color.FromArgb(this.R, this.G, this.B);
}
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate