Author |
Topic  |
|
klausdoege
  
Germany
389 Posts |
Posted - Nov 26 2011 : 14:37:40
|
Hello Fabrizio, I use ImageEnVect1.CopyObjectToBack in my Program. Everything ran until version 4.0.1 well, but this works since 4.0.2 no longer. After ImageEnVect1.CopyObjectsToBack, nothing happens, no object is inserted. I send you an example per eMail.
Klaus |
|
klausdoege
  
Germany
389 Posts |
Posted - Nov 26 2011 : 15:07:41
|
I think the problem is in TImageEnVect.DrawObjects(BackGroundBitmap:TIEBitmap; re:boolean; BBitmap:TBitmap; antialias:boolean; OnlyThis:integer; layer:integer,; Layer is new, maybe here is somewhat forgotten?
Klaus |
 |
|
fab
   
1310 Posts |
Posted - Nov 27 2011 : 02:17:14
|
Hello, I've just sent (to your private email) a developing version that should fix this problem. |
 |
|
AndyColmes
  
USA
351 Posts |
Posted - Nov 28 2011 : 01:18:02
|
Hi Fabrizio, any chance to get this dev version for me as well? Thanks. |
 |
|
jfgreco
USA
2 Posts |
Posted - Jan 03 2012 : 10:04:54
|
We have run across this issue as well. Could it be provided to all. Or a new build released? |
 |
|
fab
   
1310 Posts |
Posted - Jan 03 2012 : 11:01:33
|
At the moment there is available only the 4.1 beta which fixes this bug. |
 |
|
giannidipie

11 Posts |
Posted - Jan 27 2012 : 03:47:49
|
Hi Fabrizo, ImageEnVect1.CopyObjectsToBack does not works correctly. Is there an other way to copy objects in a IEbitmap? |
 |
|
fab
   
1310 Posts |
Posted - Jan 27 2012 : 04:46:55
|
quote: Hi Fabrizo, ImageEnVect1.CopyObjectsToBack does not works correctly. Is there an other way to copy objects in a IEbitmap?
It is possible to make CopyObjectsToBack to work just setting:
ImageEnVect1.ObjAnchorToLayers := false;
Of course this draw all layers on layer 0. |
 |
|
giannidipie

11 Posts |
Posted - Jan 27 2012 : 08:44:01
|
it just works. thank you |
 |
|
HelenUrban
South Africa
6 Posts |
Posted - Jan 31 2012 : 00:47:34
|
Hi I am coding in C++ builder and getting the same problem with CopyObjectsToBack on version ImageEn_4.0.2. Where can I get the fix?
Helen Urban |
 |
|
fab
   
1310 Posts |
Posted - Jan 31 2012 : 02:09:31
|
quote: Hi I am coding in C++ builder and getting the same problem with CopyObjectsToBack on version ImageEn_4.0.2. Where can I get the fix?
The fix will be available with version 4.1. In the meaning time just set:
ImageEnVect1->ObjAnchorToLayers = false; |
 |
|
HelenUrban
South Africa
6 Posts |
Posted - Feb 02 2012 : 00:39:52
|
AnchorToLayers is also giving me a problem. Perhaps I am using it worng:
ImageEnVect1->ObjKind[-1] = iekTEXT; ImageEnVect1->ObjText[-1] = "my test text to burn"; ImageEnVect1->ObjLeft[-1] = 50; ImageEnVect1->ObjTop[-1] = 50; ImageEnVect1->ObjWidth[-1] = 300; ImageEnVect1->ObjHeight[-1] = 100; ImageEnVect1->ObjTextAutoSize[-1] = true; ImageEnVect1->ObjPenColor[-1] = clBlack; ImageEnVect1->ObjBrushColor[-1] = clBlack; ImageEnVect1->ObjBrushStyle[-1] = bsClear; ImageEnVect1->ObjPenStyle[-1] = psClear; ImageEnVect1->SetObjFont(-1,tmpFont);
ImageEnVect1->AddNewObject();
if (SaveImageEnDialog1->Execute()) { ImageEnVect1->Proc->SaveUndo(); //ImageEnVect1->CopyObjectToBack(-2,true); ImageEnVect1->ObjAnchorToLayers = false; ImageEnVect1->IO->SaveToFile(SaveImageEnDialog1->FileName); ImageEnVect1->Proc->Undo(); }
Helen Urban |
 |
|
fab
   
1310 Posts |
Posted - Feb 02 2012 : 02:22:28
|
This setting...
ImageEnVect1->ObjAnchorToLayers = false;
...must precede CopyObjectToBack (or CopyObjectsToBack). |
 |
|
HelenUrban
South Africa
6 Posts |
Posted - Feb 02 2012 : 02:42:11
|
Thanks Fabrizio. All works.
Helen Urban |
 |
|
|
Topic  |
|