>I need to know the size, in bytes, of System.Drawing.Color.
Color is basically defined like this
[StructLayout(LayoutKind.Explicit)]
struct Color
{
[FieldOffset(0)] long value;
[FieldOffset(8)] short knownColor;
[FieldOffset(10)] short state;
[FieldOffset(12)] string name;
}
So it should be 16 bytes on 32-bit systems, 20 bytes on 64-bit.
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ |
http://www.dotnetinterop.com
Please reply only to the newsgroup.