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
 After CopyObjectsToBack an annotation disappears
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rlange

Germany
26 Posts

Posted - Apr 26 2013 :  04:46:09  Show Profile  Reply
Steps to reproduce:

1. Open the attached TIFF file with TImageENVect
2. Place a text marker annotation (taken from demo program Annotations.dproj)

ImageEnVect1.MouseInteractVt := [miPutBox];
ImageEnVect1.ObjBoxHighlight[-1] := true;
ImageEnVect1.ObjBrushColor[-1] := clYellow;
ImageEnVect1.ObjBrushStyle[-1] := bsSolid;

3. Burn in the annotation with CopyObjectsToBack

ImageEnVect1.CopyObjectsToBack(true);
ImageEnVect1.RemoveAllObjects;

Now the PutBox is not visible any more.

What is the reason?
The TIFF file is fully colored (PixelFormat ie24RGB) and LZW compressed.

Here is the TIFF file (zipped):
http://www.imageen.com/ieforum/attach/rlange/201342643849_test1.zip

w2m

USA
1990 Posts

Posted - Apr 26 2013 :  07:54:31  Show Profile  Reply
ObjBoxHighlight creates an object with alpha = 0 so when you CopyObjectsToBack with a 32-bit image with alphachannel the box is invisible. If you change the pixelformat of the image to 24-bit the box will be visible. To make the ObjBoxHighlight visible with 32-bit use ImageEnVect1.CopyObjectsToBack(False, False, False);

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

rlange

Germany
26 Posts

Posted - Apr 29 2013 :  06:01:32  Show Profile  Reply
Thank you!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: