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 : Tuesday, September 25, 2007 10:21:40 PM(UTC)

manju  
manju

Groups: Registered
Posts: 49


Hi,

I am using AnnImage object to insert image on base image through AnnAutomation object by using that I got control points and rotate gripper to inserted image,is there any way to display that inserted image with specific dimensions with rotate gripper and resize control points on base image instead of dragging image on Base image.Is there any way to handle mouse events of automations objects while dragging those automations on Base image.Please reply soon.

Thanks
Manju
 

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 : Thursday, September 27, 2007 2:55:55 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Do you mean that you want to show and specify the location of the AnnImage object on the base image while dragging it?

Can you please provide me with more details about your requirements?
 
#3 Posted : Thursday, September 27, 2007 3:22:30 AM(UTC)

manju  
manju

Groups: Registered
Posts: 49


I want to disply another image on a Base image using AnnImageObject with specific dimensions, rotate gripper and resize control points on formload event without dragging a mouse on a image viewer.Please reply soon.


Thanks
manju
 
#4 Posted : Sunday, September 30, 2007 4:47:29 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Manju,



You can use the Stamp object to hold an image like this:
























private void DrawImageAnn(AnnContainer myContainer)
{
   AnnStampObject img = new AnnStampObject();
   AnnPicture pic = new AnnPicture(Image.FromFile(@"D:\me.JPG"));
   pic.TransparentMode = AnnPictureTransparentMode.None;
   pic.TransparentColor = Color.Black;
   img.Picture = pic;
   img.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel);
   AnnotationsForm activeForm = ActiveAnnotationsForm;
   myContainer.Objects.Add(img);
   // must refresh the control now
}

 
#5 Posted : Wednesday, October 3, 2007 9:59:47 PM(UTC)

manju  
manju

Groups: Registered
Posts: 49




I have tried this code but I am not getting results will you please provide me a simple sample project that will help me ,please find the attached demo image I want the view as shown in image when I click on insert image button without mouse drag.
Please reply soon.

Thanks
Manju

manju attached the following image(s):
demo.JPG
 
#6 Posted : Sunday, October 7, 2007 3:38:24 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Manju,



The code
I sent you was added to the C# AutomationDemo sample code. I am attaching the full project so you can check it.


You can find the code sample I sent you in the "File" menu "Draw Annotation" item.
File Attachment(s):
AutomationDemo.zip (157kb) downloaded 24 time(s).
 
#7 Posted : Tuesday, October 9, 2007 1:33:20 AM(UTC)

manju  
manju

Groups: Registered
Posts: 49


Hi,


Thanks for early reply it works fine but if i take AnnImageObject instead of AnnStampObject it will not work,how should I use that also how should I set my context menu instead of default context menu when right click on stamp object.Please reply soon.


Thanks
Manju
 
#8 Posted : Wednesday, October 10, 2007 2:36:35 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Manju,

You can
not use the AnnImageObject because it does not contain control points or rotate gripper. You will need to use the AnnStampObject.



About the context menu, please see this post for some information about it:
http://support.leadtools.com/SupportPortal/cs/forums/15744/ShowPost.aspx

 
#9 Posted : Wednesday, October 24, 2007 3:38:21 AM(UTC)

manju  
manju

Groups: Registered
Posts: 49


Hi,

Is there any way to trace resize event or mouse events of stamp object.Is there any way to restrict stamp object to resize through corner points only.Please reply soon.


Thanks
manju
 
#10 Posted : Sunday, October 28, 2007 6:53:07 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Manju,

You can
handle the mouse events of the RasterImageViewer control, and detect using hit
testing if the object being changed is a stamp object or not. You can then determine whether to pass the event to the Ann mouse handlers or not.


For an
example, please see the "AnnDesigner Class" topic on our .NET help file.

 
#11 Posted : Thursday, November 1, 2007 12:10:05 AM(UTC)

manju  
manju

Groups: Registered
Posts: 49


Hi,
The sample application you have given is working fine but when I click on "Draw Annotation" it will add annotation but it is not selected by default how should I do that or is there any way to select specific annotation from those which are drawn on image.

Thanks
manju
 
#12 Posted : Sunday, November 4, 2007 6:07:32 AM(UTC)

Adnan Ismail  
Guest

Groups: Guests
Posts: 3,022

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

Manju,



You can change the currently selected object programmatically by calling the AnnAutomation.StartEditing Method.

 
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.111 seconds.