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
 Big file, text annotation and combining with backg
 New Topic  Reply to Topic
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

graphman

259 Posts

Posted - May 29 2012 :  04:57:16  Show Profile  Reply
When I use annotations I can create a text or memo annotation but when I make this permanent (combine with background) the text disappears.

There is this problem with big fuiles only.


How to fix it?

fab

1310 Posts

Posted - May 29 2012 :  05:47:24  Show Profile  Reply
Please could you show me the code you are using in order to create the text and to combine with background? Also, which ImageEn version have you?
Go to Top of Page

graphman

259 Posts

Posted - May 29 2012 :  06:14:12  Show Profile  Reply
Create:
ImageEnView1->MouseInteractVt = ImageEnView1->MouseInteractVt << miPutText;

Combine:
ImageEnView1->CopyObjectToBack(obj, ObjAntialising);

Version:
3.1.2
Go to Top of Page

fab

1310 Posts

Posted - May 29 2012 :  06:32:58  Show Profile  Reply
Only version 4.1.0 has a known bug about CopyObjectsToBack, hence it should works.
Anyway version 3.1.2 is no more supported.
Go to Top of Page

graphman

259 Posts

Posted - May 29 2012 :  11:34:25  Show Profile  Reply
> Only version 4.1.0 has a known bug about CopyObjectsToBack

Please inform me about this bug.
Whether has sense to update the version if last version has the same problem?
Go to Top of Page

fab

1310 Posts

Posted - May 29 2012 :  12:47:23  Show Profile  Reply
I cannot replicate this bug with last version (anyway also 3.1.2 should not have this bug...). Repeat, only 4.1.0 has this bug.

Please let me know the exact size (in pixels) and color depth of your image.
Go to Top of Page

graphman

259 Posts

Posted - May 29 2012 :  13:07:49  Show Profile  Reply
problems - with big black-and-white images

workaround - to convert to 24 bit, combine with background, convert to BW

Allows new version to do combining for big BW files without converting to 24 bit?
Go to Top of Page

fab

1310 Posts

Posted - May 31 2012 :  14:22:31  Show Profile  Reply
You should not need it. Since version 2.1.9 this is done automatically.
Go to Top of Page

graphman

259 Posts

Posted - Jun 01 2012 :  00:46:13  Show Profile  Reply
I have 3.1.2 version and there is this problem.

Go to Top of Page

graphman

259 Posts

Posted - Jun 01 2012 :  00:52:02  Show Profile  Reply
and
ImageEnView1->LegacyBitmap = false;
Go to Top of Page

fab

1310 Posts

Posted - Jun 01 2012 :  03:30:56  Show Profile  Reply
LegacyBitmap must be true. This is the reason: in order to draw (rasterize) objects, ImageEn requires a canvas (TCanvas). It is available only when legacybitmap is false (that means: "use TBitmap").
Go to Top of Page

graphman

259 Posts

Posted - Jun 01 2012 :  04:31:52  Show Profile  Reply
I need ImageEnView1->LegacyBitmap = false
How to do in this case?
Go to Top of Page

fab

1310 Posts

Posted - Jun 02 2012 :  00:24:37  Show Profile  Reply
You could set it just before CopyObjectsToBack() then restore to LegacyBitmap=false. No other way is possible.
Go to Top of Page

graphman

259 Posts

Posted - Jun 02 2012 :  02:49:26  Show Profile  Reply
thanks.

What functions required
LegacyBitmap=true
too?
Go to Top of Page

fab

1310 Posts

Posted - Jun 02 2012 :  04:54:52  Show Profile  Reply
I mean:
ImageEnVect1.LegacyBitmap := true;
ImageEnVect1.CopyObjectsToBack();
ImageEnVect1.LegacyBitmap := false;
Go to Top of Page

graphman

259 Posts

Posted - Jun 03 2012 :  05:16:22  Show Profile  Reply
Thanks

What other functions (except CopyObjectsToBack)
demand
LegacyBitmap=true
?
Go to Top of Page

graphman

259 Posts

Posted - Jun 03 2012 :  16:59:24  Show Profile  Reply
I'm sorry but it's not working.

Can you test with my file?
Send me please your e-mail address.
Go to Top of Page

fab

1310 Posts

Posted - Jun 05 2012 :  04:39:15  Show Profile  Reply
Please send the file to the support (please consider that tests are done using last version, not 3.1.2).
Anyway, here is the code I am using to make these tests:

imageenvect1.LegacyBitmap := true;
imageenvect1.IEBitmap.Allocate(1500, 500, ie1g); // create a BW image or load your own
imageenvect1.CopyObjectsToBack();
imageenvect1.RemoveAllObjects();
imageenvect1.LegacyBitmap := false;
Go to Top of Page

graphman

259 Posts

Posted - Jun 06 2012 :  04:39:22  Show Profile  Reply
> Please send the file to the support (please consider that tests are done using last version, not 3.1.2).

Please inform me about e-mail address.


> imageenvect1.IEBitmap.Allocate(1500, 500, ie1g); // create a BW image or load your own

Do I need to use this command if image is loaded already.
LoadFromFile();
Go to Top of Page

graphman

259 Posts

Posted - Jun 06 2012 :  04:43:06  Show Profile  Reply
in the help file I see "LegacyBitmap := False;"

Allocate prepares space for an image with ImageWidth and ImageHeight sizes.
When TIEBitmap is connected to TImageEnView, make sure that LegacyBitmap is False before set pixel formats other than ie1g and ie24RGB.
Returns true on successful.


Example

ImageEnView1.LegacyBitmap := False;
ImageEnView1.IEBitmap.Allocate(1000, 1000, ieCMYK);
Go to Top of Page

fab

1310 Posts

Posted - Jun 06 2012 :  06:26:55  Show Profile  Reply
I don't think this is related to a specific image, anyway please look at the bottom of http://www.ImageEn.com/contact/contact.html (you can also click on "support" on top of this page, then "contact us").

quote:
> imageenvect1.IEBitmap.Allocate(1500, 500, ie1g); // create a BW image or load your own

Do I need to use this command if image is loaded already.
LoadFromFile();


No, it was just to show you that it works with black/white images. You can replace Allocate with LoadFromFile.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
Jump To: