T O P I C R E V I E W |
sr1111 |
Posted - Sep 07 2013 : 02:19:43 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 |
5 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Sep 08 2013 : 12:34:23 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
|
sr1111 |
Posted - Sep 07 2013 : 04:03:05 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 |
xequte |
Posted - Sep 07 2013 : 03:37:16 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
|
sr1111 |
Posted - Sep 07 2013 : 03:23:40 I used this parameter r1.io.bitmap.Canvas.FrameRect(rc);

sr |
xequte |
Posted - Sep 07 2013 : 03:05:24 Hi
Please attach an example image of what you are trying to remove.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|