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
 Three ways to mark an area of the image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

xequte

38182 Posts

Posted - Jun 13 2018 :  23:49:02  Show Profile  Reply
// Three ways to mark an area of the image with a red box...

myRect := Rect( x, y, x + width, y + height );

// Draw onto bitmap
with ImageEnView1.IEBitmap.Canvas do
begin
  Pen.Color := clRed;
  Pen.Width := 4;
  Brush.Style := bsClear;
  Rectangle( myRect );
end;

// Use rectangle shape layer
ImageEnView1.LayersClear( False );
...
ImageEnView1.LayersAdd( iesRectangle, myRect, clRed, 4 );


// Use TImageEnVect Box Object
ImageEnVect1.RemoveAllObjects();
...
ImageEnVect1.ObjPenWidth[-1] := 4;
ImageEnVect1.AddNewObject(iekBOX, myRect, clRed);


Nigel
Xequte Software
www.imageen.com
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: