Sign in to follow this  
Followers 0
Ed_Maximized

Kodak imgedit.ocx control

7 posts in this topic

Hi to all

I don´t know how stupid is this question but I'm new using AutoIt...

I'm traslating a tiff file viewer made in Visual Basic 4 that uses the imgedit.ocx control included with the kodak imaging software available in all windows versions (no XP).

In Visual Basic after creating the control (assume I call it ImgEdit1) I can assign an image using this code:

Form1.ImgEdit1.Image="c:\myimage.tif" ;assuming that myimage.tif is a valid tif image

Then I display the image this way...

Form1.ImgEdit1.display

How I can do the same using AutoIt... I can create the form and the object with koda, but how can I deal with properties and actions in AutoIt?

Thanks in advance for your help and sorry about my english

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I can't test this, as I have Windows XP, but maybe:

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 245, 238, 219, 122, BitOR($WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS))
$ImgEdit1 = ObjCreate("Imaging.EditCtrl.1")
$ActiveX = GUICtrlCreateObj($ImgEdit1, 8, 8, 224, 216)
GUICtrlSetResizing(-1,$GUI_DOCKBORDERS)
GUISetState (@SW_SHOW)

$ImgEdit1.Image="c:\myimage.tif"
$ImgEdit1.display()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Do post the working version once you figure it out.

Edited by lod3n

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Share this post


Link to post
Share on other sites

with this code...

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 245, 238, 219, 122, BitOR($WS_CLIPCHILDREN ,$WS_MINIMIZEBOX,$WS_SIZEBOX,$WS_THICKFRAME,$WS_SYSMENU,$WS_CAPTION,$WS_POPUPWINDOW,$WS_GROUP,$WS_BORDER,$WS_CLIPSIBLINGS))
$ImgEdit1 = ObjCreate("Imaging.EditCtrl.1")
$ActiveX = GUICtrlCreateObj($ImgEdit1, 8, 8, 224, 216)
GUICtrlSetResizing(-1,$GUI_DOCKBORDERS)
GUISetState (@SW_SHOW)

$ImgEdit1.Image="c:\myimage.tif"
$ImgEdit1.display()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

I get this:

prueba.au3 (9) : ==> The requested action with this object has failed.:

I have attached all my files so you can test...

to register the ocx in WinXP you have to exec this

REGSVR32 c:\windows\system\imgocxd.ocx

assuming you have copied the ocx in the c:\windows\system directory

Share this post


Link to post
Share on other sites

Hi all.

I am new for image Annotation.

Currently i have a web based project that having functionality for image annotation, i had search many things but not find appropriate solution.

My question is that what is first step to develop image annotation in asp.net.

Have i to purchase or install kodak image edit control (or other alternative tool if is there than please suggest) or how to start for this ?. i have no any idea about that kodak is licensed version or free. if free than from where i can download it , if not than fro where i can get it.

And also i dont know how to use this type of controls.

So please tell me Step by Step process for use image edit control in asp.net.

It will be very helpful for me if i get some solution from all of you

I hope that some one will reply to this post.

Thanks in advance

Share this post


Link to post
Share on other sites

Hi and welcome, this is the AutoIt forum and i understand from your post that you want support for .NET, maybe someone here knows about that but this is not the forum where you have to ask for .NET things.

Also this thread have almost six years old.

Share this post


Link to post
Share on other sites

Thanks for reply,

Whether the thread is six year old, but any help should be there.

This functionality is first time for me, so please i want some suggestions for this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0