Author |
Topic  |
graphman
  
259 Posts |
Posted - May 29 2012 : 04:57:16
|
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
|
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? |
 |
|
graphman
  
259 Posts |
Posted - May 29 2012 : 06:14:12
|
Create: ImageEnView1->MouseInteractVt = ImageEnView1->MouseInteractVt << miPutText;
Combine: ImageEnView1->CopyObjectToBack(obj, ObjAntialising);
Version: 3.1.2 |
 |
|
fab
   
1310 Posts |
Posted - May 29 2012 : 06:32:58
|
Only version 4.1.0 has a known bug about CopyObjectsToBack, hence it should works. Anyway version 3.1.2 is no more supported. |
 |
|
graphman
  
259 Posts |
Posted - May 29 2012 : 11:34:25
|
> 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? |
 |
|
fab
   
1310 Posts |
Posted - May 29 2012 : 12:47:23
|
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. |
 |
|
graphman
  
259 Posts |
Posted - May 29 2012 : 13:07:49
|
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? |
 |
|
fab
   
1310 Posts |
Posted - May 31 2012 : 14:22:31
|
You should not need it. Since version 2.1.9 this is done automatically. |
 |
|
graphman
  
259 Posts |
Posted - Jun 01 2012 : 00:46:13
|
I have 3.1.2 version and there is this problem.
|
 |
|
graphman
  
259 Posts |
Posted - Jun 01 2012 : 00:52:02
|
and ImageEnView1->LegacyBitmap = false; |
 |
|
fab
   
1310 Posts |
Posted - Jun 01 2012 : 03:30:56
|
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"). |
 |
|
graphman
  
259 Posts |
Posted - Jun 01 2012 : 04:31:52
|
I need ImageEnView1->LegacyBitmap = false How to do in this case? |
 |
|
fab
   
1310 Posts |
Posted - Jun 02 2012 : 00:24:37
|
You could set it just before CopyObjectsToBack() then restore to LegacyBitmap=false. No other way is possible. |
 |
|
graphman
  
259 Posts |
Posted - Jun 02 2012 : 02:49:26
|
thanks.
What functions required LegacyBitmap=true too? |
 |
|
fab
   
1310 Posts |
Posted - Jun 02 2012 : 04:54:52
|
I mean: ImageEnVect1.LegacyBitmap := true; ImageEnVect1.CopyObjectsToBack(); ImageEnVect1.LegacyBitmap := false; |
 |
|
graphman
  
259 Posts |
Posted - Jun 03 2012 : 05:16:22
|
Thanks
What other functions (except CopyObjectsToBack) demand LegacyBitmap=true ?
|
 |
|
graphman
  
259 Posts |
Posted - Jun 03 2012 : 16:59:24
|
I'm sorry but it's not working.
Can you test with my file? Send me please your e-mail address. |
 |
|
fab
   
1310 Posts |
Posted - Jun 05 2012 : 04:39:15
|
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;
|
 |
|
graphman
  
259 Posts |
Posted - Jun 06 2012 : 04:39:22
|
> 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(); |
 |
|
graphman
  
259 Posts |
Posted - Jun 06 2012 : 04:43:06
|
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);
|
 |
|
fab
   
1310 Posts |
Posted - Jun 06 2012 : 06:26:55
|
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. |
 |
|
Topic  |
|