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
 FrameRect delete
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sr1111

3 Posts

Posted - Sep 07 2013 :  02:19:43  Show Profile  Reply
hi
could you help me for imagenview command,
I have multiple rectangle (FrameRect) in the r1.io.bitmap
how can I remove all rectangle;

sr

xequte

39067 Posts

Posted - Sep 07 2013 :  03:05:24  Show Profile  Reply
Hi

Please attach an example image of what you are trying to remove.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sr1111

3 Posts

Posted - Sep 07 2013 :  03:23:40  Show Profile  Reply
I used this parameter
r1.io.bitmap.Canvas.FrameRect(rc);





sr
Go to Top of Page

xequte

39067 Posts

Posted - Sep 07 2013 :  03:37:16  Show Profile  Reply
Sorry I may not be following, but if you have the original image, prior to your adding rects, why not just reload/assign it?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sr1111

3 Posts

Posted - Sep 07 2013 :  04:03:05  Show Profile  Reply
richedit1SelectionChange(Sender: TObject);
r1.io.bitmap.Canvas.Pen.Width := 5;
r1.io.bitmap.Canvas.Brush.Color := $007EEE;
r1.io.bitmap.Canvas.Pen.Style := pssolid;
r1.io.bitmap.Canvas.FrameRect(rc);


I have two problems
1-I do not reload, big images problem because for richedit1SelectionChange(Sender: TObject);
is there a way deselect or fast reload

2- Pen.Width := 5; 10,15,25, not change, always the same
how can I change pen with



sr
Go to Top of Page

xequte

39067 Posts

Posted - Sep 08 2013 :  12:34:23  Show Profile  Reply
Hi

1. What this purpose of the code? Perhaps you should use a TImageEnVect instead of a TImageEnView, then you can iterate through each of the rectange objects and remove them.

2. TCanvas.FrameRect uses the brush for the boundary not the Pen:

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Graphics_TCanvas_FrameRect.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: