//int m_IsHighlighted; //int m_nLineThickness; //UINT m_nLinePattern; Color GetColor(UnsafeNativeMethods.DisplayAttrsColor which) { IntPtr pConstThis = ConstPointer(); int argb = UnsafeNativeMethods.CDisplayPipelineAttributes_GetSetColor(pConstThis, which, false, 0); return(System.Drawing.Color.FromArgb(argb)); }
void SetColor(UnsafeNativeMethods.DisplayAttrsColor which, Color c) { IntPtr pThis = NonConstPointer(); UnsafeNativeMethods.CDisplayPipelineAttributes_GetSetColor(pThis, which, true, c.ToArgb()); }