ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 After CopyObjectsToBack an annotation disappears

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rlange Posted - Apr 26 2013 : 04:46:09
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
2   L A T E S T    R E P L I E S    (Newest First)
rlange Posted - Apr 29 2013 : 06:01:32
Thank you!
w2m Posted - Apr 26 2013 : 07:54:31
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