Hi,
I use IEvolution 4.0.1 and have a problem. I want to read the brush and pen color of my annotations but an AccessViolationException is thrown. Even in the debugger I can't read the data. Can somebody help my to solve this problem?
...
IEObject obj = m_viewer.Image.Annotations.GetObjectFromIndex(idx);
// every line below throws an AccessViolationException by accessing the Color object
IERGB pColRGB = obj.PenColor;
IERGB bColRGB = obj.BrushColor;
Color pCol = obj.PenColor.Color;
Color bCol = obj.BrushColor.Color;
byte r = obj.PenColor.r;
byte g = obj.PenColor.g;
byte b = obj.PenColor.b;
...
Many thanks in advance