ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

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

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Drawing 30 Rectangles on a Bitonal TIFF Image using IEvolution
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

brandonbrown

USA
37 Posts

Posted - Dec 17 2021 :  07:27:50  Show Profile  Reply
I am developing an app that is for viewing the return data from OCR'd fields on a bitonal TIFF image.

What I really need to do is to add 30 areas on this form, rectangles around the fields that were read for verification.

I am not sure if Annotations are what you should use, or Layers with rectangles drawn on them, or really if this how you would do this at all.

Any recommendations on what part of the toolkit to use? I didn't really want to convert it to a Windows Bitmap and write all of that additional code.

Sample is attached.

Any commentary is welcomed before I start this part of the project off!

Thoughts?

Download Attachment: 2021121772632_SINGLE1.TIF

xequte

38854 Posts

Posted - Dec 18 2021 :  21:51:45  Show Profile  Reply
Hi Brandon

Why not just add shape layers?

You can add the layer to a IEViewer using LayersAdd(1):

https://www.imageen.com/ievolutionhelp/html/c46197c9-b2cb-e55a-3136-823005478089.htm

And set the shape as rectangle using IEShapeLayer.Shape = 4

https://www.imageen.com/ievolutionhelp/html/86a17422-c493-473e-54c6-c3146271e93d.htm

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

brandonbrown

USA
37 Posts

Posted - Dec 20 2021 :  11:18:06  Show Profile  Reply
Thanks Nigel! I got my first layer loaded as an image. Is there an example piece of code for laying a Shape, rectangle in the layer?
Go to Top of Page

brandonbrown

USA
37 Posts

Posted - Dec 20 2021 :  11:33:37  Show Profile  Reply
I think I figured it out, thanks for getting me on the right path!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: