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
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
0
Best Answers
-
Matt,
You would have to use ThisApplication.Activeimage.QuickType which is a mcImageQuickTypes value.
Pierre0 -
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.
Pierre0
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
0 -
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
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions