Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, November 29, 2006 1:09:35 PM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


I need to convert an annotation like line, polyline or rectangle in one bit bitmap on a white background and then apply a blended image. Analyzing the problem I suppose to have this steps:

1) Draw the annotation (ok no problem)
2) Create a bitmap of the dimension of the boundingrectangle of the annotation and fill it with the desidered color (ok no problem)
3) Transform annotation in the bitmap and past in the image created at point 2. (how can I do?)
4) Combine image at point 3 with another image and apply a blend effect. (ok no problem)

Is this the right way? If yes, how can do the point 3?

I'm using LT14.5 with VB.NET.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, November 29, 2006 11:35:59 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You need to crate the same annotation object on the image created at point 2, and then burn it.
The details depend on the programming interface that you use.

For example, if you are using LEADTOOLS .Net programming interface, and you have AnnLineObject, you can create it on the image created at point 2 by using the .Create Method. Then you can burn the annotation object by using the AnnAutomation.Realize Method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, November 29, 2006 11:40:10 PM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


Hi,
but I don't use AnnAutomatin object, I use manual mode for manage annotation and I can't find a corresponding method to AnnAutomation.Realize, is there?

Thanks!
 
#4 Posted : Thursday, November 30, 2006 2:45:46 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

You can try to realize the annotation object by calling the .Draw method as follows:
----------------------
Object.Draw(RasterImageViewer1.Image.CreateGdiPlusGraphics().Graphics)
----------------------

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#5 Posted : Monday, December 18, 2006 1:08:23 PM(UTC)

marasma  
marasma

Groups: Registered
Posts: 51


Hi,
now it's all right, bur I've the last problem. If I burn the annotations and display the image, the annotations appear smaller then before the burning process, but in the same relative position. See the attached images. Which is the problem?
File Attachment(s):
example.zip (1,204kb) downloaded 33 time(s).
 
#6 Posted : Tuesday, December 19, 2006 2:41:20 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

I investigated about this issue. The Draw method draws the AnnObject on the image using the actual dimensions of the object.
To realize the object as you want, you need to use the AnnAutomation with the Realize Method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.113 seconds.