Adobe.com
Contents Suites Classes Class Index Member Index

AIColorHarmonySuite Struct Reference
[API Suite List]

These functions allow you to use the three Color Harmony dialogs:. More...

#include <AIColorHarmony.h>

List of all members.

Public Attributes

AIAPI AISwatchGroupRef(* GetCurrentSwatchGroup )(void)
 Retrieves the swatch group for the current document that is currently associated with the Color Harmony dialogs, if any.
AIAPI AIErr(* SetCurrentSwatchGroup )(AISwatchGroupRef swatchGroup)
 Associates the current color scheme with a swatch group, setting the scheme's colors to those in the swatch group.
AIAPI AIErr(* ShowColorGuide )(void)
 Shows the Color Guide palette, displaying the current color scheme.
AIAPI AIBoolean(* IsColorGuideVisible )(void)
 Reports whether the Color Guide palette is currently shown, that is, the palette has been created and the containing dialog is visible.
AIAPI AIErr(* ShowHarmonyDialog )(ASBoolean loadAllDocumentColorGroups)
 Shows the Color Harmony modal dialog with default settings (typically what was last shown).
AIAPI AIErr(* ShowWithColorGroup )(AISwatchGroupRef swatchGroup, ASBoolean forRecolor)
 Shows the Color Harmony modal dialog with a given swatch group loaded as the only color scheme.
AIAPI AIErr(* ShowWithMultipleColorGroups )(int *swatchGroupIndices, int ctSwatchGroups, int makeCurrent, ASBoolean showStorage)
 Shows the Color Harmony modal dialog, loading schemes for specific swatch groups.
AIAPI AIErr(* ShowToTintArt )(const AIColor &tintColor, ASBoolean includeWhite)
 Shows the Color Harmony modal dialog with the Assign panel active, the Recolor Art option checked, all the colors collected into the same bucket (row), and a given color loaded into the new color.
AIAPI AIErr(* ShowToExtractArtColors )(ASBoolean combineTints)
 Shows the Color Harmony modal dialog with the Assign panel active, the Recolor Art option checked, each color from the original art in its own bucket (color row), all the buckets active, and all the new colors set to the same as the original color and loaded into one scheme.
AIAPI AIErr(* SetColorGuideBaseColor )(const AIColor *color)
 Sets the base color of the Color Guide palette.

Detailed Description

These functions allow you to use the three Color Harmony dialogs:.

  • The Color Guide, a floating dialog (palette) that displays a single color scheme.
  • The Color Harmony modal dialog that allows a user to modify color schemes and harmony rules and to recolorize art.
  • The Variations modal dialog that applies variations of a single color scheme to the selected art (and provides access to the Color Harmony dialog.) The Variations dialog is currently an unsupported engineering prototype and should not be displayed.

These dialogs share the concept of a current color scheme, which is a set of colors with various rules controlling how the other colors in the set are adjusted when one of the colors is changed. A color scheme can be associated with a swatch group, so that when the color scheme is changed, the swatch group is redefined (see the AISwatchGroupSuite.)

The Color Harmony dialog has two panels that can be displayed side-by-side, a primary panel on the left side that is always open, and a storage panel on the right that can be closed. The left side can show the Edit panel, which allows you to edit multiple colors in parallel, or the Assign panel (when artwork containing colors is selected), which allows precise control over how the colors of the scheme are used to replace the original colors of the selected artwork.

The modal dialogs can modify the document art and the contents of the swatches palette. Upon return from invoking one of these dialogs, you must not assume that the art or swatch content is unchanged. Although you can control some of the initial state of the dialog, it is possible for the user to make changes to state that you initialized.


Member Data Documentation

Retrieves the swatch group for the current document that is currently associated with the Color Harmony dialogs, if any.

(Note that this function returns an object value, not an error code.)

Returns:
The swatch group object, or NULL if there is no active document.

Reports whether the Color Guide palette is currently shown, that is, the palette has been created and the containing dialog is visible.

(Note that this function returns a boolean value, not an error code.)

Returns:
True if the palette is shown, false otherwise.
See also:
ADMDialogSuite10::IsVisible().

Sets the base color of the Color Guide palette.

The base color is the color from which the displayed harmony colors are derived. The harmony rule display and color grid update to reflect the new base color.

Generally, if you set the current path style you should also set the base color. The Swatches palette, Color palette, and Color Picker all set both the current path style and the Color Guide's base color. Selection changes do not change the base color.

Parameters:
color The new base color.

Associates the current color scheme with a swatch group, setting the scheme's colors to those in the swatch group.

Does not show any dialogs or modify any art, but if the Color Guide palette is visible, it is refreshed.

Parameters:
swatchGroup The swatch group object.
Returns:
The error kBadParameterErr if the swatch group does not belong to the current document's swatch list.

Shows the Color Guide palette, displaying the current color scheme.

AIAPI AIErr(* AIColorHarmonySuite::ShowHarmonyDialog)(ASBoolean loadAllDocumentColorGroups)

Shows the Color Harmony modal dialog with default settings (typically what was last shown).

The current color scheme is whatever colors are currently or were last shown in the Color Guide palette.

Parameters:
loadAllDocumentColorGroups When true, loads and displays color schemes for all swatch groups in the current document. When false, loads and displays only the swatch groups that are selected in the Swatches palette. If this is true and there are no color groups in the current document, or if it is false and no swatch groups are selected, then the Storage panel is empty.

Shows the Color Harmony modal dialog with the Assign panel active, the Recolor Art option checked, each color from the original art in its own bucket (color row), all the buckets active, and all the new colors set to the same as the original color and loaded into one scheme.

If the user saves the scheme immediately to the Swatches palette, it will create a color group containing all the colors in the selected art. This can also be used as a starting point for fine-tuning individual art colors.

Parameters:
combineTints True to load all tints of the same global or spot color into the same bucket, and set the mapping method to Scale Tints. False to load each tint into its own bucket and set the mapping method to Exact Colors.
AIAPI AIErr(* AIColorHarmonySuite::ShowToTintArt)(const AIColor &tintColor, ASBoolean includeWhite)

Shows the Color Harmony modal dialog with the Assign panel active, the Recolor Art option checked, all the colors collected into the same bucket (row), and a given color loaded into the new color.

The mapping method is initialized to Scale Tints.

Parameters:
tintColor The initial new color.
includeWhite When true, includes process white. (Always includes black and grays.)

Shows the Color Harmony modal dialog with a given swatch group loaded as the only color scheme.

Parameters:
swatchGroup The swatch group object.
forRecolor When true, if some art is selected, the Assign panel is active, the Recolor Art option is checked, and the original colors are reduced to the number of colors in the swatch group.
When false, The Edit panel is active (in most recent state), and the Storage panel is closed.
Note:
Upon return, the swatch group may have been redefined, renamed, or otherwise modified.
AIAPI AIErr(* AIColorHarmonySuite::ShowWithMultipleColorGroups)(int *swatchGroupIndices, int ctSwatchGroups, int makeCurrent, ASBoolean showStorage)

Shows the Color Harmony modal dialog, loading schemes for specific swatch groups.

Parameters:
swatchGroupIndices Pointer to an array of 0-based index positions for the swatch groups. See AISwatchGroupSuite::GetNthSwatchGroup().
ctSwatchGroups The size of the index array.
makeCurrent A 0-based index position in the index array. The color scheme for that swatch group becomes current. In the range [0..ctSwatchGroups]. Note that this is an index into the array of indices, not an index into the swatch list.
showStorage True to open the Storage panel.

The documentation for this struct was generated from the following file:


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2014 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks