ImageEn Forum
ImageEn Forum
Profile | Join | Active Topics | Search | Forum FAQ
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn, Image Display and Editing Library
 ImageEn Support and Discussion Forum
 IEvolution - brush and pen color annotations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tkutter

Germany
8 Posts

Posted - May 24 2012 :  06:42:55  Show Profile  Reply
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

fab

1310 Posts

Posted - May 24 2012 :  07:12:57  Show Profile  Reply
Hi,
this is a known problem of current IEvolution version. We are going to release a new version.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: