Archive Browser
Download ColorDistanceDemonstration.zip, last updated 06/01/2017 (17.99 KB)
Download- md5: ed252649e2f394f1c4407629e53fbca8
- sha1: b112562ad8a80779f6359b7902e84ac8f9c75f02
- sha256: a791f5e43926bedbf9ba25606cf7d325046c708ca7f86e2f918d31c34b9ef613
using System;
using System.Runtime.InteropServices;
/* Finding nearest colors using Euclidean distance
* http://www.cyotek.com/blog/finding-nearest-colors-using-euclidean-distance
*
* Copyright © 2017 Cyotek Ltd.
*/
// ReSharper disable InconsistentNaming
namespace Cyotek.ColorDistanceDemonstration
{
internal static class NativeMethods
{
#region Externals
[DllImport("user32.dll")]
public static extern bool DrawFocusRect(IntPtr hDC, [In] ref RECT lprc);
#endregion
#region Nested type: RECT
[StructLayout(LayoutKind.Sequential)]
public struct RECT
{
public int left;
public int top;
public int right;
public int bottom;
public RECT(int left, int top, int right, int bottom)
{
this.left = left;
this.top = top;
this.right = right;
this.bottom = bottom;
}
}
#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