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
 ImageEnVect1.CopyObjectsToBack()
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Nov 26 2011 :  14:37:40  Show Profile  Reply
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  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Nov 27 2011 :  02:17:14  Show Profile  Reply
Hello,
I've just sent (to your private email) a developing version that should fix this problem.
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Nov 28 2011 :  01:18:02  Show Profile  Reply
Hi Fabrizio, any chance to get this dev version for me as well? Thanks.
Go to Top of Page

jfgreco

USA
2 Posts

Posted - Jan 03 2012 :  10:04:54  Show Profile  Reply
We have run across this issue as well. Could it be provided to all. Or a new build released?
Go to Top of Page

fab

1310 Posts

Posted - Jan 03 2012 :  11:01:33  Show Profile  Reply
At the moment there is available only the 4.1 beta which fixes this bug.
Go to Top of Page

giannidipie

11 Posts

Posted - Jan 27 2012 :  03:47:49  Show Profile  Reply
Hi Fabrizo, ImageEnVect1.CopyObjectsToBack does not works correctly.
Is there an other way to copy objects in a IEbitmap?
Go to Top of Page

fab

1310 Posts

Posted - Jan 27 2012 :  04:46:55  Show Profile  Reply
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.
Go to Top of Page

giannidipie

11 Posts

Posted - Jan 27 2012 :  08:44:01  Show Profile  Reply
it just works.
thank you
Go to Top of Page

HelenUrban

South Africa
6 Posts

Posted - Jan 31 2012 :  00:47:34  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Jan 31 2012 :  02:09:31  Show Profile  Reply
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;
Go to Top of Page

HelenUrban

South Africa
6 Posts

Posted - Feb 02 2012 :  00:39:52  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Feb 02 2012 :  02:22:28  Show Profile  Reply
This setting...

ImageEnVect1->ObjAnchorToLayers = false;

...must precede CopyObjectToBack (or CopyObjectsToBack).
Go to Top of Page

HelenUrban

South Africa
6 Posts

Posted - Feb 02 2012 :  02:42:11  Show Profile  Reply
Thanks Fabrizio. All works.

Helen Urban
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: