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
 [IEvolution] Set Font Size on Annotations

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
newinf Posted - Jul 14 2011 : 03:16:32
Hi, i have this problem with IEvolution and Annotations.

How can i set the font size on annotations?. This is the scenary:

If i use the FontHeight property for setting the annotation font size, when i show the TIFF with another viewer (for example with internet explorer) and when i zoom in or zoom out, the annotation font size text is alwais the same (very small) and not changing.

But if i not use FontHeight property, text is written with a default size and when i show the TIFF with another viewer and when i zoom in or zoom out, the annotation size text changes proportionaly too. I would like this behavior but i need can specify my own font size (not the default size).

Note that this happend only in other viewer because if i use IEViewer this works. I can use FontHeight property and when i zoom in / zoom out, the annotations font size changes proportionaly to image size.

How can i solve this?. Thanks in advance.
11   L A T E S T    R E P L I E S    (Newest First)
newinf Posted - Jul 18 2011 : 23:47:17
Hi Fabrizio,

I tried again today and seems it works. I donīt know why it not worked for me yesterday. The solution are negative integer values for FontHeight property.

Please, accept my excuses. Thanks a lot.
fab Posted - Jul 18 2011 : 12:29:02
I sent a private email with the result setting font height = -32. It seems ok reading the image with XP preview.

I am not sure that Windows 7 preview (and MS Paint) can read wang annotations.
newinf Posted - Jul 18 2011 : 08:27:04
Continuing researching...

The external viewer I am using isn't IExplorer. I am using the default viewer for images in Windows XP named Image Viewer and Window's Fax (moreless). With this viewer i can see annotations but if y try to open the TIFF with other viewers (like MS Paint or MS Office Document Imagin) i can't see the annotations. Also, i just see that on Windows 7 Fax image and fax viewer not show the annotations.

Independent of this, i need the correct font sizes. I tried with negative values and not works. I obtain identical results.

I recommend you to try replicate the problem. Is very easy. Only use the annotations project included in IEvolution samples. Add one code line to set the font-size, compile and run. Then open any TIFF file and add to it a memo annotation and save the document. Then see the result. Close and open the TIFF with the windows default image fax viewer and you can compare the font sizes are very differents and you can appreciate that in windows viewer not changin font size when yo zoom in/out.



fab Posted - Jul 18 2011 : 07:38:35
Please try to set the font height as negative value. So instead of:

FontHeight = 32

try

FontHeight = -32
newinf Posted - Jul 18 2011 : 07:26:06
Fabrizio, i just send to the support email two captures with the comparisons specified on the last post.

Can you appreciate the differences?.

Thanks.
newinf Posted - Jul 18 2011 : 06:56:45
There are two annotation objects (a box and a memo annotation inside it) on each TIFF image.

Please, compare the two images when doing zoom and found the font text size diferences. When you zooming on notworks.tiff the font sizes is always the same and will must change (compare the size of margins between the box object and text).

Also, you can try to open notworks.tiff with a IEViewer (for example, use the annotations project include in IEvolution samples) and zoom again the image. You appreciate the differences in annotations. Here you can see with the correct Font size text.

Note that the box size objects is right. Only fail the font size on external viewers. It must be much higher and will must be changing with zoom proportionally.
fab Posted - Jul 18 2011 : 04:29:43
The annotation inside the noworks.tiff is zoomed.
newinf Posted - Jul 18 2011 : 03:38:30
I just sent you TIFF files to support email.
fab Posted - Jul 18 2011 : 00:31:15
Hi,
unfortunately I cannot replicate.
Please send the TIFF file to the support email.
newinf Posted - Jul 17 2011 : 23:43:24
Fabrizio, i can't attach a TIFF file. Only BMP, JPG, ... files are supported by this webmail.

This problem happends with all TIFF file images. You can use your own TIFF image and attach an annotation. You can use the IEvolution's annotation sample proyect and only set the property FontHeight (for example, to value "25"). Only you have to add one line of code to do this.

After this, if you show the TIFF witn IEViewer and zoom in/out the document the annotation's font size changes proportionaly to Annotation size. But if you use an external viewer (like IExplorer) when zoom in/out the document the annotation's font size no changes (always the same size) and size is too small.

Resume: If you do not specify the FontHeight property. It works but you can't change your desired size. Only default size. But if you specify the FontHeight, not works when you view the document with external viewers (i tried only with IExplorer 7).

I am using IEVolution2.dll on VS2008 project.

I am waiting for your words. Thanks a lot Fabrizio.
fab Posted - Jul 15 2011 : 09:55:24
Hi,
please could you post a sample of the TIFF file you have created and the code you used?