Group:  Microsoft Word ยป microsoft.public.word.vba.userforms
Thread: interface to mark image coordinates

Geek News

interface to mark image coordinates
Sandeep Thoppil 6/13/2007 5:08:00 AM
Hi
[I posted the same in the word graphics news group later I felt this is the
right place.]

I have req where I prompt the user to browse for an image, which will be
copied to a folder and as the user starts fillin in the word template I need
to provide an interface for the user to select a particular coordinate in
that image.

I am right now using a macro to browse the image and thereafter to create a
folder and add the same into that. The image name will also be there in the
document.

To select a coordinate I am using a form wth image control and use the
mouse down and up event and makes the user to grab the coordinate.

Now I face some issue regarding the actual resolution of the image loaded.
As my imge control is of a fixed size I cannot load the image to the actual
resolution, this will also affect the coordinated plotted by the user.Image
control does not have a scroll bar as to provide a scroll when the image goes
beyond the size of image control.

Could somebody find me a solution for this.

TIA

--
Sandeep Thoppil
Re: interface to mark image coordinates
"Jonathan West" <jwest[ at ]mvps.org> 6/20/2007 9:47:15 PM
Hi Sandeep.

Do a google search for Freeimage.dll. It has a number of routines for
handling image files, including being able to find out the size of an image
in terms of numbers of pixels horizontally and vertically.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

"Sandeep Thoppil" <SandeepThoppil[ at ]discussions.microsoft.com> wrote in
message news:5E722BDF-63E0-4427-8865-E9056CF0DB2E[ at ]microsoft.com...
[Quoted Text]
> Hi
> [I posted the same in the word graphics news group later I felt this is
> the
> right place.]
>
> I have req where I prompt the user to browse for an image, which will be
> copied to a folder and as the user starts fillin in the word template I
> need
> to provide an interface for the user to select a particular coordinate in
> that image.
>
> I am right now using a macro to browse the image and thereafter to create
> a
> folder and add the same into that. The image name will also be there in
> the
> document.
>
> To select a coordinate I am using a form wth image control and use the
> mouse down and up event and makes the user to grab the coordinate.
>
> Now I face some issue regarding the actual resolution of the image loaded.
> As my imge control is of a fixed size I cannot load the image to the
> actual
> resolution, this will also affect the coordinated plotted by the
> user.Image
> control does not have a scroll bar as to provide a scroll when the image
> goes
> beyond the size of image control.
>
> Could somebody find me a solution for this.
>
> TIA
>
> --
> Sandeep Thoppil

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net