Home Image-Pro Automation (Macros, Apps, Reports)

What Property of ThisApplication.Activeimage or ThisApplication.ActiveDocument matches . . .

All --

If I have an IMAGE A of an unknown TYPE (8 BIT MONO, 24 BIT RGB, etc.) and I want to create a NEW IMAGE B of the SAME TYPE with different WIDTH and HEIGHT, what Property of

    ThisApplication.Activeimage

or

    ThisApplication.ActiveDocument

can be used with

    Adjust.ImageCommands.New.Type

to create IMAGE B?

I've hunted through the HELP FILES but I seem to be chasing my tail in there.

Thanks.

-- Matt

Best Answers

  • Answer ✓
    Matt,

    You would have to use ThisApplication.Activeimage.QuickType which is a mcImageQuickTypes value.

    Pierre
  • Answer ✓
    Matt,

    If you search the documentation for ImageCommands.New and from there go to the Create.Type property you will see that the type is mcImageQuickTypes.Then if you search mcImageQuickTypes the first hit is the McImage.QuickType property.

    Pierre

Answers

  • Pierre --

    Thanks for the guidance on this.

    I'll wire it into my code ASAP.

    Can you please guide me through the HELP FILE PAGES that would have allowed me to find this on my own?

    Thanks again.

    -- Matt
  • Pierre --

    Thanks for the help with the COMMANDS and with the HELP FILE.

    I find it very easy to get lost in the HELP FILES and I find that often the HELP FILE that appears when I select text and press F1 is not the right file and that I hit a lot of dead ends.

    In this case, selecting

        THISAPPLICATION

    in my PROJECT and then pressing F1 opens

        IMAGE-PRO PREMIER AUTOMATION HELP

    and shows

        Image-Pro Premier Automation Help
        ThisApplication Field
        Automation Reference ► MediaCy.IQL.Application ► McApplication ► ThisApplication

    Clicking on

        McApplication

    shows

        Image-Pro Premier Automation Help
        McApplication Class
        Automation Reference ► MediaCy.IQL.Application ► McApplication
        (see SCREEN CAPTURE attached as 2016-05-23-183312.jpg)

    which does not have the

        ActiveImage
        (see SCREEN CAPTURE attached as 2016-05-23-183312.jpg)

    so I seem to have hit a dead end.

    Thanks.

    -- Matt







Sign In or Register to comment.