LimitColors Macro Module
This GMS module includes 2 macros:
To use these macros, copy the GMS file to CorelDRAW's GMS folder and restart the application. Then choose Tools>Visual Basic>Play... and specify the "LimitColors (LimitColors.gms)" projects in "Macros in" list. After this you should be able to see the two macros - Main.LimitColors and Main.Posterize.
Choose Main.LimitColors and hit Run button. The macro starts by showing the dialog:
Choose the palette you want to use. Only open palettes are listed here. You might want to open a necessary palette prior to running the macro.
If there are any objects selected in CorelDRAW document, Selected Objects Only checkbox will be enabled allowing you to specify whether you want to process only selected objects or all objects on the current page.
Process Objects within Groups specifies whether to process grouped objects. If this button is unchecked, any object groups will not be processed.
Due to a bug in CorelDRAW 10, objects with fountain and pattern fills are not processed by this macro. The version for CorelDRAW 11+ and Corel DESIGNER works correctly.
Choose Main.Posterize and hit Run button. The macro starts by showing the dialog:
Here you can specify the number of colors to be used in the drawing. The macro analyzes document colors and chooses only the specified number of most used colors.
Selected Objects Only specifies whether to process only selected objects or all objects on a page.
Ignore Color Coverage makes the macro ignore the size of objects. If unchecked, the macro will take the object size into account when determining most used colors.
Create Used Color Samples causes the macro to create color swatches at the bottom of a page.
Download LimitColors macro module for CorelDRAW 11/12/X3/X4:
Download LimitColors macro module for CorelDRAW 10:
Download LimitColors macro module for Corel DESIGNER 10/12:
|[ CorelDRAW VBA macros | Using VBA with Corel Applications | Oberon Home Page ]|
Copyright © 2008 by Alex Vakulenko. All rights reserved.