Copyright: (c) 2002 Corel Corporation. All rights reserved.
Citation: ' (c) 2002 Corel Corporation. All rights reserved.


# VBA$ VBA> main


Legend

  Default property

  Read-Only property


Legend

  Default method


Getting Started with VBA

Visual Basic for Applications (VBA) is an object-oriented programming language that lets you create VBA macros to automate tasks. You can, for example, create a macro in WordPerfect that changes the color of the headings.Corel PHOTO-PAINT 11 includes version six of the VBA programming language.

VBA is an event-driven programming language. Most of the code you create is written to respond to an event. An event is an action that is recognized by VBA; for example, clicking a button or choosing an option from a list box. Unlike traditional procedural programming, in which the program starts at line 1 and executes line by line, event-driven programming executes code in response to events.

All events in the application are code placeholders. It is up to you to code the response. All events are called in response to a specific action. When an action occurs, the appropriate event will be called and the code located within the event is executed. You can create simple or complex events. You can code a single line that displays a message box or write an entire procedure that interacts with a database.

What is Visual Basic for Applications?

What is event-driven programming?

What is the difference between VB, VBA, and VBScript?

VBA and CorelScript

Working in the VBA Editor

Using VBA macros

 How to


What is Visual Basic for Applications?

Visual Basic for Applications (VBA) is a subset of the Microsoft Visual Basic (VB) object-oriented programming environment. VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model. VBA can access other applications by referencing that application's object model components.

VBA is a standard programming language that allows you to customize the application for your needs and integrate Corel products with other VBA-enabled applications by referencing that application's object model components. VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model.

VBA provides you with a set of tools that you can use to customize the graphical user interface of Corel applications. These tools allow you to process information and present data in an efficient and effective forum. Developers using VBA to extend Corel applications will benefit from the familiar Visual Basic language, Rapid Application Development (RAD) integrated development environment, and fast runtime performance in the resulting integrated solutions. Developers will also benefit from an extensible forms package that supports ActiveX controls for creating user interfaces, access to the full Windows API and the underlying file system, connectivity to corporate data, and integration with other COM-based software.

Even though VBA uses the Visual Basic programming language, it is considered "for applications" because it is most often integrated into another application in order to customize the functionality of that application.

 Related topics


What is event-driven programming?

VBA is an event-driven programming language. Most of the code you create is written to respond to an event. Each object within an object model is defined by a property, method, event, or a combination of each. An event is a noun, and acts as something that takes place in an object. You write code for an object to respond to the act. Events are triggered by an action, such as a click, key press, or system timer. Unlike traditional procedural programming, in which the program starts at line 1 and executes line by line, event-driven programming executes code in response to events.

 Related topics


What is the difference between VB, VBA, and VBScript?

The Microsoft Visual Basic (VB) programming system is an advanced set of programming tools that provides advanced functionality and components for the Microsoft Windows operating system and other windows-based programs. For example, with Visual Basic you can create application extensions (dll's) and stand-alone executable programs (exe's). You cannot create either of these components with VBA or VBScript.

Visual Basic, Applications Edition (VBA) is a subset of the Visual Basic programming language. It uses the programming structure of Visual Basic to manipulate objects of an object model, left exposed by an application. The manipulation of these objects results in small packets of code procedures within the application. These code procedures and resulting projects are called add ins.

VBScript is also referred to as Microsoft Visual Basic, Scripting Edition. VBScript is also a subset of the Visual Basic programming language. It is a web-based HTML document scripting language.

 Related topics


VBA and CorelScript

Previously, you could only use the CorelScript language to automate specific tasks. Both product commands and programming commands are used in conjunction with the CorelScript language. The CorelScript language is useful for developing simple macros. VBA offers more flexibility and power. When you use VBA to create macros, you are assisted by the Visual Basic compiler. The compiler helps you by providing context-sensitive help when you are coding a VBA macro. You can combine the power of VBA with the CorelScript product commands to create powerful macros. You have to use the Visual Basic Editor to create VBA macros. However, you can access the Visual Basic Editor only when you are working in an active document.

 Related topics


Working in the VBA Editor

When you work in the VBA Editor, you can create a new object, such as a dialog box, which is known as a form. You can add controls, such as a check box or a text box. You can set the object's properties in the Property dialog box. You can also set the object's properties at run time by programming a method.

Each document that you create with VBA has a corresponding project. In order to customize your document with VBA coding procedures, you must open the project file in the Visual Basic Editor. To display the Editor, go to Tools|Visual Basic|Visual Basic Editor on the main menu in the application.

For more detailed information on constructing code procedures and setting properties, see the Microsoft Visual Basic Help in the Visual Basic Editor.

 Related topics


Using VBA macros

VBA allows you to edit and play macros that automate a series of tasks within an application.

You can store a VBA macro in the document by saving the document. Once you have saved the document, you can close and reopen the document and access the macro. After you have developed the macro, you should debug it. You can step through each macro line by line. This is a useful exercise to ensure that the macro will have the desired outcome. A project macro is not available if the document is closed. After you have debugged the macro, you can play the macro.

For more detailed instruction relating to VBA and its programming environment, please consult the "Microsoft Visual Basic for Applications Help" from the Help menu in the Visual Basic Editor.

 Related topics


Sample macros
Sample macro

Corel PHOTO-PAINT includes a new sample VBA macro. It supplies users with additional functionality, demonstrates the capabilities of VBA in Corel PHOTO-PAINT, and provides sample code to VBA developers.

Corel PHOTO-PAINT HTML slide show creator

The slide show creator generates an HTML slide show from images that you specify. Open files can be added, ordered, and published as a series of HTML files. On each HTML page, one image is displayed, and navigation buttons are provided.

There are many options that let you customize your slide show. You can create a title, alternate text, and a name for each slide. You can also choose a location and a name for the delineation folder, and select the image folder. You can also specify notes, a caption, a URL, and more.

For information about running a macro from Corel PHOTO-PAINT, see "To run an automation project."

 Related topics


Using the VBA Help

Corel PHOTO-PAINT VBA Help outlines the key components of the VBA programming environment as it relates to the Corel PHOTO-PAINT application and its corresponding object model.

VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model. VBA can access other applications from within Corel PHOTO-PAINT by referencing that application's object model components.

This help file assumes that you have a basic knowledge of VBA and the VB programming environment. For more detailed instruction relating to these topics, please consult the "Microsoft Visual Basic for Applications Help" from the Help menu in the Visual Basic Editor.

Object model references

Corel PHOTO-PAINT VBA Help divides its object model references into several categories:

•	Classes

•	Properties

•	Methods

•	Events

•	Enumerations

•	Constants

Topics within each category are listed in alphabetical order for easy navigation and contain links to other categories as they relate to the current topic.

Sample Code

Corel PHOTO-PAINT VBA Help provides sample code for all properties, methods, and events in the Corel PHOTO-PAINT object model. Code samples are located in the main topic window for each property, method, and event.

The Corel PHOTO-PAINT application object is not referenced in the sample code. The application object does not need to be included when referencing objects within the application. If you are referencing the Corel PHOTO-PAINT application with VBA from another application, the reference must include the Corel PHOTO-PAINT application object.

What is an object model?

What is the difference between a class and an object?

What is the difference between enumerations and constants?

 How to


What is an object model?

The VBA programming language automates tasks within an application, by manipulating the components of the application's object model. An object model represents the hierarchy of objects within an application and their relationship to each other within the structure.

In Corel PHOTO-PAINT, the Application object represents the top of the object hierarchy, the program itself. Starting with the Application object, you can "drill down" and navigate through the object model until you find the desired, and usually more specific, object. To reference an object with Visual Basic code, you separate each level of the object hierarchy with the dot operator (.).

For example, Application.ActiveDocument references the Document object, but separates the Document class from the Application class with the use of the dot operator. It is important to note that you do not need to reference the Application object when accessing objects in the object model of Corel PHOTO-PAINT.

A diagram of the object model of Corel PHOTO-PAINT 11 is provided for your reference. If you have difficulty opening this PDF file, you can find it in the folder C:\Program Files\Corel\Corel Graphics 11\Programs where C corresponds to the drive where you installed Corel PHOTO-PAINT, and where Program Files\Corel\Corel Graphics 11\Program corresponds to the path where you installed Corel PHOTO-PAINT.

 Related topics


What is the difference between a class and an object?

A class is a definition of an object, not a representation of the actual object. A class outlines the properties, methods, and events that apply to a type of object in CorelDRAW and Corel PHOTO-PAINT. It acts as a template for all objects of that type class. An object is an instance of a class.

For example, "Document" represents the Document class in Corel applications. However, "ActiveDocument" represents an object within that class because it makes specific reference to one object.

 Related topics


What is a class?

A class is a definition of an object. A class outlines the properties, methods, and events that apply to a type of object in CorelDRAW and Corel PHOTO-PAINT. It acts as a template for all objects of that type class.

For example, "Document" represents the Document class in Corel applications.

 Related topics


What is a collection?

A collection is a group of objects that are similar in type. As objects, they share the same properties, methods, and events. They are uniquely identified within the collection by their index number or their name. Collection objects act in the same manner and are always plural.

For example, "Documents" represent the Documents collection class in Corel applications. However, "Documents.Item (1)" references the first document object in the collection.

 Related topics


What is a property?

Each object within an object model is defined by a property, method, event, or a combination of each. A property is an adjective, and acts as an object attribute. It represents a characteristic quality of the object. Properties can be returned, set, or read-only. The provide information about the object.

For example, "ActiveDocument.Name" represents the Name property of a Document object.

 Related topics


What is a method?

Each object within an object model is defined by a property, method, event, or a combination of each. A method is a verb, and is seen as the action of an object. It represents an act that can be performed by an object.

For example, "ActiveDocument.Close" represents the Close method of a Document object. It performs the act of closing the document in the application.

 Related topics


What is an event?

Each object within an object model is defined by a property, method, event, or a combination of each. An event is a noun, and acts as something that takes place in an object. You write code for an object to respond to the act. Events are triggered by an action, such as a click, key press, or system timer.

For example, "ActiveDocument.AfterSave" event triggers an action in the Document object after it has been saved.

 Related topics


What is the difference between enumerations and constants?

Enumerations and Constants both represent fixed values in VBA programming structures. Unlike a variable, which temporarily stores a changing data value in a code procedure or function, enumerations and constants both represent fixed values in code procedures and functions - their values do not change.

An enumeration groups similar constants together. For Example, "AddinFilter" is an enumeration, yet it contains several constants, including "AddinFilterNone" and AddinFilterNew". A constant is an instance of an enumeration.

 Related topics


What is an enumeration?

An enumeration represents a fixed value in a VBA code procedures and functions. Unlike a variable, which temporarily stores a changing data value, enumeration values do not change.

An enumeration groups similar constants together. For Example, "AddinFilter" is an enumeration, yet it contains several constants, including "AddinFilterNone" and AddinFilterNew". A constant is an instance of an enumeration.

 Related topics


What is a constant?

Constants represent fixed values in VBA programming structures. Unlike a variable, which temporarily stores a changing data value in a code procedure or function, constant values do not change.

A constant is an instance of an enumeration.

 Related topics


cdrSortReverse	0

cdrSortHue	1

cdrSortBrightness	2

cdrSortSaturation	3

cdrSortRGB	4

cdrSortHSB	5

cdrSortName	6


A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The on-screen color palette is a toolbar that displays a series of color swatches. It is used to select colors for use in Corel PHOTO-PAINT. You can display multiple on-screen Color Palettes. They can be docked or left floating in the Application Window.


A parameter is synonymous with argument, a value that is passed to a routine. A parameter defines a characteristic of an object in the visual basic programming environment.


An index number is a reference to any collection that contains more than one object. It is used to identify each object in the collection. The index number can range from 1 to the number of available objects within the collection.


A color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.


A channel is an 8-bit grayscale version of your image that functions like a plate used in the commercial printing process: each channel represents one level of color in your image. When all the channels are printed together, they produce the entire range of colors in the image.

For example, an RGB image comprises three channels (red, green, and blue). When all three channels are printed or displayed together, they create the entire range of colors in the image.


 cdrPa ntone=1

cdrCMYK=2

cdrCMY=4

cdrRGB=5

cdrHSB=6

cdrHLS=7

cdrBlackAndWhite=8

cdrGray=9

cdrColorPantone=1

cdrColorCMYK=2

cdrColorCMY=4

cdrColorRGB=5

cdrColorHSB=6

cdrColorHLS=7

cdrColorBlackAndWhite=8

cdrColorGray=9

cdrColorYIQ=11

cdrColorLab=12

cdrColorPantoneHex=14

cdrColorRegistration=20

cdrColorSpot=25

cdrColorMixed=99


Without any light or a viewer, objects all around us are colorless. Color only occurs in our minds after our visual sensory system has seen the wavelengths that give objects their color. Based on how people perceive color, the HSB color model defines color in three attributes:

•	Hue (H)

•	Saturation (S)

•	Brightness (B)

Hue (H) is the name we give a color in everyday language. Hues form the Color Wheel. The hue of a lemon is yellow, that of a strawberry is red. Saturation (S) refers to vividness of the color or how much color concentration does the object contain. The figurine does not contain very much yellow when compared to the yellow saturation of lemon. Colors can be separated into bright or dark colors when their Brightness (B) is compared. Brightness refers to adding or removing whiteness from a color. The mask is bright and lighter then the dark yellow lemon.


cdrPantone=1

cdrCMYK=2

cdrCMY=4

cdrRGB=5

cdrHSB=6

cdrHLS=7

cdrBlackAndWhite=8

cdrGray=9

cdrColorPantone=1

cdrColorCMYK=2

cdrColorCMY=4

cdrColorRGB=5

cdrColorHSB=6

cdrColorHLS=7

cdrColorBlackAndWhite=8

cdrColorGray=9

cdrColorYIQ=11

cdrColorLab=12

cdrColorPantoneHex=14

cdrColorRegistration=20

cdrColorSpot=25

cdrColorMixed=99


A great deal of color research has been accomplished in order to acquire a color model that is device independent and repeatable. In 1931 La Commision Internationale de L'Eclairage (CIE) defined a device-independent color model, based on how the human eye perceives color. The CIE Lab model incorporates the theory that a color cannot be both green and red at the same time nor can it be yellow and blue at the same time. As such, single values are used to describe the green/red and blue/yellow components of any color. Lab stands for the three values this model uses to define colora lightness value (L) which can range from 0 to 100 and two chromaticity ranges: green to red (a) and blue to yellow (b). The two chromaticity values can range from +120 to -120. Lab (sometimes called L*a*b*) provides a system for defining color that bases color values on widely accepted standards rather than on individual color-producing devices.


The millions of colors your monitor produces can all be described as amounts of red, green, and blue. These three color components form the basis for the RGB (Red, Green, and Blue) color model. Each of the three colors is assigned a numeric value between 0 and 255. The RGB model is based on colors of light, and higher RGB values correspond to the presence of greater quantities of white light. Consequently, higher RGB values result in lighter colors. When all three color components are at the maximum value, the resulting color is white light. Because the RGB model creates colors by adding light, it is called an additive color model. Monitors and scanners can employ the additive color model because they emit light. They emit particles of red, green, and blue light and create the illusion of millions of different colors.


pntColorMaskSampledColors	0

pntColorMaskReds	1

pntColorMaskYellows	2

pntColorMaskGreens	3

pntColorMaskCyans	4

pntColorMaskBlues	5

pntColorMaskMagentas	6

pntColorMaskHighlights	7

pntColorMaskMidtones	8

pntColorMaskShadows	9

pntColorMaskOutOfGamut	10


pntColorMaskNormal	0

pntColorMaskHue	1

pntColorMaskSaturation	2

pntColorMaskBrightness	4


pntMaskToWhite	0

pntMaskToBlack	1


One of the limitations of the RGB model is that it is device dependent. This means that not only are there color variations between monitors and scanners by different manufacturers but there are color variations between identical devices from the same manufacturer. All monitors drift over time and display colors differently making it imperative to regularly calibrate your monitor and the other electronic devices you use to create your projects. The RGB model cannot be a color standard because its color results are not 100 percent repeatable.


cdrTRUMATCH=1

cdrPANTONEProcess=2

cdrPANTONECorel8=3

cdrUniform=7

cdrFOCOLTONE=8

cdrSpectraMaster=9

cdrTOYO=10

cdrDIC=11

cdrPANTONEHexCoated=12

cdrPANTONEHexUncoated=24

cdrLab=13

cdrNetscapeNavigator=14

cdrInternetExplorer=15

cdrPANTONECoated=17

cdrPANTONEUncoated=18

cdrPANTONEMetallic=20

cdrPANTONEPastelCoated=21

cdrPANTONEPastelUncoated=22

cdrHKS=23

cdrCustom=0


cdrWindowNormal=1
cdrWindowMaximized=3
cdrWindowMinimized=2
cdrWindowRestore=9


A macro is a collection of automatic tasks performing an action. It is a symbol, name or key that represents a list of commands.


A Document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A Document Page is sometimes called a "page." You can access a document page in a multi-page document by clicking on a page tab at the bottom-left corner of the Image Window.


Any script you create by saving a recording of your Corel PHOTO-PAINT operations is comprised of Corel SCRIPT application commands. Corel SCRIPT application commands instruct Corel PHOTO-PAINT to perform specific actions. For example, a command might instruct Corel PHOTO-PAINT to open or to close a document. The application commands are easy to understand, since most are one-word equivalents of the corresponding Corel application user interface.

Corel SCRIPT programming statements and functions send instructions or perform actions that are not part of another Corel application. For example, Corel SCRIPT programming statements can be used to display a custom dialog box, include flow control statements and constructs such as loops, create and manipulate variables, and retrieve information about your computer setup. On their own, Corel SCRIPT programming statements form a powerful programming language. A script containing only Corel SCRIPT programming statements can be executed even if another Corel application is not running.


A swat ch is one of a series of solid-colored patches that is used as a sample when selecting color. A printed booklet of color swatches is called a swatch book. Swatch also refers to the colors contained in the Color Palette.


A datatype consisting of a sequence of contiguous characters that represent the characters themselves rather than their numeric values. A String can include letters, numbers, spaces, and punctuation. The String data type can store fixed-length strings ranging in length from 0 to approximately 63K characters and dynamic strings ranging in length from 0 to approximately 2 billion characters. The dollar sign ($) type-declaration character represents a String in Visual Basic.


A collection is a group of objects that have similar characteristics and actions but are uniquely identified by index names or numbers. Collections are always plural (i.e. Documents is a collection of document objects.)


A collection is a group of objects that have similar characteristics and actions but are uniquely identified by index names or numbers. Collections are always plural (i.e. Documents is a collection of document objects.)


A color palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The on-screen color palette is a toolbar that displays a series of color swatches. It is used to select colors for use in Corel PHOTO-PAINT. You can display multiple on-screen Color Palettes. They can be docked or left floating in the Application Window.


A parameter is synonymous with argument, a value that is passed to a routine. A parameter defines a characteristic of an object in the Visual Basic programming environment.


An index number is a reference to an object in a collection that contains more than one object. A collection is a group of objects that have similar characteristics and actions but are uniquely identified by index names or numbers. Collections are always plural (i.e. Documents is a collection of document objects.) It is used to identify each object in the collection. The index number can range from 1 to the number of available objects within the collection.


A color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.


A channel is an 8-bit grayscale version of your image that functions like a plate used in the commercial printing process: each channel represents one level of color in your image. When all the channels are printed together, they produce the entire range of colors in the image. For example, an RGB image comprises three channels (red, green, and blue). When all three channels are printed or displayed together, they create the entire range of colors in the image.


  cdrPantone=1

   cdrCMYK=2

   cdrCMY=4

   cdrRGB=5

   cdrHSB=6

   cdrHLS=7

   cdrBlackAndWhite=8

   cdrGray=9

   cdrColorPantone=1

   cdrColorCMYK=2

   cdrColorCMY=4

   cdrColorRGB=5

   cdrColorHSB=6

   cdrColorHLS=7

   cdrColorBlackAndWhite=8

   cdrColorGray=9

   cdrColorYIQ=11

   cdrColorLab=12

   cdrColorPantoneHex=14

   cdrColorRegistration=20

   cdrColorSpot=25

   cdrColorMixed=99


A macro is a collection of automatic tasks performing an action. It is a symbol, name or key that represents a list of commands.


A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is sometimes called a "page." You can access a document page in a multi-page document by clicking on a page tab at the bottom-left corner of the Image Window.


Any script you create by saving a recording of your Corel PHOTO-PAINT operations is comprised of Corel SCRIPT application commands. Corel SCRIPT application commands instruct Corel PHOTO-PAINT to perform specific actions. For example, a command might instruct Corel PHOTO-PAINT to open or to close a document. The application commands are easy to understand, since most are one-word equivalents of the corresponding Corel application user interface.

Corel SCRIPT programming statements and functions send instructions or perform actions that are not part of another Corel application. For example, Corel SCRIPT programming statements can be used to display a custom dialog box, include flow control statements and constructs such as loops, create and manipulate variables, and retrieve information about your computer setup. On their own, Corel SCRIPT programming statements form a powerful programming language. A script containing only Corel SCRIPT programming statements can be executed even if another Corel application is not running.


A swatch is one of a series of solid-colored patches that is used as a sample when selecting color. A printed booklet of color swatches is called a swatch book. Swatch also refers to the colors contained in the Color Palette.


A data type consisting of a sequence of contiguous characters that represent the characters themselves rather than their numeric values. A String can include letters, numbers, spaces, and punctuation. The String data type can store fixed-length strings ranging in length from 0 to approximately 63K characters and dynamic strings ranging in length from 0 to approximately 2 billion characters. The dollar sign ($) type-declaration character represents a String in Visual Basic.


cdrWindowNormal=1
cdrWindowMaximized=3
cdrWindowMinimized=2
cdrWindowRestore=9


The clipboard is a temporary storage area that is used to hold cut or copied information. The clipboard is always present in Windows and it stores information until it is replaced by another object or selection that has been cut or copied, or until you quit the current session of Windows.


Without any light or a viewer, objects all around us are colorless. Color only occurs in our minds after our visual sensory system has seen the wavelengths that give objects their color. Based on how people perceive color, the HSB color model defines color in three attributes:

·	Hue (H)

·	Saturation (S)

·	Brightness (B)

Hue (H) is the name we give a color in everyday language. Hues form the Color Wheel. The hue of a lemon is yellow, that of a strawberry is red. Saturation (S) refers to vividness of the color or how much color concentration does the object contain. The figurine does not contain very much yellow when compared to the yellow saturation of lemon. Colors can be separated into bright or dark colors when their Brightness (B) is compared. Brightness refers to adding or removing whiteness from a color. The mask is bright and lighter then the dark yellow lemon.


cdrPantone=1

cdrCMYK=2

cdrCMY=4

cdrRGB=5

cdrHSB=6

cdrHLS=7

cdrBlackAndWhite=8

cdrGray=9

cdrColorPantone=1

cdrColorCMYK=2

cdrColorCMY=4

cdrColorRGB=5

cdrColorHSB=6

cdrColorHLS=7

cdrColorBlackAndWhite=8

cdrColorGray=9

cdrColorYIQ=11

cdrColorLab=12

cdrColorPantoneHex=14

cdrColorRegistration=20

cdrColorSpot=25

cdrColorMixed=99


A great deal of color research has been accomplished in order to acquire a color model that is device independent and repeatable. In 1931 La Commision Internationale de L'Eclairage (CIE) defined a device-independent color model, based on how the human eye perceives color. The CIE Lab model incorporates the theory that a color cannot be both green and red at the same time, nor can it be yellow and blue at the same time. As such, single values are used to describe the green/red and blue/yellow components of any color. Lab stands for the three values this model uses to define colora lightness value (L) which can range from 0 to 100 and two chromaticity ranges: green to red (a) and blue to yellow (b). The two chromaticity values can range from +120 to -120. Lab (sometimes called L*a*b*) provides a system for defining color that bases color values on widely accepted standards rather than on individual color-producing devices.


The millions of colors your monitor produces can all be described as amounts of red, green, and blue. These 3 color components form the basis for the RGB (Red, Green, and Blue) color model. Each of the three colors is assigned a numeric value between 0 and 255. The RGB model is based on colors of light, and higher RGB values correspond to the presence of greater quantities of white light. Consequently, higher RGB values result in lighter colors. When all 3 components are at the maximum value, the resulting color is white light. Because the RGB model creates colors by adding light, it is called an additive color model. Monitors and scanners can employ the additive color model because they emit light. They emit particles of red, green, and blue light and create the illusion of millions of different colors.

One of the limitations of the RGB model is that it is device dependent. This means that not only are there color variations between monitors and scanners by different manufacturers but there are color variations between identical devices from the same manufacturer. All monitors drift over time and display colors differently making it imperative to regularly calibrate your monitor and the other electronic devices you use to create your projects. The RGB model cannot be a color standard because its color results are not 100 percent repeatable.


cdrTRUMATCH=1

cdrPANTONEProcess=2

cdrPANTONECorel8=3

cdrUniform=7

cdrFOCOLTONE=8

cdrSpectraMaster=9

cdrTOYO=10

cdrDIC=11

cdrPANTONEHexCoated=12

cdrPANTONEHexUncoated=24

cdrLab=13

cdrNetscapeNavigator=14

cdrInternetExplorer=15

cdrPANTONECoated=17

cdrPANTONEUncoated=18

cdrPANTONEMetallic=20

cdrPANTONEPastelCoated=21

cdrPANTONEPastelUncoated=22

cdrHKS=23

cdrCustom=0


pntColorMaskNormal	0

pntColorMaskHue	1

pntColorMaskSaturation	2

pntColorMaskBrightness	4


pntColorMaskSampledColors	0

pntColorMaskReds	1

pntColorMaskYellows	2

pntColorMaskGreens	3

pntColorMaskCyans	4

pntColorMaskBlues	5

pntColorMaskMagentas	6

pntColorMaskHighlights	7

pntColorMaskMidtones	8

pntColorMaskShadows	9

pntColorMaskOutOfGamut	10


cdrSortReverse	0

cdrSortHue	1

cdrSortBrightness	2

cdrSortSaturation	3

cdrSortRGB	4

cdrSortHSB	5

cdrSortName	6


cdrImageRGB	0

cdrImageGrayscale	1

cdrImageBlackWhite	2

cdrImagePaletted	3

cdrImageCMYK	4

cdrImageDuotone	5

cdrImageLAB	6

cdrImageGrayscale16	7

cdrImageRGB48	8

cdrImageMultiChannel	9


pntToleranceNormal	0

pntToleranceHSB	1


pntSplitRGB	0

pntSplitCMYK	1

pntSplitHSB	2

pntSplitHLS	3

pntSplitYIQ	4

pntSplitLAB	5


cdrFeatherInside=0

cdrFeatherMiddle=1

cdrFeatherOutside=2

cdrFeatherAverage=3


cdrEdgeLinear=0

cdrEdgeSquared=1

cdrEdgeFlat=2

cdrEdgeInverseSquared=3

cdrEdgeMesa=4

cdrEdgeGaussian=5


cdrDropShadowFlat=0

cdrDropShadowBottom=1

cdrDropShadowTop=2

cdrDropShadowLeft=3

cdrDropShadowRight=4


pntFirstFrame	0

pntLastFrame	1

pntNextFrame	2

pntPreviousFrame	3


pntFrameFill	0

pntFrameCopy	1

pntFrameCopyActive	2


pntLoadAll	0

pntLoadCrop	1

pntLoadResample	2


cdrWindowNormal	1

cdrWindowMaximized	3

cdrWindowMinimized	2

cdrWindowRestore	9


Corel PHOTO-PAINT's VBA programming commands that specify locations on a page use coordinates as parameters. Coordinate values use the set document unit as the base unit of measurement and are expressed as being relative to the center of the current page, which has the coordinates (0,0).


   cdrTenthMicron=0
   cdrInch=1
   cdrFoot=2
   cdrMillimeter=3
   cdrCentimeter=4
   cdrPixel=5
   cdrMile=6
   cdrMeter=7
   cdrKilometer=8
   cdrDidots=9
   cdrAgate=10
   cdrYard=11
   cdrPica=12
   cdrCicero=13
   cdrPoint=14


pntRegionRectangle	0

pntRegionPolygon	1

pntRegionCircle	2


pntAlignLeft	1

pntAlignRight	2

pntAlignHCenter	3

pntAlignTop	4

pntAlignBottom	8

pntAlignVCenter	12


pntMaskNormal	0

pntMaskAdd	1

pntMaskSubtract	2

pntMaskXOR	3


pntFeatherAverage	0

pntFeatherMiddle	1

pntFeatherOutside	2

pntFeatherInside	3


pntEdgeLinear	0

pntEdgeSquared	1

pntEdgeFlat	2

pntEdgeInverseSquared	3

pntEdgeMesa	4

pntEdgeGaussian	5


   cdrFlipHorizontal=1
   cdrFlipVertical=2
   cdrFlipBoth=3


A range is series of similar objects in Corel PHOTO-PAINT.


pntEmptyLayer	0

pntFromBackground	1

pntCopySelection	2

pntCutSelection	3


pntMergeNormal	0

pntMergeAdd	1

pntMergeSubtract	2

pntMergeDifference	3

pntMergeMultiply	4

pntMergeDivide	5

pntMergeIfLighter	6

pntMergeIfDarker	7

pntMergeTexturize	8

pntMergeInvert	9

pntMergeAND	10

pntMergeOR	11

pntMergeXOR	12

pntMergeBehind	13

pntMergeScreen	14

pntMergeOverlay	15

pntMergeSoftLight	16

pntMergeHardLight	17

pntMergeColorDodge	18

pntMergeColorBurn	19

pntMergeExclusion	20


pntBorderHard	0

pntBorderMedium	1

pntBorderSoft	2


pntFromMask	0

pntFromInvertedMask	1

pntFromObjectTransparency	2

pntToShowAll	3

pntToHideAll	4

pntUseOpacity	5


pntBlackMatte	0

pntWhiteMatte	1


Fixed color palettes are provided by third-party manufacturers and are most useful when accompanied by a color swatch book. A swatch book is a collection of color samples that shows exactly what each color looks like when printed.


Custom color palettes are collections of colors you have chosen to save as a color palette file (.CPL extension).You have the ability to copy a color swatch by dragging a color swatch from any palette into your custom palettes. There is no limit to the number of custom palettes you can create.

When you create a custom palette, the palette is empty and ready for you to choose the colors you want to include in it. You can create a custom palette that includes all the colors from the object that you selected or from the current document.


cdrFixedPalette=0

cdrCustomPalette=1


Offset refers to a movement out of line with another object. An offset object is distanced from another specified object and this distance is the offset value.


pntObjectLayer	0

pntLensLayer	1


Event

Each object within an object model is defined by a property, method, event, or a combination of each. An event is a noun, and acts as something that takes place in an object. You write code for an object to respond to the act. Events are triggered by an action, such as a click, key press, or system timer.


Event-driven programming

Visual Basic for Applications is an event-driven programming language. Most of the code you create is written to respond to an event. Each object within an object model is defined by a property, method, event, or a combination of each. An event is a noun, and acts as something that takes place in an object. You write code for an object to respond to the act. Events are triggered by an action, such as a click, key press, or system timer. Unlike traditional procedural programming, in which the program starts at line 1 and executes line by line, event-driven programming executes code in response to events.


Variant

The Variant data type is the data type for all variables that are not declared as another type such as Dim, Private, Public, or Static. The Variant data type has no type-declaration character.


Object-oriented programming

A style of programming that places emphasis on creating and using objects.


Object model

An object model represents the hierarchy of objects within an application and their relationship to each other within the paradigm.

For example, the Document object represents the beginning of the object hierarchy in WordPerfect. Starting with the Document object, you drill down and navigate through the object model until you find the desired object. To reference an object with Visual Basic code, you separate each level of the object hierarchy with the dot operator (.).


Glossary
A

Accelerator table

Active object

Alpha channel

Ambient lighting

Animation

Anti-aliasing

Aspect ratio

B

Bit depth

Bitmap fill

Bitmapped image

Black and white

Bleed

Brightness

C

CERN

Channel

Child object

Choke

Client side image maps

Clip mask

Clipart

Clipboard

Clipping range

CMY

CMYK

Color channel

Color gamut

Color mode

Color model

Color palette

Color profile

Color separation

Color space

Color tolerance

Contrast

Control point

Crop

Cubist

D

Destination application

Distortion handles

DPI

Duotone

E

Editable area

F

Feathering

Filter

Floating selection

Fractal

G

Gaussian

Gradient node

Grayscale

Grayscale image

Group

H

Halftone

Handles

Highlighting box

HSB

HTML

Hue

Hyperlink

I

Image map

Imagesetter

Intensity

Interlaced video image

Interlacing

J

JPEG (Joint Photographic Experts Group)

L

Lab

Lens

Lossless

Lossy

Low-frequency areas

LZW

M

Marquee

Mask

Mask modes

Merge mode

Moire pattern

Mosaic

Multichannel

N

NCSA

Nodes

Noise

NTSC

Nudge

O

Object

Opaque

Overlay

P

Paletted color mode

Parameters

Parent object

PAL

PANTONE process colors palette

Perspective handles

Pixel

Pressure sensitive pen

Process color

Progressive

Protected area

R

Radius

Range sensitivity

Rasterized image

Recording

Render

Resample

Resolution

RGB

Rotation handles

S

Saturation

Scanner

Script

Seed color

Segment path

Selection

Shape cursor

Skewing handle

Source application

Source file

Spot color

Spread

Stacking order

Stylus

Subpath

Subtractive color model

Super nudge

Swap disk

Swatch

T

Threshold

Threshold path

Thumbnail

Tightness path

Tint

Transparency

True color

TWAIN

U

URL

V

Vector graphic

W

Watermark

Z

ZIP


Accelerator table (definition)
accelerator table

A file that contains a list of shortcut keys. Different tables are active depending on the task that you are performing.


active object

An object that has a red border around its thumbnail in the Objects Docker window.


alpha channel

A temporary storage area for masks. When you save a mask to an alpha channel, you can access and reuse it in the image as many times as you want. You can save an alpha channel to a file or load a previously saved channel in the active image.


Ambient lighting (definition)
ambient lighting

The lighting in a room, including natural and artificial light sources.


Animation (definition)
animation

Animation files support moving images. CorelDRAW 10 supports four animation file types: GIF animation (.gif), MPEG Animation (.mpg), Quick Time Movie (.mov), and Video for Windows (.avi).


Anti-aliasing (definition)
anti-aliasing

A method of smoothing the curved and diagonal edges in bitmap images. Intermediate pixels along edges are filled to smooth the transition between the edges and the surrounding image.


Aspect ratio (definition)
aspect ratio

The ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3.


Bit depth (definition)
bit depth

The number of binary bits that define the shade or color of each pixel in a bitmapped image. For example, a pixel in a black-and-white image has a depth of 1 bit, because it can only be black or white. The number of color values that a given bit depth can produce is equal to 2 to the power of the bit depth.


Bitmapped image (definition)
bitmapped image

An image composed of grids of pixels or dots.


Bitmap fill (definition)
bitmap fill

A fill created from any bitmap image.


Black and white (definition)
Black-and-white mode

A 1-bit color mode that stores images as two solid colors [image] black and white [image] with no gradations. This color mode is useful for line art and simple graphics.


Bleed (definition)
bleed

The part of the printed image that extends beyond the edge of the page. The bleed ensures that the final image goes right to the edge of the paper after binding and trimming.


Brightness (definition)
brightness

The amount of light that is transmitted or reflected from a given pixel. In the HSB color mode, brightness is a measure of how much white a color contains. For example, a brightness value of 0 produces black, and a brightness value of 255 produces white.


CERN (definition)
CERN

CERN (Conseil Europeén pour la Recherche Nucléaire) is the scientific laboratory in which the World Wide Web was developed. There are two World Wide Web server systems: CERN and NCSA (National Center for Supercomputing Applications). Contact your server administrator to find out which system your server uses.


Channel (definition)
channel

An 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (for example, .cpt).


Child object (definition)
child object

An object whose image pixels are combined with the shape of another object, called a parent object, to create a clipping group. The child object must be on a layer above the parent object.


choke (definition)
choke

In commercial printing, a form of trapping created by extending the background object into the foreground object.


Client side image maps(definition)
client side image maps

Client-side image maps do not depend on the server to process the map information, but the user's browser must support image map display. It is always possible that your audience will not have a suitable browser to view the map.


Clipart (definition)
clipart

Ready-made images that can be imported into Corel applications and edited if required.


Clipboard (definition)
clipboard

An area that is used to temporarily store cut or copied information. The Clipboard stores information until it is replaced by information that is subsequently cut or copied.


Clip mask (definition)
clip mask

A mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.


Clipping range (definition)
clipping range

The percentage of the range of values that is not displayed in the upper part of the histogram's vertical axis.


CMY (definition)
CMY

A color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.


CMYK (definition)
CMYK

A color mode made up of cyan (C), magenta (M), yellow (Y), and black (K) that produces true blacks and a wide tonal range. In the CMYK color mode, color values are expressed as percentages; therefore, a value of 100 for an ink means that it is applied at full saturation.


color channel (definition)
color channel

An 8-bit grayscale version of an image. Each channel represents one level of color in the image; for example, RGB has three color channels, while CMYK has four. When all the channels are printed together, they produce the entire range of colors in the image.

See also RGB and CMYK.


Color gamut (definition)
color gamut

The range of colors that can be reproduced or perceived by any device. For example, a monitor displays a different color gamut than a printer, making it necessary to manage colors from original images to final output.


Color mode (definition)
color mode

A system that defines the number and kind of colors that make up an image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of color modes.


Color model (definition)
color model

A simple color chart that defines the range of colors displayed in a color mode. RGB (red, green, blue), CMY (cyan, magenta, yellow), CMYK (cyan, magenta, yellow, black), HSB (hue, saturation, brightness), HLS (hue, lightness, saturation), and CIE L*a*b (Lab) are examples of color models.


Color palette (definition)
color palette

A collection of solid colors from which you can choose colors for fills and outlines.


Color profile (definition)
color profile

A description of the color-handling capabilities and characteristics of a device.


Color separation (definition)
color separation

In commercial printing, the process of splitting colors in a composite image to produce a number of separate grayscale images, one for each primary color in the original image. In the case of a CMYK image, four separations (one for cyan, magenta, yellow, and black) must be made.


Color space (definition)
color space

In electronic color management, a virtual representation of device or the color gamut of a color model. The boundaries and contours of a device's color space are mapped by color management software.

See also Color gamut.


Color tolerance (definition)
color tolerance

The value that determines the color range or sensitivity of the Lasso Mask tool, Magic Wand Mask tool, and Fill tool. Tolerance is also used in the Color Mask dialog box to determine which pixels are protected when you create a color mask. A pixel is included in the specified color range if its grayscale value falls within the defined tolerance.


Contrast (definition)
contrast

The difference in tone between the dark and light areas of an image. Higher contrast values indicate greater differences and fewer gradations between dark and light.


Control point (definition)
control points

The points that extend from a node along a curve that is being edited with the Shape tool. Control points determine the angle at which the curve passes through the node.


Crop (definition)
crop

The process of cutting unwanted areas of an image without affecting the resolution of the information that remains.


Cubist (definition)
cubist

An abstract style of art that stresses several aspects of the same object simultaneously, generally in the form of squares or cubes.


destination application (definition)
destination application

In Object Linking and Embedding (OLE), the application in which you insert a linked or embedded object.


distortion handles

The outward-facing, double-headed arrows located at each corner of the highlighting box.


DPI (definition)
dpi(dots per inch)

A measure of a printer's resolution in dots per inch. Typical desktop laser printers print at 300 dpi. Image setters print at 1270 or 2540 dpi. Printers with higher dpi capabilities produce smoother and cleaner output. The term dpi is also used to measure scanning resolution and to indicate bitmap resolution.


Duotone (definition)
Duotone

An 8-bit color mode that displays images using 256 shades of up to four tones. An image in the duotone color mode is simply a grayscale image that has been enhanced with one to four additional colors.


Editable area (definition)
editable area

An editable area of a mask allows paint and effects to be applied to underlying pixels.

See also protected area.


Feathering (definition)
feathering

The level of sharpness along a drop shadow's edges


Filter (definition)
filter

The name for an application that translates digital information from one form to another.


Floating selection (definition)
floating selection

A selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels.


Fractal (definition)
fractal

A mathematical way of generating an image.


Gaussian (definition)
gaussian

A frequency distribution that uses bell-shaped distribution curves rather than straight lines.


Gradient node (definition)
gradient node

A square point that represents each color on the gradient arrow of a gradient fill used to change its start and end points, its colors, and its transparency values.


Grayscale (definition)
Grayscale

A color mode that displays images using 256 shades of gray. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white).


Grayscale image (definition)
Grayscale image

An image that uses the Grayscale color model, which can display up to 256 shades of gray ranging from white to black. Grayscale images, especially photographs, are commonly referred to as "black and white."


Group (definition)
group

A set of objects that behave as one unit. Operations you perform on a group apply equally to each of its objects.


Halftone (definition)
halftone

An image that has been converted from a continuous tone image to a series of dots of various sizes to represent different tones.


Handles (definition)
handles

A set of eight black squares that appear at the corners and sides of an object when the object is selected. By dragging individual handles, you can scale, resize or mirror the object. If you click a selected object, the shape of the handles changes to arrows so that you can rotate and skew the object.


Highlighting box (definition)
highlighting box

A rectangle with eight handles that encloses a selection in an image.


HSB (definition)
HSB (hue, saturation, brightness)

A color model that defines three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense).


HTML (definition)
HTML

The World Wide Web authoring standard comprised of markup tags that define the structure and components of a document. The tags are used to tag text and integrate resources (such as images, sound, video, and animation) when you create a Web page.


Hue (definition)
hue

The property of a color that allows it to be classified it by its name. For example, blue, green, and red are all hues.


Hyperlink (definition)
hyperlink

An electronic link that provides access directly from one place in a document to another place in that document or to another document.


Image map (definition)
image map

A hypergraphic in an HTML document that contains clickable areas that link to URLs on the World Wide Web.


Imagesetter (definition)
imagesetter

A machine that makes film or film-based paper used to make printing plates.


Intensity (definition)
intensity

Intensity is a measure of the brightness of the light pixels in a bitmap image compared with the darker mid-tones and dark pixels. An increase in intensity increases the vividness of whites while maintaining true darks.


interlaced video image

Interlaced video images take two passes to fill a screen, painting every other line in each pass. This can produce a flicker.


Interlacing (definition)
interlacing

A method that lets you display an image on screen at a low, blocky resolution. As the image data loads, the image quality improves.


JPEG (Joint Photographic Experts Group) (definition)
JPEG (Joint Photographic Experts Group)

A format for compressed photographic images that offers compression with minimal loss of image quality. Because of their compression (20 to 1) and small file size, JPEG images are widely used in Internet publishing.


Lab (definition)
Lab (CIE L*a*b)

A color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow).


Lens (definition)
lens

Object that protects part or all of an image when you perform color and tonal corrections. You can view the effect of a correction through a lens without affecting the underlying pixels. If you move a lens, the correction is applied to the pixels at the new location.


Lossless (definition)
lossless

The maintenance of image quality in an image that has been compressed and decompressed. The process of compressing and decompressing often degrades image quality.


Lossy (definition)
lossy

A noticeable degradation to image quality as a result of file compression.


Low-frequency areas (definition)
low-frequency areas

Smooth areas in an image where gradual changes take place. That is, areas where there are no edges or noise.


LZW (definition)
LZW

A lossless file compression technique that results in smaller file size and faster processing time. LZW compression is commonly used on .gif and .tiff files.


Marquee (definition)
marquee

A dashed outline that surrounds a selection or an object in an image. By default, object marquees are blue and mask marquees are black.


Mask (definition)
mask

A mask is applied to an image during image-editing to define protected areas and editable areas.


Mask modes (definition)
mask modes

Mask tool operation modes you must choose before you create or fine-tune a mask or selection. There are four mask modes: Normal, Additive, Subtractive, and XOR. The Normal mode (default) lets you select an area in an image. The Additive mode lets you expand the editable regions by selecting multiple areas in an image. The Subtractive mode lets you reduce the editable regions by removing areas from a selection. The XOR mode lets you select multiple areas in an image. If areas overlap, the overlapping regions are excluded from the selection and added to the mask.


Merge mode (definition)
merge mode

An editing state that determines how the selected paint, object, or fill color combines with other colors in the image.


Moire pattern (definition)
moiré pattern

Undesirable wave patterns that are created by conflicting dot patterns in an image. A Moiré pattern is created when halftone screens of two different frequencies are superimposed on an image. For example, when you scan a halftone image, you see Moiré patterns on your monitor because the original halftone screen is different than the dots per inch (dpi) frequency of the scanned image.

Moiré patterns can be damaging when they occur in color separations. Set the screen angles and frequencies of your halftone screen correctly to avoid this problem.


Mosaic (definition)
mosaic

The decorative artwork made by arranging small pieces of variously colored material to form pictures or patterns.


Multichannel (definition)
multichannel

A color mode that displays images using multiple color channels, each comprised of 256 shades of gray. When you convert an RGB color image to the Multichannel color mode, the individual color channels (red (R), green (G), and blue (B))are converted to grayscale information that reflects the color values of the pixels in each channel.


NCSA (definition)
NCSA (National Center for Supercomputing Applications)

If you are creating an image map to be displayed on the World Wide Web you need to know whether the server you are using runs CERN or NCSA, because different codes are used in the map files. Contact your server administrator to learn whether you are using CERN or NCSA.


nodes (definition)
nodes

The square points at the end of a line and a curve segment. You can change the shape of a line or curve by dragging one or more of its nodes.


Noise (definition)
noise

In bitmap editing, random pixels on the surface of a bitmap, resembling static on a television screen.


NTSC (definition)
NTSC (National Television Standards Committee)

A video color filter that is commonly used to define the gamut of colors supported by television monitors in North America.


Nudge (definition)
nudge

To move an object in increments.

See also super nudge.


Object (definition)
object

An independent bitmap that is layered above the background image. Changes applied to objects do not affect the underlying image.


Opaque (definition)
opaque

The inability to see through an object. If an object is 100% opaque, you cannot see through it. Opacity levels under 100% increase the ability to see through objects.

See also transparent.


overlay (definition)
overlay

A red-tinted, transparent sheet that you can superimpose on the protected areas in an image. The mask overlay makes it easy to distinguish between the selected and the masked regions in an image. When the overlay is applied, the masked areas are displayed in varying degrees of red (according to their transparency). The deeper the saturation of the red tint, the greater the degree of protection.


PAL (definition)
PAL

A video color filter that is commonly used to define the gamut of colors supported by television monitors in Europe and Asia.


Paletted color mode (definition)
paletted color mode

An 8-bit color mode that displays images using up to 256 colors. You can convert a complex image to the paletted color mode to reduce file size and to control the colors used throughout the conversion process more precisely.


PANTONE process colors palette(definition)
PANTONE process colors

The colors that are available through the PANTONE process color system, which is based on the CMYK color model.


Parameters (definition)
parameters

Attributes that appear after a recorded command in the Recorder Docker window. For example, dialog box options are not recorded as separate commands in the Recorder Docker window; they are recorded as attributes of the command that intially invoked the dialog box.


Parent object (definition)
parent object

An object whose shape is combined with the image pixels of another object, calles a child object, to create a clipping group. The parent object must be on an object layer below the child object.


Perspective handles (definition)
perspective handles

The hollow circles in the corners of the highlighting box.


Pixel (definition)
pixel

A colored dot that is the smallest part of a bitmapped image

See also resolution.


Pressure sensitive pen (definition)
pressure sensitive pen

A pen that you can use to access commands and draw your images in Corel PHOTO-PAINT. You must install the pressure-sensitive pen, along with a pressure-sensitive tablet and its corresponding Windows drivers, to use it with Corel PHOTO-PAINT.


Process color (definition)
process color

In commercial printing, colors that are produced from a blend of cyan, magenta, yellow, and black. This is different from a spot color, which is a solid ink color printed individually (one printing plate is required for each spot color).


Progressive (definition)
progressive

In JPEG images, a method of having the image appear on screen in its entirety, at a low, blocky resolution. As the image data loads, the image quality progressively improves.


Protected area (definition)
protected area

A protected area of a maskprevents paint and effects from being applied to underlying pixels.

See also editable area.


Radius (definition)
radius

As applied to orbits, sets the distance between the center of the brush stroke and the nibsthat travel around the center of the brush stroke when you paint with orbits. Increasing this value increases the size of the brush stroke.

As applied to the Dust & Scratch filter, sets the number of pixels surrounding the damaged area that are used to apply the filter.


Range sensitivity (definition)
range sensitivity

A paletted color mode option that lets you specify a focus color for the paletted conversion. You can adjust the color and specify its' importance to guide converting.


Rasterized image (definition)
rasterized image

An image that has been rendered into pixels. When you convert vector graphics files to bitmap files, you create rasterized images.


Recording (definition)
recording

A series of commands that you record in the Recorder Docker window. Recordings let you automate a series of actions to repeat on the same image or on several different images. Recordings are not saved when you end your Corel PHOTO-PAINT session.


Render (definition)
render

The process of capturing a two-dimensional image from a three-dimensional model.


Resample (definition)
resample

The process of changing the resolution or size of an image to change the number of pixels it contains. Upsampling increases the resolution, increasing the number of pixels; downsampling reduces the resolution, decreasing the number of pixels.


Resolution (definition)
resolution

The amount of detail and information that an image file contains, as well as the level of detail that an input, output, or display device is capable of producing. When you work with bitmapped images, resolution affects both the quality of the final output and the file size.


RGB (definition)
RGB

A color mode in which the three colors of light (red, green, and blue) are combined in varying intensities to produce all other colors. A value between 0 and 255 is assigned to each channel of red, green and blue. Monitors, scanners, and the human eye use RGB to produce or detect color.


rotation handles

The curved, double arrows in the corners of the highlighting box.


Saturation (definition)
saturation

The purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray.


Scanner (definition)
scanner

A device that converts images on paper, transparency, or film to digital form. Scanners produce bitmap or raster images.


Script (definition)
script

A recording that has been saved to disk and that can be retrieved at any time. Scripts let you automate a series of actions to repeat on the same image or on several different images. Both a recording and a script are created, edited, and played back using the tape deck controls and commands in the Recorder Docker window.


Seed color (definition)
seed color

The color of the first pixel that you click when you define a selection and mask using the Lasso and Magic Wand mask tools. This color is used by the tolerance value to set the sensitivity of the color detection in color selections and masks.


Segment path (definition)
segment (path)

The section of a path located between two consecutive nodes. A path is a series of segments.


Selection (definition)
selection

An area of an image that is not protected by a mask and that is, therefore, available for editing. The selection is affected by the use of painting and editing tools, special effects, and image commands.


Shape cursor (definition)
shape cursor

Uses the shape and size of the nib of the current tool as a cursor.


Skewing handle (definition)
skewing handles

Skewing handles are the straight, double-headed arrows located in the center of each side of the highlighting box.


Source application (definition)
source application

In Object Linking and Embedding (OLE), the application used to create the source file.


source file (definition)
source file

In Object Linking and Embedding (OLE), the file that contains the object you want to link or embed in a Corel application.


Spot color (definition)
spot color

In commercial printing, a solid ink color that prints individually, one plate per spot color.


spread (definition)
spread

A type of trap that is created by extending the foreground object into the background object.


Stacking order (definition)
stacking order

The sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top.


Stylus (definition)
stylus

A pressure-sensitive pen device, used in conjunction with a Pen Tablet, that allows you to draw paint strokes using hand pressure.


Subpath (definition)
subpath

A segment which is not joined to the main path.


Subtractive color model (definition)
subtractive color model

A color model, such as CMYK, that creates color by subtracting wavelengths of light reflected from an object. For example, a colored ink appears blue if it absorbs all colors except blue.


Super nudge (definition)
super nudge

To move an object in large increments. The super nudge value is multiplied by the nudge value to obtain the distance by which the object is moved.


Swap disk (definition)
swap disk

Hard drive space used by applications to store temporary files not in use to artificially increase the amount of memory available in your computer.


Swatch (definition)
swatch

One of a series of solid-colored patches used as a sample when selecting color. A printed booklet of swatches is called a swatchbook. Swatch also refers to the colors contained in the Color Palette.


Threshold (definition)
threshold

A level of tolerance for tonal variation in a bitmapped image. For example, when you convert an image to the Black-and-White color mode, the threshold you set determines how many tonal values are converted to black and how many to white.


Threshold path(definition)
threshold (path)

A control available when you create a path from a mask. Threshold values range from 1 to 10 and determine the size of the angle required between sections of a mask for a node to be created at the intersection of the sections. A low value produces more cusps, and therefore more nodes on the resulting path.


Thumbnail (definition)
thumbnail

A miniature, low-resolution version of an image or illustration.


Tightness path (definition)
tightness (path)

A control available when you create a path from a mask marquee. Tightness values range from 1 to 10 and determine how close the path's shape will be to that of the marquee. The higher the value, the more the new path resembles the marquee; it will have more nodes than a path with a lower tightness value.


Tint (definition)
tint

A semitransparent color applied over an image. Also called a color cast.


Transparency (definition)
transparency

The ability to see through an item. The opposite of transparent is opaque. Setting lower levels of transparency causes higher levels of opacity and less visibility of the underlying items or image.


True color (definition)
True color

A term that refers to digital RGB color that is composed of 24-bits or 16.7 million colors.


TWAIN (definition)
TWAIN

An interface that allows Corel graphics applications to acquire an image from imaging hardware such as a scanner or a digital camera, without using any additional applications. By using the TWAIN driver supplied by the manufacturer of the imaging hardware, Corel graphics applications can acquire images directly from a digital camera or scanner.


URL (definition)
URL (Uniform Resource Locator)

A unique address that defines where a Web page is located on the Internet.


Vector graphic (definition)
vector graphic

An image generated from mathematical descriptions that determine the position, length, and direction in which lines are drawn. Vector graphics are created as collections of lines rather than as patterns of individual dots or pixels.


Watermark (definition)
watermark

A small amount of random noise added to the luminance component of the image pixels, which carries information about the image that survives normal editing, printing, and scanning.


ZIP (definition)
ZIP

A lossless file compression technique that results in smaller file size and faster processing time.


The Corel PHOTO-PAINT 11 object model

The VBA programming language automates tasks within an application, by manipulating the components of the application's object model. An object model represents the hierarchy of objects within an application and their relationship to each other within the structure.

In Corel PHOTO-PAINT, the Application object represents the top of the object hierarchy, the program itself. Starting with the Application object, you can "drill down" and navigate through the object model until you find the desired, and usually more specific, object. To reference an object with Visual Basic code, you separate each level of the object hierarchy with the dot operator (.).

For example, Application.ActiveDocument references the Document object, but separates the Document class from the Application class with the use of the dot operator. It is important to note that you do not need to reference the Application object when accessing objects in the object model of Corel PHOTO-PAINT.

A diagram of the object model of Corel PHOTO-PAINT 11 is provided for your reference. If you have difficulty opening this PDF file, you can find it in the folder C:\Program Files\Corel\Corel Graphics 11\Programs where C corresponds to the drive where you installed Corel PHOTO-PAINT, and where Program Files\Corel\Corel Graphics 11\Program corresponds to the path where you installed Corel PHOTO-PAINT.


AddinHook properties

AddinHook     Legend

    Application
      Filter
      Index
    Parent


AddinHook events

AddinHook

Execute
New


AddinHook

Class AddinHook

Properties     Events     Referenced By

 Related Topics


AddinHook.Application

Property Application As Application

AddinHook

Description

Read-Only

 Related Topics


AddinHook.Filter

Property Filter As pntAddinFilter

AddinHook

Description

Example

Example of usage goes here

Code line

 Related Topics


AddinHook.Index

Property Index As Long

AddinHook

Description

Example

Example of usage goes here

Code line

 Related Topics


AddinHook.Parent

Property Parent As Application

AddinHook

Description

Read-Only

 Related Topics


AddinHook.Execute

Event Execute()

AddinHook

Description

Example

Example of usage goes here

Code line

 Related Topics


AddinHook.New

Event New(ByVal NewDocument As Document)

AddinHook

Description

Parameters	Description

NewDocument	Description of NewDocument goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


AddIns properties

AddIns     Legend

    Application
    Collection
    Parent


AddIns methods

AddIns     Legend

   Attach
   Detach
   DetachAll


AddIns

Class AddIns

Properties     Methods     Referenced By

 Related Topics


AddIns.Application

Property Application As Application

AddIns

Description

Read-Only

 Related Topics


AddIns.Collection

Property Collection As Object

AddIns

Description

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


AddIns.Parent

Property Parent As Application

AddIns

Description

Read-Only

 Related Topics


AddIns.Attach

Function Attach(ByVal Filter As pntAddinFilter, [ByVal ExecuteCommandPrompt As String]) As AddinHook

AddIns

Description

Parameters	Description

Filter	Description of Filter goes here [in]

ExecuteCommandPrompt	Description of ExecuteCommandPrompt goes here [in]
Optional

Return value

Returns AddinHook

Example

Example of usage goes here

Code line

 Related Topics


AddIns.Detach

Sub Detach(ByVal pAddinHook As AddinHook)

AddIns

Description

Parameters	Description

pAddinHook	Description of pAddinHook goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


AddIns.DetachAll

Sub DetachAll()

AddIns

Description

Example

Example of usage goes here

Code line

 Related Topics


Application properties

Application     Legend

    ActiveDocument
    ActiveFrame
    ActiveLayer
    ActivePalette
    ActiveWindow
    ActiveWorkspace
    AddIns
    Application
    AppWindow
    Clipboard
    ConfigPath
    Documents
      EventsEnabled
      PaintColor
    Palettes
      PaperColor
    Parent
    Path
    Printers
    PrintJob
    SetupPath
    VBE
    Version
    VersionBuild
    VersionMajor
    VersionMinor
      Visible
    Windows
    Workspaces


Application methods

Application     Legend

   CombineChannels
   CorelScript
   CorelScriptTools
   CreateBWColor
   CreateCMYColor
   CreateCMYKColor
   CreateColor
   CreateColorEx
   CreateDocument
   CreateFixedColor
   CreateGrayColor
   CreateHLSColor
   CreateHSBColor
   CreateLabColor
   CreateRegistrationColor
   CreateRGBColor
   CreateYIQColor
   OpenCorelScriptFile
   OpenDocument
   Quit


Application

Class Application

Properties     Methods     Referenced By

The Application class defines the characteristics of the main Corel PHOTO-PAINT application and describes the look and behavior of the application through its properties and methods.

The Application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. With the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same Application object.

The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics. Corel PHOTO-PAINT puts the tools and supplies of a professional graphic design studio at your fingertips. With a click of the mouse, you can choose from a vast array of media and textures, unlimited colors, brushes of every shape and size, and a library of ready-made images. You can create your images from scratch, touch-up photographs, add text and special effects, and change the lighting that surrounds your subject. Corel PHOTO-PAINT provides hundreds of other fantastic features that you can use to imitate painting and photography techniques or to develop your own artistic style. You can also animate your images and share them with the world by publishing your work to the Internet.

Many elements in the work area give you control over the tools and features of Corel PHOTO-PAINT. Some of these elements include toolbars, the Property Bar, menu commands, and Docker windows. As you create your images, you can also access online Help topics at any time. If you require additional assistance, there are a variety of technical support services available.

 Related Topics


Application.ActiveDocument

Property ActiveDocument As Document

Application

Description

The ActiveDocument property returns a value associated with the current document in Corel PHOTO-PAINT. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

Although several documents may be open in Corel PHOTO-PAINT at one time, the active document is the document that is currently in use.

It is important to note that you do not need to activate a document before working with it in Corel PHOTO-PAINT. A document is automatically activated when it is referenced in a programming structure. For example:

Documents(1).Activate

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.ActiveFrame

Property ActiveFrame As Frame

Application

Description

The ActiveFrame property returns a value associated with the current frame in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.ActiveLayer

Property ActiveLayer As Layer

Application

Description

The ActiveLayer property returns a value associated with the active layer of Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

Once active, a layer is ready to receive any new objects you draw, import, or paste onto it.

The ActiveLayer property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.ActivePalette

Property ActivePalette As Palette

Application

Description

The ActivePalette property returns a value associated with the current color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

You can use standard color collections like the Uniform Color Palette, customizable Color Palettes that you create and arrange, or color-matching systems like the PANTONE MATCHING SYSTEM.

It is important to note that even though Corel PHOTO-PAINT may have several color palettes, the active palette is the palette that is currently in use in Corel PHOTO-PAINT.

The ActivePalette property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the default palette, and the number of colors in that palette, in a message box:

Sub PaletteActive()

MsgBox "The default color palette is: " & ActivePalette.Name _

& "It contains " & ActivePalette.ColorCount & " colors."

End Sub

 Related Topics


Application.ActiveWindow

Property ActiveWindow As Window

Application

Description

The ActiveWindow property returns a value associated with the active window in Corel PHOTO-PAINT. A window contains a Corel PHOTO-PAINT image. Corel PHOTO-PAINT may have several windows open at one time, but the active window is the window that is currently in use.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The ActiveWindow property returns a Read-Only value.

Read-Only

Example

The following code example refreshes the active window (updates it with the most recent information) in the current document:

Sub WindowActive()

ActiveWindow.Refresh

End Sub

 Related Topics


Application.ActiveWorkspace

Property ActiveWorkspace As Workspace

Application

Description

The ActiveWorkspace property returns a value associated with the current workspace in Corel PHOTO-PAINT. A workspace is a container for all the files that make up a project. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. Several workspaces may be available in the application, but the active workspace is the workspace that is currently in use.

You can create multiple workspaces for specific users or specific tasks and then apply them when required. You can also delete workspaces when they are no longer needed.

The ActiveWorkspace property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the active workspace in a message box:

Sub WorkspaceActive()

 MsgBox ActiveWorkspace.Name

End Sub

 Related Topics


Application.AddIns

Property AddIns As AddIns

Application

Description

Gets Addins

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.Application

Property Application As Application

Application

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub ApplicationVersion()

 MsgBox "You are using: Corel PHOTO-PAINT " & Version

End Sub

 Related Topics


Application.AppWindow

Property AppWindow As AppWindow

Application

Description

The AppWindow property returns a value associated with the application window of Corel PHOTO-PAINT. The application window is the area of Corel PHOTO-PAINT that contains the toolbars, workspaces, and windows. It is the container for the Corel PHOTO-PAINT application. Specifies attributes of the main application window in the Corel PHOTO-PAINT application.

The AppWindow property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the main application window in a message box:

Sub CaptionAppWindow()

MsgBox AppWindow.Caption

End Sub

 Related Topics


Application.Clipboard

Property Clipboard As Clipboard

Application

Description

The Clipboard property returns a value associated with the system clipboard on the local computer. The clipboard is a temporary storage area that is used to hold cut or copied information. The clipboard is always present in Windows and it stores information until it is replaced by another object or selection that has been cut or copied, or until you quit the current session of Windows.

The Clipboard property returns a Read-Only value.

Read-Only

Example

The following code example checks to see if there is any data in the system clipboard. If data is present, it is pasted into the current document. If no data is present, a message displays in a message box:

Sub ClipboardData()

If Not Clipboard.Empty Then	'if there is data in the clipboard

 ActiveLayer.Paste	'paste data into the active layer

Else

 MsgBox "There is no data in the clipboard."

End If

End Sub

 Related Topics


Application.ConfigPath

Property ConfigPath As String

Application

Description

The ConfigPath property returns a string value associated with the location of the configuration directory of Corel PHOTO-PAINT. The configuration directory contains the software settings used to customize an application. .

The ConfigPath property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the Corel PHOTO-PAINT configuration directory in a message box:

Sub PathConfig()

 MsgBox ConfigPath

End Sub

 Related Topics


Application.Documents

Property Documents As Documents

Application

Description

The Documents property returns information about the Documents collection in Corel PHOTO-PAINT. The application object refers to the Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

The Documents collection defines the characteristics of document collection objects and describes the look and behavior of the collections objects through its properties, methods, and events.

A Document in Corel PHOTO-PAINT is a single page image, or a collection of single-page images that make up a multi-page document.

The Documents property returns a Read-Only value.

Read-Only

Example

The following code example counts the number of documents in the Documents collection:

Sub ApplicationDocument()

MsgBox Documents.Count

End Sub

 Related Topics


Application.EventsEnabled

Property EventsEnabled As Boolean

Application

Description

The EventsEnabled property returns a True or False value indicating the enabled status of an event in Corel PHOTO-PAINT. An event is enabled if it is ready and able to execute in the application. If an event is enabled, its EventsEnabled status is true. If the event is disabled, the status is set to false. Events are often disabled to temporarily improve performance and speed within Corel PHOTO-PAINT.

The EventsEnabled property returns a Boolean value.

Example

The following code example sets the EventsEnabled property to True:

Sub EnabledEvents()

Dim state As Boolean

state = EventsEnabled

End Sub

 Related Topics


Application.PaintColor

Property PaintColor As Color

Application

Description

The PaintColor property returns information about the paint color used in Corel PHOTO-PAINT. The paint color is the color used by the Paint tool to apply color and by the Shape Tools as an outline color.

Example

Example of usage goes here

Code line

 Related Topics


Application.Palettes

Property Palettes As Palettes

Application

Description

The Palettes property returns information about the Palettes collection in Corel PHOTO-PAINT. The Palettes collection defines the characteristics of Palette collection objects and describes the look and behavior of the collections objects through its properties, methods, and events.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

You can use standard color collections like the Uniform Color Palette, customizable Color Palettes that you create and arrange, or color matching systems like the PANTONE MATCHING SYSTEM.

The Palettes property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of all palettes in use, and the number of colors in each palette, in a message box:

Sub PalettesList()

Dim pal As Palette

Dim s As String

s = "Active palettes: "

For Each pal In Palettes

 s = s & pal.Name & " (" & pal.ColorCount & " colors)"

Next pal

 MsgBox s

End Sub

 Related Topics


Application.PaperColor

Property PaperColor As Color

Application

Description

Gets or sets the paper color (used when clearing or erasing the image)

Example

Example of usage goes here

Code line

 Related Topics


Application.Parent

Property Parent As Application

Application

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. The application object refers to the Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the application path in a message box:

Sub ParentApplication()

 MsgBox .Parent.Path

End Sub

 Related Topics


Application.Path

Property Path As String

Application

Description

The Path property returns a string value associated with the full path identity of the Corel PHOTO-PAINT directory. A path is the physical folder location of the application on a hard drive.

The Path property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the Corel PHOTO-PAINT directory in a message box:

Sub PathApplication()

MsgBox Path

End Sub

 Related Topics


Application.Printers

Property Printers As SystemPrinters

Application

Description

Gets the printers

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.PrintJob

Property PrintJob As PrintJob

Application

Description

Gets the print job

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Application.SetupPath

Property SetupPath As String

Application

Description

The SetupPath property returns a string value associated with the location of the setup directory of Corel PHOTO-PAINT. The setup directory contains the software settings used to install an application. .

The SetupPath property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the Corel PHOTO-PAINT setup directory in a message box:

Sub PathSetup()

MsgBox SetupPath

End Sub

 Related Topics


Application.VBE

Property VBE As Object

Application

Description

The VBE property returns a reference to the VBA Editor in Corel PHOTO-PAINT. The VBA Editor is the component that creates, stores and edits VBA code modules in Corel PHOTO-PAINT. A VBA code module is a programming package of Visual Basic for Applications code segments.

VBA is a subset of the Microsoft Visual Basic (VB) object-oriented programming environment. VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model. VBA can access other applications from within Corel PHOTO-PAINT by referencing that application's object model components.

The VBE property returns a Read-Only value.

Read-Only

Example

The following code example displays the editor type name in the Debug window of the VBA Editor in Corel PHOTO-PAINT:

Sub AppVBE()

Dim obj as Object

Set obj = Application.VBE

 Debug.Print TypeName (obj)

End Sub

 Related Topics


Application.Version

Property Version As String

Application

Description

The Version property returns a value associated with the current version of Corel PHOTO-PAINT. A version is an edition of Corel PHOTO-PAINT - it is a particular form of the application, differing from previous editions. The Version property contains the version major number (before the decimal) and version minor number (after the decimal) of version numbers.

The Version property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub AppVersion()

 MsgBox "You are using: " & Version

End Sub

 Related Topics


Application.VersionBuild

Property VersionBuild As Long

Application

Description

The VersionBuild property returns a value associated with the current version of Corel PHOTO-PAINT. A version is an edition of Corel PHOTO-PAINT - it is a particular form of the application, differing from previous editions. The VersionBuild property returns only the build number of the current version. A build is specific edition of an application within a version in an application development environment.

The VersionBuild property is a Read-Only value.

Read-Only

Example

The following code example displays the build number of the current Corel PHOTO-PAINT application in a message box:

Sub BuildVersion()

MsgBox "You are using Corel PHOTO-PAINT build " & VersionBuild

End Sub

 Related Topics


Application.VersionMajor

Property VersionMajor As Long

Application

Description

The VersionMajor property returns a value associated with the current version of Corel PHOTO-PAINT. A version is an edition of Corel PHOTO-PAINT - it is a particular form of the application, differing from previous editions. The VersionMajor property returns only the first part of the version number (to the left of the decimal place).

For example, if the current version is 11.396, the major version value would be 11.

The VersionMajor property is a Read-Only value.

Read-Only

Example

The following code example checks the current version of Corel PHOTO-PAINT to ensure that the version number is at least 11.200:

Sub MajorVersion()

If VersionMajor = 11 And VersionMinor < 200 Then

 MsgBox "This script requires that Corel PHOTO-PAINT version 11.200 or later be installed."

End If

End Sub

 Related Topics


Application.VersionMinor

Property VersionMinor As Long

Application

Description

The VersionMinor property returns a value associated with the current version of Corel PHOTO-PAINT. A version is an edition of Corel PHOTO-PAINT - it is a particular form of the application, differing from previous editions. The VersionMinor property returns only the second part of the version number (to the right of the decimal place).

For example, if the current version is 11.396, the minor version value is .396.

The VersionMinor property is a Read-Only value.

Read-Only

Example

The following code example checks the current version of Corel PHOTO-PAINT to ensure that the version number is at least 10.200:

Sub MinorVersion()

If VersionMajor = 11 And VersionMinor < 200 Then

 MsgBox "This script requires that Corel PHOTO-PAINT version 11.200 or later be installed."

End If

End Sub

 Related Topics


Application.Visible

Property Visible As Boolean

Application

Description

The Visible property returns or sets a True or False value indicating the visibility status of Corel PHOTO-PAINT. The application object refers to the Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

If the Visible property is True, the application is running and visible on the monitor display. This property allows you to show or hide the Corel PHOTO-PAINT application window.

Example

The following code example hides Corel PHOTO-PAINT by setting the Visible property to False, and then shows Corel PHOTO-PAINT by setting the Visible property to True. Message boxes display messages indicating the visibility of the application:

Sub ApplicationVisible()

Visible = False

 MsgBox "Corel PHOTO-PAINT is hidden."

Visible = True

 MsgBox "Corel PHOTO-PAINT is now visible."

End Sub

 Related Topics


Application.Windows

Property Windows As Windows

Application

Description

The Windows property returns information about the Windows collection in Corel PHOTO-PAINT. The Windows collection defines the characteristics of windows collection objects and describes the look and behavior of the collections objects through its properties, methods, and events.

A Window contains a Corel PHOTO-PAINT image. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The Windows property returns a Read-Only value.

Read-Only

Example

The following code example tiles all document windows horizontally:

Sub WindowsTile()

Windows.Arrange cdrTileHorizontally

End Sub

 Related Topics


Application.Workspaces

Property Workspaces As Workspaces

Application

Description

The Workspaces property returns information about the Workspaces collection in Corel PHOTO-PAINT. The Workspaces collection defines the characteristics of Workspace collection objects and describes the look and behavior of the collections objects through its properties, methods, and events.

A workspace is a container for all the files that make up a project. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. Several workspaces may be available in the application, but the active workspace is the workspace that is currently in use.

You can create multiple workspaces for specific users or specific tasks and then apply them when required. You can also delete workspaces when they are no longer needed.

The Workspaces property returns a Read-Only value.

Read-Only

Example

The following code example displays the available workspaces in a message box, with an asterisk next to the name of the active workspace:

Sub WorkspaceCollection()

Dim s As String

Dim wks As Workspace

s = "Available Workspaces: "

For Each wks In Workspaces

 s = s & wks.Name

 If wks.Active Then

 s = s & " *"

 End If

Next wks

MsgBox s

End Sub

 Related Topics


Application.CombineChannels

Function CombineChannels(ByVal Mode As pntSplitMode, ByVal Channel1 As Document, ByVal Channel2 As Document, ByVal Channel3 As Document, [ByVal Channel4 As Document = Nothing], [ByVal CloseOriginals As Boolean = True], [ByVal Name As String]) As Document

Application

Description

Combine a set of channels into a new document

Parameters	Description

Mode	Description of Mode goes here [in]

Channel1	Description of Channel1 goes here [in]

Channel2	Description of Channel2 goes here [in]

Channel3	Description of Channel3 goes here [in]

Channel4	Description of Channel4 goes here [in]
Optional
Default value = Nothing

CloseOriginals	Description of CloseOriginals goes here [in]
Optional
Default value = True

Name	Description of Name goes here [in]
Optional

Return value

Returns Document

Example

Example of usage goes here

Code line

 Related Topics


Application.CorelScript

Function CorelScript() As Object

Application

Description

The CorelScript method creates a Corel SCRIPT object. With Corel PHOTO-PAINT you can create, save, and run a script using the Corel SCRIPT language. This means that when working in Corel PHOTO-PAINT you can automate operations you use frequently by creating and saving a script. For more advanced script writing and editing, you can use the tools provided with the Corel SCRIPT Editor.

Although most Corel PHOTO-PAINT application commands are one-word equivalents of their corresponding menu commands, you might need more than the command itself to execute an action in these applications. If a command needs more information than is provided by the command name alone, parameters are required. Parameters represent aspects of the feature that you can change or selections you can make.

Corel SCRIPT programming statements and functions are a common set of instructions that can be used with any Corel application that supports scripting. Programming statements and functions are derived from traditional BASIC programming language dialects.

Return value

Returns Object

Example

Example of usage goes here

Code line

 Related Topics


Application.CorelScriptTools

Function CorelScriptTools() As Object

Application

Description

The CorelScriptTools method creates a CorelSCRIPT tool object. A script tool is implemented to assist with a particular Corel SCRIPT task. With Corel PHOTO-PAINT you can create, save, and run a script using the Corel SCRIPT language. This means that when working in Corel PHOTO-PAINT you can automate operations you use frequently by creating and saving a script. For more advanced script writing and editing, you can use the tools provided with the Corel SCRIPT Editor.

Return value

Returns Object

Example

Example of usage goes here

Code line

 Related Topics


Application.CreateBWColor

Function CreateBWColor(ByVal White As Boolean) As Color

Application

Description

The CreateBWColor method creates a new color based on the Black and White color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Black and White color model is a 1-bit color mode that stores images as two solid colors - black and white - with no gradations. This color mode is useful for line art and simple graphics.

Parameters	Description

White	Sets the appearance of white in the Black and White color model. This value is a True or False value. [in]

Return value

Returns Color

Example

CreateBWColor (True)

 Related Topics


Application.CreateCMYColor

Function CreateCMYColor(ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long) As Color

Application

Description

The CreateCMYColor method creates a new color based on the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Parameters	Description

Cyan	Sets the level of cyan in the CMY color model. Values range from 0 to 255. [in]

Magenta	Sets the level of magenta in the CMY color model. Values range from 0 to 255. [in]

Yellow	Sets the level of magenta in the CMY color model. Values range from 0 to 255. [in]

Return value

Returns Color

Example

CreateCMYColor (255, 100, 100)

 Related Topics


Application.CreateCMYKColor

Function CreateCMYKColor(ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long) As Color

Application

Description

The CreateCMYKColor method creates a new color based on the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Parameters	Description

Cyan	Sets the level of cyan in the CMY color model. Values range from 0 to 255. [in]

Magenta	Sets the level of magenta in the CMY color model. Values range from 0 to 255. [in]

Yellow	Sets the level of magenta in the CMY color model. Values range from 0 to 255. [in]

Black	Sets the level of black in the CMYK color model. Values are percentages and range from 0 to 100. [in]

Return value

Returns Color

Example

CreateCMYKColor (100, 0, 100, 0)

 Related Topics


Application.CreateColor

Function CreateColor() As Color

Application

Description

The CreateColor method creates a color object in Corel PHOTO-PAINT. When this method is used to create a color object, it creates the object with default color properties. You can change the default outline and fill colors by choosing a color when no object is selected. A dialog box prompts you to select the type of object for which you want to change the default color.

Return value

Returns Color

Example

Example of usage goes here

Code line

 Related Topics


Application.CreateColorEx

Function CreateColorEx([ByVal Model As Long = 0], [ByVal c1 As Long = 0], [ByVal c2 As Long = 0], [ByVal c3 As Long = 0], [ByVal c4 As Long = 0], [ByVal c5 As Long = 0], [ByVal c6 As Long = 0], [ByVal c7 As Long = 0]) As Color

Application

Description

The CreateColorEx method creates a new color, with specified color information, in Corel PHOTO-PAINT. This color is added to the active palette.

With the CreateColorEx method, you must specify the color model and components by passing them in a parameter:

Parameters	Description

Model	Description of Model goes here [in]
Optional
Default value = 0

c1	The c1 parameter specifies the numeric variable that is assigned to the first color component of the selected color model. For example, cyan is the first color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [in]
Optional
Default value = 0

c2	The c2 parameter specifies the numeric variable that is assigned to the second color component of the selected color model. For example, magenta is the second color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [in]
Optional
Default value = 0

c3	The c3 parameter specifies the numeric variable that is assigned to the third color component of the selected color model. For example, yellow is the third color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [in]
Optional
Default value = 0

c4	The c4 parameter specifies the numeric variable that is assigned to the fourth color component of the selected color model. For example, black is the fourth color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [in]
Optional
Default value = 0

c5	The c5 parameter specifies the numeric variable that is assigned to the fifth color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT has the ability to create colors using seven color channels. [in]
Optional
Default value = 0

c6	The c6 parameter specifies the numeric variable that is assigned to the sixth color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT has the ability to create colors using seven color channels. [in]
Optional
Default value = 0

c7	The c7 parameter specifies the numeric variable that is assigned to the seventh color component of the selected color model. Even though the most popular color models use only four levels of color saturations, Corel PHOTO-PAINT has the ability to create colors using seven color channels. [in]
Optional
Default value = 0

Return value

Returns Color

Example

The following code example adds a new color to the active color palette using the CreateColorEx method. The new color is added to the active color palette in Corel PHOTO-PAINT:

Sub CreatePaletteColor()

ActivePalette.AddColor CreateColorEx(2, 90, 90, 0, 0)

End Sub

 Related Topics


Application.CreateDocument

Function CreateDocument(ByVal Width As Long, ByVal Height As Long, [ByVal Mode As cdrImageMode = cdrImageRGB (0)], [ByVal HRes As Long = 72], [ByVal VRes As Long = 72], [ByVal HasBackground As Boolean = True], [ByVal BackColor As Color = Nothing], [ByVal Movie As Boolean = False], [ByVal MovieFrames As Long = 1]) As Document

Application

Description

Creates a new document

Parameters	Description

Width	Description of Width goes here [in]

Height	Description of Height goes here [in]

Mode	Description of Mode goes here [in]
Optional
Default value = cdrImageRGB (0)

HRes	Description of HRes goes here [in]
Optional
Default value = 72

VRes	Description of VRes goes here [in]
Optional
Default value = 72

HasBackground	Description of HasBackground goes here [in]
Optional
Default value = True

BackColor	Description of BackColor goes here [in]
Optional
Default value = Nothing

Movie	Description of Movie goes here [in]
Optional
Default value = False

MovieFrames	Description of MovieFrames goes here [in]
Optional
Default value = 1

Return value

Returns Document

Example

Example of usage goes here

Code line

 Related Topics


Application.CreateFixedColor

Function CreateFixedColor(ByVal PaletteID As cdrPaletteID, ByVal PaletteIndex As Long, [ByVal Tint As Long = 100]) As Color

Application

Description

The CreateFixedColor method creates a new color from a fixed color palette in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Parameters	Description

PaletteID	Sets the Palette ID that uniquely identifies which color palette to use in Corel PHOTO-PAINT. [in]

PaletteIndex	Sets the color to use by referencing the index number of a color within a palette.) [in]

Tint	Sets the tint of the palette color. Tints are lighter shades of a spot color that are created by changing the percentage tint value. This value is optional and the default value is 100. [in]
Optional
Default value = 100

Return value

Returns Color

Example

CreateFixedColor ( cdrPANTONECoated, 1, 50)

 Related Topics


Application.CreateGrayColor

Function CreateGrayColor(ByVal GrayValue As Long) As Color

Application

Description

The CreateGrayColor method creates a new color from the Grayscale color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Grayscale color model is a color mode that displays images using 256 shades of gray. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). In the RGB color mode, a grayscale value corresponds to equal amounts of all RGB colors; in CMYK, a grayscale value corresponds to zero C, M, and Y values, with a positive K value; in HSB, a grayscale value corresponds to zero H and S values, with a positive B value. The Grayscale color mode is based on the Grayscale color model.

Parameters	Description

GrayValue	Sets the level of gray in the Grayscale color model. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). [in]

Return value

Returns Color

Example

CreateGrayColor (255)

 Related Topics


Application.CreateHLSColor

Function CreateHLSColor(ByVal Hue As Long, ByVal Lightness As Long, ByVal Saturation As Long) As Color

Application

Description

The CreateHLSColor method creates a new color from the HLS color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Parameters	Description

Hue	Sets the Hue for the HLS color model. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]

Lightness	Sets the Lightness for the HLS color model. Lightness determines the intensity of the color. Values range from 0 to 100. [in]

Saturation	Sets the Saturation for the HLS color model. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]

Return value

Returns Color

Example

CreateHLSColor (200, 100, 100)

 Related Topics


Application.CreateHSBColor

Function CreateHSBColor(ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long) As Color

Application

Description

The CreateHSBColor method creates a new color from the HSB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Parameters	Description

Hue	Sets the Hue for the HSB color model. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]

Saturation	Sets the Saturation for the HSB color model. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]

Brightness	Sets the Brightness for the HSB color model. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white. [in]

Return value

Returns Color

Example

CreateHSBColor (200, 100, 100)

 Related Topics


Application.CreateLabColor

Function CreateLabColor(ByVal L As Long, ByVal A As Long, ByVal B As Long) As Color

Application

Description

The CreateLabColor method creates a new color from the Lab color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Parameters	Description

L	Sets the Luminance, or brightness, value in the LAB color model. Values range from 0 to 255. [in]

A	Sets one of two chromatic components in the LAB color model. "A" refers to a range of colors between green and red. [in]

B	Sets one of two chromatic components in the LAB color model. "B" refers to a range of colors between blue and yellow. [in]

Return value

Returns Color

Example

CreateLabColor (128, 0, 0)

 Related Topics


Application.CreateRegistrationColor

Function CreateRegistrationColor() As Color

Application

Description

The CreateRegistrationColor method creates a new color based on the Registration color model in Corel PHOTO-PAINT. Color trapping is necessary to compensate for poor color registration that occurs when the printing plates used to print each color, called color separations, are not aligned perfectly. Poor registration causes unintentional white slivers to appear between adjoining colors. Trapping is accomplished by intentionally overlapping colors so that minor problems with alignment are not noticed.

Return value

Returns Color

Example

CreateRegistationColor

 Related Topics


Application.CreateRGBColor

Function CreateRGBColor(ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long) As Color

Application

Description

The CreateRGBColor method creates a new color from the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Parameters	Description

Red	Sets the level of red in the RGB color model. Values range from 0 to 255. [in]

Green	Sets the level of green in the RGB color model. Values range from 0 to 255. [in]

Blue	Sets the level of blue in the RGB color model. Values range from 0 to 255. [in]

Return value

Returns Color

Example

CreateRGBColor (255, 0, 0)

 Related Topics


Application.CreateYIQColor

Function CreateYIQColor(ByVal Y As Long, ByVal I As Long, ByVal Q As Long) As Color

Application

Description

The CreateYIQColor method creates a new color from the YIQ color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Parameters	Description

Y	Sets the luminance, or brightness, value in the YIQ color model. Values range from 0 to 255. [in]

I	Sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255. [in]

Q	Sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255. [in]

Return value

Returns Color

Example

CreateYIQColor (100, 255, 255)

 Related Topics


Application.OpenCorelScriptFile

Function OpenCorelScriptFile(ByVal FileName As String) As CorelScriptFile

Application

Description

The OpenCorelScriptFile method opens an existing Corel SCRIPT file and runs the script from a VBA macro. A macro is a collection of automatic tasks performing an action. It is a symbol, name or key that represents a list of commands.

With the OpenCorelScriptFile method, you must specify the script file by passing the file name in a parameter:

Parameters	Description

FileName	The FileName parameter identifies the full path name of the Corel SCRIPT file that is opened up in Corel PHOTO-PAINT and executed by converting it to a VBA macro. [in]

Return value

Returns CorelScriptFile

Example

Example of usage goes here

Code line

 Related Topics


Application.OpenDocument

Function OpenDocument(ByVal FileName As String, [ByVal Filter As cdrFilter = cdrAutoSense (0)], [ByVal LoadMode As pntLoadMode = pntLoadAll (0)], [ByVal Left As Long = 0], [ByVal Top As Long = 0], [ByVal Width As Long = 0], [ByVal Height As Long = 0], [ByVal DpiX As Long = 72], [ByVal DpiY As Long = 72], [ByVal StartFrame As Long = 1], [ByVal EndFrame As Long = 0]) As Document

Application

Description

Opens a document

Parameters	Description

FileName	Description of FileName goes here [in]

Filter	Description of Filter goes here [in]
Optional
Default value = cdrAutoSense (0)

LoadMode	Description of LoadMode goes here [in]
Optional
Default value = pntLoadAll (0)

Left	Description of Left goes here [in]
Optional
Default value = 0

Top	Description of Top goes here [in]
Optional
Default value = 0

Width	Description of Width goes here [in]
Optional
Default value = 0

Height	Description of Height goes here [in]
Optional
Default value = 0

DpiX	Description of DpiX goes here [in]
Optional
Default value = 72

DpiY	Description of DpiY goes here [in]
Optional
Default value = 72

StartFrame	Description of StartFrame goes here [in]
Optional
Default value = 1

EndFrame	Description of EndFrame goes here [in]
Optional
Default value = 0

Return value

Returns Document

Example

Example of usage goes here

Code line

 Related Topics


Application.Quit

Sub Quit()

Application

Description

The Quit method closes the current session of Corel PHOTO-PAINT. You will be prompted to save any and all changes when you execute the Quit command. The application object refers to the Corel PHOTO-PAINT application. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a bitmap-based image-editing program that makes it easy to retouch existing photos or create original graphics.

Example

The following code example terminates the current session of Corel PHOTO-PAINT:

Sub QuitApp()

Quit

End Sub

 Related Topics


AppWindow properties

AppWindow     Legend

    Active
    Application
      Caption
    ClientHeight
    ClientWidth
    Handle
      Height
      Left
    Parent
      Top
      Width
      WindowState


AppWindow methods

AppWindow     Legend

   Activate


AppWindow

Class AppWindow

Properties     Methods     Referenced By

The AppWindow class defines the characteristics of the application window object describes the look and behavior of the object through its properties and methods. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Application commands are accessible through the Menu Bar, toolbars, and flyouts. The Standard toolbar, located at the top of the Application Window by default, gives you access to some of the most common application commands, such as opening and saving images. The Property Bar and Docker windows provide access to commands that are relevant to the active tool or current task and can be opened, closed, and moved across your screen. You can also create multiple workspaces, which customize the look and feel of various Corel PHOTO-PAINT features. Workspaces are convenient if several people are using the same copy of Corel PHOTO-PAINT, or if you prefer to have different settings for different tasks.

There are several common features in the application window of Corel PHOTO-PAINT:

• Toolbox

• Property bar

• Workspaces

• Docker window

 Related Topics


AppWindow.Active

Property Active As Boolean

AppWindow

Description

The Active property returns a True or False value indicating the status of the Corel PHOTO-PAINT main application window. If the window is active, a value of true is returned, indicating that it is currently in use. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

If the window is inactive, the return value is false, indicating that the main application window is currently open but not in use.

Use the Activate method to change the inactive status of the main application window.

The Active property returns a Read-Only value.

Read-Only

Example

The following code example displays the status of the Corel PHOTO-PAINT main application window in a message box:

Sub AppWindowActive()

If AppWindow.Active Then

 MsgBox "Corel PHOTO-PAINT is currently active."

Else

 MsgBox "Corel PHOTO-PAINT is not active at this time."

End If

End Sub

 Related Topics


AppWindow.Application

Property Application As Object

AppWindow

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub VersionApplication()

With AppWindow

 MsgBox "You are using Corel PHOTO-PAINT " & Version

End With

End Sub

 Related Topics


AppWindow.Caption

Property Caption As String

AppWindow

Description

The Caption property returns or sets the display name of the Corel PHOTO-PAINT main application window. The caption appears as text in the title bar of the application window. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

If the document window is maximized when using the Caption property, the document title will also display after the caption in the title bar of the main application window.

Example

The following code example sets the caption of the Corel PHOTO-PAINT main application window:

Sub AppWindowCaption()

AppWindow.Caption = "My PAINT Application"

End Sub

Sub ResetCaption()

Dim NewCaption As String

NewCaption = "Corel PHOTO-PAINT"

If AppWindow.Caption <> NewCaption Then

 AppWindow.Caption = NewCaption

End If

End Sub

 Related Topics


AppWindow.ClientHeight

Property ClientHeight As Long

AppWindow

Description

The ClientHeight property returns a numerical value that measures the height of a client window within the main application window of Corel PHOTO-PAINT. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

The ClientHeight property returns a Read-Only value and is measured in screen pixels. A pixel is an abbreviation for picture element. Pixels are dots on a computer or television screen that combine to form an image. Computer images are created as an array of pixels, each having a specific color.

Read-Only

Example

The following example displays the client height, in screen pixels, in a message box:

Sub AppWindowClient()

With AppWindow

 MsgBox .ClientHeight

End With

End Sub

 Related Topics


AppWindow.ClientWidth

Property ClientWidth As Long

AppWindow

Description

The ClientWidth property returns a numerical value that measures the width of a client window within the main application window of Corel PHOTO-PAINT. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

The ClientWidth property returns a Read-Only value and is measured in screen pixels. A pixel is an abbreviation for picture element. Pixels are dots on a computer or television screen that combine to form an image. Computer images are created as an array of pixels, each having a specific color.

Read-Only

Example

The following example displays the client width, in screen pixels, in a message box:

Sub AppWindowClient()

With AppWindow

 MsgBox .ClientWidth

End With

End Sub

 Related Topics


AppWindow.Handle

Property Handle As Long

AppWindow

Description

The Handle property returns a value associated with the handle of the window in Corel PHOTO-PAINT. A handle allows you to resize the window in Corel PHOTO-PAINT.

The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application. This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


AppWindow.Height

Property Height As Long

AppWindow

Description

The Height property sets the height of the Corel PHOTO-PAINT main application window on your desktop. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

This property only applies when the main application window is in a normal window state. This property will not work when the application window is minimized or maximized.

The height of the application window is a numerical value measured in screen pixels.

Example

The following code example sets the current window state to normal, defines the new dimensions of the window, resizes the Corel PHOTO-PAINT main application window according to the new dimensions:

Sub AppWindowHeight()

With AppWindow

 .WindowState = cdrWindowNormal

 .Top = 10

 .Left = 10

 .Height = 500

 .Width = 600

End With

End Sub

 Related Topics


AppWindow.Left

Property Left As Long

AppWindow

Description

The Left property sets the location of the left border of the Corel PHOTO-PAINT main application window on your desktop. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

This property only applies when the main application window is in a normal window state. This property will not work when the application window is minimized or maximized.

The Left property sets the distance, in screen pixels, from the Corel PHOTO-PAINT window's left border to the left side of the monitor's display area.

Example

The following code example sets the current window state to normal, defines the new dimensions of the window, resizes the Corel PHOTO-PAINT main application window according to the new dimensions:

Sub AppWindowLeft()

With AppWindow

 .WindowState = cdrWindowNormal

 .Top = 10

 .Left = 10

 .Height = 500

 .Width = 600

End With

End Sub

 Related Topics


AppWindow.Parent

Property Parent As Object

AppWindow

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the Corel PHOTO-PAINT application in a message box:

Sub AppWindowParent()

With AppWindow

 MsgBox .Parent.Application.Path

End With

End Sub

 Related Topics


AppWindow.Top

Property Top As Long

AppWindow

Description

The Top property sets the location of the left border of the Corel PHOTO-PAINT main application window on your desktop. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

This property only applies when the main application window is in a normal window state. This property will not work when the application window is minimized or maximized.

The Top property sets the distance, in screen pixels, from the Corel PHOTO-PAINT window's top border to the top of the monitor's display area.

Example

The following code example sets the current window state to normal, defines the new dimensions of the window, resizes the Corel PHOTO-PAINT main application window according to the new dimensions:

Sub AppWindowTop()

With AppWindow

 .WindowState = cdrWindowNormal

 .Top = 10

 .Left = 10

 .Height = 500

 .Width = 600

End With

End Sub

 Related Topics


AppWindow.Width

Property Width As Long

AppWindow

Description

The Width property sets the height of the Corel PHOTO-PAINT main application window on your desktop. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

This property only applies when the main application window is in a normal window state. This property will not work when the application window is minimized or maximized.

The width of the application window is a numerical value measured in screen pixels.

Example

The following code example sets the current window state to normal, defines the new dimensions of the window, resizes the Corel PHOTO-PAINT main application window according to the new dimensions:

Sub AppWindowWidth()

With AppWindow

 .WindowState = cdrWindowNormal

 .Top = 10

 .Left = 10

 .Height = 500

 .Width = 600

End With

End Sub

 Related Topics


AppWindow.WindowState

Property WindowState As cdrWindowState

AppWindow

Description

The WindowState property returns or sets the current window state of the Corel PHOTO-PAINT main application window. This window can be minimized, maximized or in a normal state. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

The WindowState property returns a value of cdr WindowState.

Example

The following code example begins with the application window maximized, sets the current window state to minimized, and displays a message that the window has been minimized. The main application window is then restored to a maximized state:

Sub AppWindowWindowState()

Dim state As cdrWindowState

state = cdrWindowMaximized	'window should be maximized to begin the procedure

AppWindow.WindowState = cdrWindowMinimized

MsgBox "Corel PHOTO-PAINT is now minimized."

AppWindow.WindowState = state

End Sub

 Related Topics


AppWindow.Activate

Sub Activate()

AppWindow

Description

The Activate method opens the main application window in Corel PHOTO-PAINT, if the window is not currently open. The application window represents the main Corel PHOTO-PAINT window - it acts as a container for the application.

In may cases, newer operating systems like Windows 98 and Windows 2000 don't allow the application to activate itself, to prevent intervention with you're current activity. If the application is not granted active status in certain situations, the application window will start flashing in the taskbar, but it will not appear in the foreground.

Example

The following code example activates the Corel PHOTO-PAINT main application window if it is currently inactive. A window is inactive if it is open, but it is not the currently used window application:

Sub Activate()

If Not AppWindow.Active Then

 AppWindow.Activate

End If

End Sub

 Related Topics


Background properties

Background     Legend

    Active
    Application
    Parent


Background methods

Background     Legend

   Activate
   Clear
   ConvertToLayer
   Copy
   Cut


Background

Class Background

Properties     Methods     Referenced By

The Background class defines the characteristics of the background objects and describes the look and behavior of the object through its properties and methods. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

You can control the way the colors of the objects and the image background are combined by choosing a merge mode. When you combine objects with the background, you can no longer change them as individual image elements. Combining objects with the image background merges them with the background and decreases file size.

When you create an object using the entire image background, you can move, arrange, and change the background. You can also create an object using part of the image background.

You can select a color mode and background color when you create a new image. If you want to add a background to an image without one, you can click Image, Create Background. The background is created using the paper color.

 Related Topics


Background.Active

Property Active As Boolean

Background

Description

The Active property returns a True or False value indicating the status of a background object in Corel PHOTO-PAINT. If a background is active, is it available for editing within the application. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

Use the Activate method to change the inactive status of the background object.

The Active property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Background.Application

Property Application As Application

Background

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Background.Parent

Property Parent As Document

Background

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Background.Activate

Sub Activate()

Background

Description

The Activate method activates a background object in Corel PHOTO-PAINT. If a background is active, it is available for editing in the application. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

Example

Example of usage goes here

Code line

 Related Topics


Background.Clear

Sub Clear([ByVal Color As Color = Nothing])

Background

Description

The Clear method clears a background object in Corel PHOTO-PAINT. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

Parameters	Description

Color	Specifies a color to be removed from a background object. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Background.ConvertToLayer

Function ConvertToLayer([ByVal Name As String], [ByVal Opacity As Long = 100], [ByVal MergeMode As pntMergeMode = pntMergeNormal (0)]) As Layer

Background

Description

The ConvertToLayer method converts a background object into a layer in Corel PHOTO-PAINT. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Name	Sets the name of the converted layer. This value is a string value and it is optional. [in]
Optional

Opacity	Sets the opacity level of the converted layer. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. This value is optional and the default value is 100. [in]
Optional
Default value = 100

MergeMode	Sets the MergeMode of the converted layer. This value returns pntMergeMode. This value is optional and the default value is pntMergeNormal (0) [in]
Optional
Default value = pntMergeNormal (0)

Return value

Returns Layer

Example

Example of usage goes here

Code line

 Related Topics


Background.Copy

Sub Copy()

Background

Description

The Copy method copies a background object in Corel PHOTO-PAINT. Copying the object places it in the system clipboard where is can be pasted at a later time. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

Example

Example of usage goes here

Code line

 Related Topics


Background.Cut

Sub Cut([ByVal Color As Color = Nothing])

Background

Description

The Cut method cuts a layer object in Corel PHOTO-PAINT. Cutting the object places it in the system clipboard where is can be pasted at a later time. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

Parameters	Description

Color	Specifies which color to cut from the background object with the Cut method. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Channel properties

Channel     Legend

    Active
    Application
      Color
      Index
      InvertOverlay
      Name
      Opacity
    Parent
      Visible


Channel methods

Channel     Legend

   Activate
   CreateMask
   Delete
   StoreMask


Channel

Class Channel

Properties     Methods     Referenced By

The Channel class defines the characteristics of the channel objects and describes the look and behavior of the object through its properties and methods. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

A color channel is a type of channel that represents one component of an image's color model. Color channels are automatically generated by Corel PHOTO-PAINT when you create or open a color image file that has a 24-bit or 32-bit color depth. Individual channels include information about how much red, green, or blue is used in each image pixel, to produce the colors of the image. Combining all color channels displays the entire range of color present in the image.

A mask channel is a temporary storage area for masks. When you save a mask to an alpha channel, you can access and reuse it in the image as many times as you want. You can save an alpha channel to a file or load a previously saved channel in the active image.

Many of the features and commands that you can use to adjust the color and quality of an image are applied directly to the color channels that make up the image. Each image has one or more color channels that hold information about the color elements. The number of color channels in an image depends on the number of elements in the color model associated with the image. For example, an RGB image has three separate color channels, one for each color: red (R), green (G), and blue (B). The R, G, and B color channels store information about how much red, green, or blue is used in each pixel to produce the colors of the image.

When you view the combined color channels of an image, the resulting composite image displays the entire range of colors in the image. When you view color channels individually, you see a grayscale representation of the color information. A color channel can be edited and manipulated in the same way that you edit or manipulate a grayscale image.

Black-and-white, grayscale, duotone, and paletted images have only one color channel. RGB and Lab images have three channels, and CMYK images have four color channels.

 Related Topics


Channel.Active

Property Active As Boolean

Channel

Description

The Active property returns a True or False value indicating the status of a channel object in Corel PHOTO-PAINT. If a channel is active, is it available for editing within the application. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Use the Activate method to change the inactive status of the channel object.

The Active property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Channel.Application

Property Application As Application

Channel

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Channel.Color

Property Color As Color

Channel

Description

The Color property returns or sets the overlay color of a channel in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

A color channel is a type of channel that represents one component of an image's color model. Color channels are automatically generated by Corel PHOTO-PAINT when you create or open a color image file that has a 24-bit or 32-bit color depth. Individual channels include information about how much red, green, or blue is used in each image pixel, to produce the colors of the image. Combining all color channels displays the entire range of color present in the image.

Example

Example of usage goes here

Code line

 Related Topics


Channel.Index

Property Index As Long

Channel

Description

The Index property returns or sets an index value associated with a channel object in the Channels collection of Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Channels(5) refers to the fifth channel object in the Channels collection of Corel PHOTO-PAINT.

Example

Example of usage goes here

Code line

 Related Topics


Channel.InvertOverlay

Property InvertOverlay As Boolean

Channel

Description

The InvertOverlay property returns a True or False value that indicates whether or not a channel is inverted in the application. You can use the Invert filter to invert the color values of pixels in an image and create the appearance of a color photographic negative.

A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channel.Name

Property Name As String

Channel

Description

The Name property returns or sets the name of a channel object in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channel.Opacity

Property Opacity As Long

Channel

Description

The Opacity property returns the opacity value of a channel object's overlay in Corel PHOTO-PAINT. Opacity determines the intensity of a drop shadow. You can type values between 0 and 100. Low values create a less opaque overlay while high values create a more opaque overlay in the channel object.

A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channel.Parent

Property Parent As Document

Channel

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Channel.Visible

Property Visible As Boolean

Channel

Description

The Visible property returns a True or False value that indicates the visibility status of a channel object in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

If the Visible property is set the True, the channel object is visible in Corel PHOTO-PAINT.

Example

Example of usage goes here

Code line

 Related Topics


Channel.Activate

Sub Activate()

Channel

Description

The Activate method activates a channel object in Corel PHOTO-PAINT. If a channel is active, it is available for editing in the application. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channel.CreateMask

Sub CreateMask([ByVal MaskMode As pntMaskMode = pntMaskNormal (0)], [ByVal InvertMask As Boolean = False])

Channel

Description

The CreateMask method creates a new mask objects, based on the active channel object in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Parameters	Description

MaskMode	Sets the MergeMode of the new mask. This value returns pntMergeMode. This value is optional and the default value is pntMergeNormal (0) [in]
Optional
Default value = pntMaskNormal (0)

InvertMask	Sets a True or False value that indicates whether or not to invert the new mask. Often, it is easier to select the areas you want to protect from changes and then invert the selection. For example, if you want to edit a complex, irregularly shaped area, you can begin by selecting the surrounding area. Then, you can reverse the mask so that the area that was initially selected is protected, and the area that was masked is selected, i.e., available for editing. This value is optional and the default value is False. [in]
Optional
Default value = False

Example

Example of usage goes here

Code line

 Related Topics


Channel.Delete

Sub Delete()

Channel

Description

The Delete method deletes a channel object in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channel.StoreMask

Sub StoreMask()

Channel

Description

The StoreMask method stores the current mask over a channel object in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Example

Example of usage goes here

Code line

 Related Topics


Channels properties

Channels     Legend

    Application
    Count
  Item
    Parent


Channels methods

Channels     Legend

   Add
   AddFromColorMask
   Load


Channels

Class Channels

Properties     Methods     Referenced By

The Channels class defines the characteristics of the Channels collection objects and describes the look and behavior of the object through its properties and methods. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

A color channel is a type of channel that represents one component of an image's color model. Color channels are automatically generated by Corel PHOTO-PAINT when you create or open a color image file that has a 24-bit or 32-bit color depth. Individual channels include information about how much red, green, or blue is used in each image pixel, to produce the colors of the image. Combining all color channels displays the entire range of color present in the image.

A mask channel is a temporary storage area for masks. When you save a mask to an alpha channel, you can access and reuse it in the image as many times as you want. You can save an alpha channel to a file or load a previously saved channel in the active image.

Many of the features and commands that you can use to adjust the color and quality of an image are applied directly to the color channels that make up the image. Each image has one or more color channels that hold information about the color elements. The number of color channels in an image depends on the number of elements in the color model associated with the image. For example, an RGB image has three separate color channels, one for each color: red (R), green (G), and blue (B). The R, G, and B color channels store information about how much red, green, or blue is used in each pixel to produce the colors of the image.

When you view the combined color channels of an image, the resulting composite image displays the entire range of colors in the image. When you view color channels individually, you see a grayscale representation of the color information. A color channel can be edited and manipulated in the same way that you edit or manipulate a grayscale image.

Black-and-white, grayscale, duotone, and paletted images have only one color channel. RGB and Lab images have three channels, and CMYK images have four color channels.

 Related Topics


Channels.Application

Property Application As Application

Channels

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Channels.Count

Property Count As Long

Channels

Description

The Count property returns the number of channel objects in the Channels collection of Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

The Count property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Channels.Item

Property Item(ByVal IndexOrName As Variant) As Channel

Channels

Description

The Item property returns a value associated with the index number of a channel in the Channels collection of Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Channels(2) refers to the second channel in the collection.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection.

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in the Channels collection; it uniquely identifies each member of the collection. Name is the unique string value that identifies each channel. [in]

Example

Example of usage goes here

Code line

 Related Topics


Channels.Parent

Property Parent As Document

Channels

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Channels.Add

Function Add([ByVal Name As String], [ByVal Opacity As Long = 50], [ByVal Color As Color = Nothing], [ByVal InvertOverlay As Boolean = False], [ByVal FillWithBlack As Boolean = True]) As Channel

Channels

Description

The Add method adds a new channel to the Channels collection of Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Parameters	Description

Name	Sets the name of the new channel. This value is a string value and it is optional. [in]
Optional

Opacity	Sets the opacity level of the new channel. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. This value is optional and the default value is 50. [in]
Optional
Default value = 50

Color	Sets the color of the new channel. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

InvertOverlay	Sets a True or False value that indicates whether or not to invert the overlay of the channel. This value is optional and the default value is False. [in]
Optional
Default value = False

FillWithBlack	Sets a True or False value that indicates whether or not the new channel is filled with black. This value is optional and the default value is True. [in]
Optional
Default value = True

Return value

Returns Channel

Example

Example of usage goes here

Code line

 Related Topics


Channels.AddFromColorMask

Function AddFromColorMask(ByVal ColorMask As ColorMask, [ByVal Name As String], [ByVal Opacity As Long = 50], [ByVal Color As Color = Nothing], [ByVal InvertOverlay As Boolean = False]) As Channel

Channels

Description

The AddFromColorMask method adds a new channel to the Channels collection, based on a color mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Parameters	Description

ColorMask	Sets the color mask that is the basis for the new channel. [in]

Name	Sets the name of the new channel. This value is a string value and it is optional. [in]
Optional

Opacity	Sets the opacity level of the new channel. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. This value is optional and the default value is 50. [in]
Optional
Default value = 50

Color	Sets the color of the new channel. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

InvertOverlay	Sets a True or False value that indicates whether or not to invert the overlay of the channel. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Channel

Example

Example of usage goes here

Code line

 Related Topics


Channels.Load

Function Load(ByVal FileName As String, [ByVal Filter As cdrFilter = cdrAutoSense (0)], [ByVal LoadMode As pntLoadMode = pntLoadAll (0)], [ByVal Left As Long = 0], [ByVal Top As Long = 0], [ByVal Width As Long = 0], [ByVal Height As Long = 0]) As Channel

Channels

Description

The Load method loads a channel object from a file into Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

Parameters	Description

FileName	Specifies the computer location of the file containing the channel object that is loaded into Corel PHOTO-PAINT. [in]

Filter	Specifies the filter to use when inserting the frame. This value returns cdrFilter. This value is optional and the default value is cdrAutoSense (0). [in]
Optional
Default value = cdrAutoSense (0)

LoadMode	Sets the load mode of the channel. This value returns pntLoadMode. This value is optional and the default value is pntLoadAll (0). [in]
Optional
Default value = pntLoadAll (0)

Left	Sets the left position of the channel. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Top	Sets the top position of the channel. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Width	Sets the width of the channel. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Height	Sets the height of the channel. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Return value

Returns Channel

Example

Example of usage goes here

Code line

 Related Topics


Clipboard properties

Clipboard     Legend

    Application
    Empty
    Parent
    Valid


Clipboard methods

Clipboard     Legend

   Clear
   DataPresent


Clipboard

Class Clipboard

Properties     Methods     Referenced By

The Clipboard class defines the characteristics of Clipboard objects and describes the look and behavior of the objects through its properties and methods.

The clipboard is a temporary storage area that is used to hold cut or copied information. The clipboard is always present in Windows and it stores information until it is replaced by another object or selection that has been cut or copied, or until you quit the current session of Windows.

 Related Topics


Clipboard.Application

Property Application As Object

Clipboard

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub VersionApplication()

 MsgBox "You are using Corel PHOTO-PAINT " & Version

End Sub

 Related Topics


Clipboard.Empty

Property Empty As Boolean

Clipboard

Description

The Empty property returns a True or False value associated with presence of data in the system clipboard. Unlike the Valid property, which verifies the presence of a specific type or data (i.e. text, graphics), the Empty property looks for the presence of any data in the system clipboard.

The Empty property returns a Read-Only value.

Read-Only

Example

The following code example checks to see if there is any data in the clipboard. If there is data present, it is pasted in the active layer. If there is no data in the system clipboard, a message displays in a message box:

Sub ClipboardEmpty()

If Not Clipboard.Empty Then

 ActiveLayer.Paste

Else

 MsgBox "There is no data in the clipboard."

End If

End Sub

 Related Topics


Clipboard.Parent

Property Parent As Object

Clipboard

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the clipboard's parent object, the main application window, in a message box:

Sub ClipboardParent()

With Clipboard

 MsgBox Parent.AppWindow.Caption

End With

End Sub

 Related Topics


Clipboard.Valid

Property Valid As Boolean

Clipboard

Description

The Valid property returns a True or False value associated with presence of valid data in the system clipboard. Valid information is anything that can be cut or copied into the clipboard, such as text and graphics selected within a document, or one or more files or folders.

The Valid property returns a Read-Only value.

Read-Only

Example

The following code example checks to see there is valid data in the clipboard. If there is valid data present, it is pasted into the active layer. If there is no valid data in the clipboard, a message displays in a message box:

Sub ClipboardValid()

If Clipboard.Valid Then

 ActiveLayer.Paste

Else

 MsgBox "There is no valid data in the clipboard."

End If

End Sub

 Related Topics


Clipboard.Clear

Sub Clear()

Clipboard

Description

The Clear method removes any and all data from the system clipboard. The clipboard should be cleared after large files, no longer needed, are pasted into a document. Clearing the clipboard of these large files frees up any system resources that the file is currently using in the clipboard.

Example

The following code example pastes the current contents of the system clipboard in the active document and uses the Clear method to remove the data from the clipboard:

Sub ClipboardClear()

ActiveLayer.Paste

Clipboard.Clear

End Sub

 Related Topics


Clipboard.DataPresent

Function DataPresent(ByVal FormatName As String) As Boolean

Clipboard

Description

The DataPresent method returns a True or False value that verifies the presence of a specific data format in the system clipboard. The data format (e.g. text, graphic, etc...) is determined by the Windows Clipboard Viewer utility. If you click the Display menu in the Viewer, all available data formats are available, with a check mark next to the active format. You may select other formats to change the current view of the data in the clipboard. The clipboard may contain more than one data format at a time.

Parameters	Description

FormatName	FormatName is a string parameter that determines the presence of a particular data format in the clipboard. It must be contained in quotes when passed to the function. "Text" is an example of a string parameter that may be passed as a FormatName parameter. [in]

Return value

Returns Boolean

Example

The following code example verifies the presence of text data in the clipboard. It text data is present, the clipboard is cleared of any data with the Clear method. If there is no text data in the clipboard, a message displays in a message box:

Sub PresentData()

If Clipboard.DataPresent("Text") Then

 Clipboard.Clear

Else

 MsgBox "There is no text data in the clipboard."

End If

End Sub

 Related Topics


ClipMask properties

ClipMask     Legend

    Application
      Linked
    Parent
      Visible


ClipMask methods

ClipMask     Legend

   Apply
   Delete


ClipMask

Class ClipMask

Properties     Methods     Referenced By

The ClipMask class defines the characteristics of clip mask objects and describes the look and behavior of the object through its properties and methods. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A Clip mask lets you change the transparency of pixels in an object without permanently affecting the pixels of an object. You can create a clip mask to change the transparency of an entire object or to change the transparency of parts of an object. A clip mask also lets you change the transparency of clipping groups the same way that you change the transparency of an object. You can disable the clip mask of an object to temporarily hide the transparency of the object, or you can remove a clip mask to permanently remove the transparency of an object.

 Related Topics


ClipMask.Application

Property Application As Application

ClipMask

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


ClipMask.Linked

Property Linked As Boolean

ClipMask

Description

The Linked property returns or sets a True or False value that indicates whether or not a clip mask object is linked in Corel PHOTO-PAINT. A clip mask is linked to an object when a plus sign is displayed between the thumbnails of the clip mask and the object in the Objects Docker window.

A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

Example

Example of usage goes here

Code line

 Related Topics


ClipMask.Parent

Property Parent As Document

ClipMask

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


ClipMask.Visible

Property Visible As Boolean

ClipMask

Description

The Visible property returns a True or False value that indicates the visibility status of a clip mask object in Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

If the Visible property is set the True, the clip mask object is visible in Corel PHOTO-PAINT.

Example

Example of usage goes here

Code line

 Related Topics


ClipMask.Apply

Sub Apply()

ClipMask

Description

The Apply method applies a clip mask to an object in Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

Example

Example of usage goes here

Code line

 Related Topics


ClipMask.Delete

Sub Delete()

ClipMask

Description

The Delete method deletes a clip mask object in Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

Example

Example of usage goes here

Code line

 Related Topics


Color properties

Color     Legend

    Application
      BW
      CMYCyan
      CMYKBlack
      CMYKCyan
      CMYKMagenta
      CMYKYellow
      CMYMagenta
      CMYYellow
      Gray
      HLSHue
      HLSLightness
      HLSSaturation
      HSBBrightness
      HSBHue
      HSBSaturation
      LabComponentA
      LabComponentB
      LabLuminance
    Name
    PaletteID
      PaletteIndex
    Parent
      RGBBlue
      RGBGreen
      RGBRed
      Tint
    Type
      YIQChromaI
      YIQChromaQ
      YIQLuminanceY


Color methods

Color     Legend

   BlendWith
   BWAssign
   CMYAssign
   CMYKAssign
   ConvertToBW
   ConvertToCMY
   ConvertToCMYK
   ConvertToFixed
   ConvertToGray
   ConvertToHLS
   ConvertToHSB
   ConvertToLab
   ConvertToRGB
   ConvertToYIQ
   CopyAssign
   CorelScriptAssign
   CorelScriptGetComponent
   FixedAssign
   GrayAssign
   HLSAssign
   HSBAssign
   IsSame
   LabAssign
   RegistrationAssign
   RGBAssign
   SetName
   UserAssign
   UserAssignEx
   YIQAssign


Color

Class Color

Properties     Methods     Referenced By

The Color class defines the characteristics of color objects and describes the look and behavior of the collection objects through its properties and methods.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

There are many different color models that define colors - HSB, RGB, CMYK, and CIE Lab color models. The RGB and CMYK color models are only two of a number of models developed to suit a variety of digital design and desktop publishing applications. It is not necessary to be familiar with all these models, but it is helpful to be familiar with a few of the more widely used ones.

We all see color differently. Color is subjective to the human eye. Each device that interacts with your project's file: the scanner, monitor, and printer may have a different color space. For example, a color that is visible to the human eye may not be reproducible by your printer.

Because there are so many color variations, a precise method for defining each color is required. For example, once you find the perfect shade of light orange, you need to be able to reproduce that color and possibly tell others how to do the same. A color model defines that perfect shade of light orange by breaking it down into precise components that allow you to accurately transmit the information to other people and to the electronic devices you use to create projects.

 Related Topics


Color.Application

Property Application As Object

Color

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub ColorsApp()

With ActivePalette.Color (1)

 MsgBox "You are using Corel PHOTO-PAINT " & .Application.Version

End With

End Sub

 Related Topics


Color.BW

Property BW As Boolean

Color

Description

The BW property returns or sets a True or False value that indicates the black and white state in the Black and White color model of Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Black and White color model is a 1-bit color mode that stores images as two solid colors - black and white - with no gradations. This color mode is useful for line art and simple graphics.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYCyan

Property CMYCyan As Long

Color

Description

The CMYCyan property returns or sets the cyan color in the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYKBlack

Property CMYKBlack As Long

Color

Description

The CMYKBlack property returns or sets the back color value in the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYKCyan

Property CMYKCyan As Long

Color

Description

The CMYKCyan property returns or sets the cyan color value in the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYKMagenta

Property CMYKMagenta As Long

Color

Description

The CMYKYellow property returns or sets the yellow color value in the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYKYellow

Property CMYKYellow As Long

Color

Description

The CMYKYellow property returns or sets the yellow color value in the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYMagenta

Property CMYMagenta As Long

Color

Description

The CMYMagenta property returns or sets the magenta color in the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYYellow

Property CMYYellow As Long

Color

Description

The CMYYellow property returns or sets the yellow color in the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.Gray

Property Gray As Long

Color

Description

The Gray property returns or sets the Gray value in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Grayscale color model is a color mode that displays images using 256 shades of gray. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). In the RGB color mode, a grayscale value corresponds to equal amounts of all RGB colors; in CMYK, a grayscale value corresponds to zero C, M, and Y values, with a positive K value; in HSB, a grayscale value corresponds to zero H and S values, with a positive B value. The Grayscale color mode is based on the Grayscale color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.HLSHue

Property HLSHue As Long

Color

Description

The HLSHue property assigns the Hue value for the HLS color model in Corel PHOTO-PAINT. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Example

Example of usage goes here

Code line

 Related Topics


Color.HLSLightness

Property HLSLightness As Long

Color

Description

The HLSLightness property assigns the Lightness value for the HLS color model in Corel PHOTO-PAINT. Lightness determines the intensity of the color. Values range from 0 to 100.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Example

Example of usage goes here

Code line

 Related Topics


Color.HLSSaturation

Property HLSSaturation As Long

Color

Description

The HLSSaturation property assigns the Saturation value for the HLS color model in Corel PHOTO-PAINT. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Example

Example of usage goes here

Code line

 Related Topics


Color.HSBBrightness

Property HSBBrightness As Long

Color

Description

The HSBBrightness property assigns the Saturation value in the HSB color model in Corel PHOTO-PAINT. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Example

Example of usage goes here

Code line

 Related Topics


Color.HSBHue

Property HSBHue As Long

Color

Description

The HSBHue property assigns the Hue value in the HSB color model in Corel PHOTO-PAINT. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Example

Example of usage goes here

Code line

 Related Topics


Color.HSBSaturation

Property HSBSaturation As Long

Color

Description

The HSBSaturation property assigns the Saturation value in the HSB color model in Corel PHOTO-PAINT. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Example

Example of usage goes here

Code line

 Related Topics


Color.LabComponentA

Property LabComponentA As Long

Color

Description

The LabComponentA property returns or sets the A component in the LAB color model in Corel PHOTO-PAINT. This property sets one of two chromatic components in the LAB color model. "A" refers to a range of colors between green and red.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.LabComponentB

Property LabComponentB As Long

Color

Description

The LabComponentB property returns or sets the B component in the LAB color model in Corel PHOTO-PAINT. This property sets one of two chromatic components in the LAB color model. "B" refers to a range of colors between blue and yellow.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.LabLuminance

Property LabLuminance As Long

Color

Description

The LabLuminance property returns or sets the luminance level in the LAB color model in Corel PHOTO-PAINT. This property sets the Luminance, or brightness, value in the LAB color model. Values range from 0 to 255.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.Name

Property Name([ByVal Components As Boolean = False]) As String

Color

Description

The Name property returns a string value that identifies a color in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

This property returns a Read-Only value.

Read-Only

Parameters	Description

Components	The Components parameter sets a True or False value that indicates whether or not to return the color's components when using the Name property. This value is optional and the default value is False. [in]
Optional
Default value = False

Example

Example of usage goes here

Code line

 Related Topics


Color.PaletteID

Property PaletteID As cdrPaletteID

Color

Description

The PaletteID property returns a value associated with the type of a palette in Corel PHOTO-PAINT. The value returned is cdrPaletteID.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The PaletteID returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Color.PaletteIndex

Property PaletteIndex As Long

Color

Description

The PaletteIndex property returns or sets the index value of a color in a palette in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Example

Example of usage goes here

Code line

 Related Topics


Color.Parent

Property Parent As Object

Color

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Color.RGBBlue

Property RGBBlue As Long

Color

Description

The RGBBlue property returns or sets the blue color value in the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Example

Example of usage goes here

Code line

 Related Topics


Color.RGBGreen

Property RGBGreen As Long

Color

Description

The RGBGreen property returns or sets the green color value in the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Example

Example of usage goes here

Code line

 Related Topics


Color.RGBRed

Property RGBRed As Long

Color

Description

The RGBRed property returns or sets the red color value in the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Example

Example of usage goes here

Code line

 Related Topics


Color.Tint

Property Tint As Long

Color

Description

The Tint property returns or sets the tint level in a fixed palette's color in Corel PHOTO-PAINT. Tints are lighter shades of a spot color that are created by changing the percentage tint value.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


Color.Type

Property Type As cdrColorType

Color

Description

The Type property returns or sets the color type in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Type property returns cdrColorType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Color.YIQChromaI

Property YIQChromaI As Long

Color

Description

The YIQChromalI returns or sets the I color value in the YIQ color model in Corel PHOTO-PAINT. The I value sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Example

Example of usage goes here

Code line

 Related Topics


Color.YIQChromaQ

Property YIQChromaQ As Long

Color

Description

The YIQChromalQ returns or sets the Q color value in the YIQ color model in Corel PHOTO-PAINT. The Q value sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Example

Example of usage goes here

Code line

 Related Topics


Color.YIQLuminanceY

Property YIQLuminanceY As Long

Color

Description

The YIQLuminanceY returns or sets the Y color value in the YIQ color model in Corel PHOTO-PAINT. The Y value sets the luminance, or brightness, in the YIQ color model. Values range from 0 to 255.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Example

Example of usage goes here

Code line

 Related Topics


Color.BlendWith

Sub BlendWith(ByVal Color As Color, ByVal MixRatio As Long)

Color

Description

Mixes the color with the given color using the specified ratio

Parameters	Description

Color	Description of Color goes here [in]

MixRatio	Description of MixRatio goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.BWAssign

Sub BWAssign(ByVal White As Boolean)

Color

Description

The BWAssign method sets True or False value that assigns the Black and White color model in Corel PHOTO-PAINT. With this method, True means white and False refers to black.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Black and White color model is a 1-bit color mode that stores images as two solid colors - black and white - with no gradations. This color mode is useful for line art and simple graphics.

Parameters	Description

White	Sets the appearance of white in the Black and White color model. This value is a True or False value. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYAssign

Sub CMYAssign(ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long)

Color

Description

The CMYAssign method assigns the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Parameters	Description

Cyan	Sets the level of cyan in the CMY color model. Values range from 0 to 255. [in]

Magenta	Sets the level of magenta in the CMY color model. Values range from 0 to 255. [in]

Yellow	Sets the level of yellow in the CMY color model. Values range from 0 to 255. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.CMYKAssign

Sub CMYKAssign(ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long)

Color

Description

The CMYKAssign property assigns the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Parameters	Description

Cyan	Sets the level of cyan in the CMYK color model. Values are percentages and range from 0 to 100. [in]

Magenta	Sets the level of magenta in the CMYK color model. Values are percentages and range from 0 to 100. [in]

Yellow	Sets the level of yellow in the CMYK color model. Values are percentages and range from 0 to 100. [in]

Black	Sets the level of black in the CMYK color model. Values are percentages and range from 0 to 100. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToBW

Sub ConvertToBW()

Color

Description

The ConvertToBW method converts the active color model to the Black and White color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Black and White color model is a 1-bit color mode that stores images as two solid colors - black and white - with no gradations. This color mode is useful for line art and simple graphics.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToCMY

Sub ConvertToCMY()

Color

Description

The ConvertToCMY method converts the active color model to the CMY color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMY is a color mode made up of cyan (C), magenta (M), and yellow (Y). This mode is used in the three-color printing process. In Corel applications, the CMY mode is the inverse of the RGB mode, with values ranging from 0 to 255. The CMY color mode is based on the CMY color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToCMYK

Sub ConvertToCMYK()

Color

Description

The ConvertToCMYK method converts the active color model to the CMYK color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

CMYK is a color mode made up of cyan (C), magenta (M), yellow (Y), and black (K). In the CMYK color mode, color values are expressed as percentages, so a value of 100 for an ink means that it is applied at full saturation. Used in most full-color commercial printing, CMYK is like CMY, but the addition of black (K) allows for true blacks and a wider tonal range. The CMYK color mode is based on the CMYK color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToFixed

Sub ConvertToFixed(ByVal PaletteID As cdrPaletteID)

Color

Description

The ConvertToFixed method converts the active color model to a color in the fixed palette of Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Parameters	Description

PaletteID	Sets the fixed palette in Corel PHOTO-PAINT. This parameter returns cdrPaletteID. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToGray

Sub ConvertToGray()

Color

Description

The ConvertToGray method converts the active color model to the Grayscale color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Grayscale color model is a color mode that displays images using 256 shades of gray. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). In the RGB color mode, a grayscale value corresponds to equal amounts of all RGB colors; in CMYK, a grayscale value corresponds to zero C, M, and Y values, with a positive K value; in HSB, a grayscale value corresponds to zero H and S values, with a positive B value. The Grayscale color mode is based on the Grayscale color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToHLS

Sub ConvertToHLS()

Color

Description

The ConvertToHLS method converts the active color model to the HLS color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToHSB

Sub ConvertToHSB()

Color

Description

The ConvertToHSB method converts the active color model to the HSB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToLab

Sub ConvertToLab()

Color

Description

The ConvertToLab method converts the active color model to the LAB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToRGB

Sub ConvertToRGB()

Color

Description

The ConvertToRGB method converts the active color model to the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Corel PHOTO-PAINT lets you convert an image to the following color modes: Black-and-White, Grayscale, Duotone, RGB, CMYK, or LAB. You can also convert a bitmap to the Paletted color mode.

Example

Example of usage goes here

Code line

 Related Topics


Color.ConvertToYIQ

Sub ConvertToYIQ()

Color

Description

The ConvertToYIQ method converts the active color model to the YIQ color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Example

Example of usage goes here

Code line

 Related Topics


Color.CopyAssign

Sub CopyAssign(ByVal Color As Color)

Color

Description

The CopyAssign method copies the color model properties from a color object and applies them to the active color in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Parameters	Description

Color	The Color parameter identifies the color who's color model properties are copied with the CopyAssign method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.CorelScriptAssign

Sub CorelScriptAssign(ByVal ColorModel As Long, ByVal V1 As Long, [ByVal V2 As Long = 0], [ByVal V3 As Long = 0], [ByVal V4 As Long = 0], [ByVal V5 As Long = 0], [ByVal V6 As Long = 0], [ByVal V7 As Long = 0])

Color

Description

The CorelScriptAssign method assigns a color object based on Corel SCRIPT color specification values in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

button , ALink(CLS_Color;FNC_CorelScriptAssign) Related Topics

Parameters	Description

ColorModel	The ColorModel parameter identifies the color model used to create the new color. This parameter specifies the numeric variable that is assigned to the color model. A color model is a simple color chart that defines the range of colors displayed in a color mode. [in]

V1	The V1 parameter specifies the numeric variable that is assigned to the first color component of the selected color model. For example, cyan is the first color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [in]

V2	The V2 parameter specifies the numeric variable that is assigned to the second color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

V3	The V3 parameter specifies the numeric variable that is assigned to the third color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

V4	The V4 parameter specifies the numeric variable that is assigned to the fourth color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

V5	The V5 parameter specifies the numeric variable that is assigned to the fifth color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

V6	The V6 parameter specifies the numeric variable that is assigned to the sixth color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

V7	The V7 parameter specifies the numeric variable that is assigned to the seventh color component of the selected color model. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Color.CorelScriptGetComponent

Sub CorelScriptGetComponent(ByRef ColorModel As Long, ByRef V1 As Long, [ByRef V2 As Long = 0], [ByRef V3 As Long = 0], [ByRef V4 As Long = 0], [ByRef V5 As Long = 0], [ByRef V6 As Long = 0], [ByRef V7 As Long = 0])

Color

Description

The CorelScriptGetComponent method gets Corel SCRIPT values from a color object for use in Corel SCRIPT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Parameters	Description

ColorModel	The ColorModel parameter identifies the color model used to create the new color. This parameter specifies the numeric variable that is assigned to the color model. A color model is a simple color chart that defines the range of colors displayed in a color mode. [out]

V1	The V1 parameter specifies the numeric variable that is assigned to the first color component of the selected color model. For example, cyan is the first color component of the CMYK color model. The value is a percentage and can range from 1 to 100. A color that is selected at 100 is applied with full saturation. [out]

V2	The V2 parameter specifies the numeric variable that is assigned to the second color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

V3	The V3 parameter specifies the numeric variable that is assigned to the third color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

V4	The V4 parameter specifies the numeric variable that is assigned to the fourth color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

V5	The V5 parameter specifies the numeric variable that is assigned to the fifth color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

V6	The V6 parameter specifies the numeric variable that is assigned to the sixth color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

V7	The V7 parameter specifies the numeric variable that is assigned to the seventh color component of the selected color model. This value is optional and the default value is 0. [out]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Color.FixedAssign

Sub FixedAssign(ByVal PaletteID As cdrPaletteID, ByVal PaletteIndex As Long, [ByVal Tint As Long = 100])

Color

Description

The FixedAssign method assigns a fixed palette color in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Parameters	Description

PaletteID	Sets the Palette ID that uniquely identifies which color palette to use in Corel PHOTO-PAINT. [in]

PaletteIndex	Sets the color to use by referencing the index number of a color within a palette. [in]

Tint	Sets the tint of the palette color. Tints are lighter shades of a spot color that are created by changing the percentage tint value. This value is optional and the default value is 100. [in]
Optional
Default value = 100

Example

Example of usage goes here

Code line

 Related Topics


Color.GrayAssign

Sub GrayAssign(ByVal GrayValue As Long)

Color

Description

The GrayAssign method assigns the Grayscale color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Grayscale color model is a color mode that displays images using 256 shades of gray. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). In the RGB color mode, a grayscale value corresponds to equal amounts of all RGB colors; in CMYK, a grayscale value corresponds to zero C, M, and Y values, with a positive K value; in HSB, a grayscale value corresponds to zero H and S values, with a positive B value. The Grayscale color mode is based on the Grayscale color model.

Parameters	Description

GrayValue	Sets the level of gray in the Grayscale color model. Each color is defined as a value between 0 and 255, where 0 is darkest (black) and 255 is lightest (white). [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.HLSAssign

Sub HLSAssign(ByVal Hue As Long, ByVal Lightness As Long, ByVal Saturation As Long)

Color

Description

The HLSAssign method assigns the HLS color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The HLS model is a variation of the HSB model and contains three components: hue, lightness, and saturation. Hue determines color (yellow, orange, red, etc.); lightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). The circular visual selector defines the H value (0 to 360) and the S value (0 to 100); the vertical visual selector defines the L value (0 to 100).

Parameters	Description

Hue	Sets the Hue for the HLS color model. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]

Lightness	Sets the Lightness for the HLS color model. Lightness determines the intensity of the color. Values range from 0 to 100. [in]

Saturation	Sets the Saturation for the HLS color model. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.HSBAssign

Sub HSBAssign(ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

Color

Description

The HSBAssign method assigns the HSB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

HSB is a color model that approximates the way the human eye perceives color. In the HSB model, color is defined by three components: hue, saturation, and brightness. Hue determines color (yellow, orange, red, etc.); brightness determines perceived intensity (lighter or darker color); and saturation determines color depth (from dull to intense). In the HSB color model, Hue (H) is expressed as a degree of rotation on a circular color wheel. Saturation (S) and brightness (B) are expressed as percentages of full intensity.

Parameters	Description

Hue	Sets the Hue for the HSB color model. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]

Saturation	Sets the Saturation for the HSB color model. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]

Brightness	Sets the Brightness for the HSB color model. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.IsSame

Function IsSame(ByVal Color As Color) As Boolean

Color

Description

Returns True if the two colors are of the same color model, with equal color values

Parameters	Description

Color	Description of Color goes here [in]

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Color.LabAssign

Sub LabAssign(ByVal L As Long, ByVal A As Long, ByVal B As Long)

Color

Description

The LabAssign method assigns the LAB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The LAB color model is a color model created by the Commission Internationale de l'Eclairage (CIE). It contains a luminance (or lightness) component (L) and two chromatic components: "a" (green to red) and "b" (blue to yellow). The Lab color mode is based on the Lab color model.

Parameters	Description

L	Sets the Luminance, or brightness, value in the LAB color model. Values range from 0 to 255. [in]

A	Sets one of two chromatic components in the LAB color model. "A" refers to a range of colors between green and red. [in]

B	Sets one of two chromatic components in the LAB color model. "B" refers to a range of colors between blue and yellow. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.RegistrationAssign

Sub RegistrationAssign()

Color

Description

The RegistrationAssign method sssigns the Registration color model that allows color trapping in Corel PHOTO-PAINT. Color trapping is necessary to compensate for poor color registration that occurs when the printing plates used to print each color, called color separations, are not aligned perfectly. Poor registration causes unintentional white slivers to appear between adjoining colors. Trapping is accomplished by intentionally overlapping colors so that minor problems with alignment are not noticed.

Color trapping is achieved by overprinting. Usually, portions of an object that are obscured by another object are not printed. However, if the top object is set to overprint, the obscured portions of any underlying objects print anyway, causing an overlap. This makes white gaps between different colors unlikely. Overprinting works best when the top color is much darker than the underlying color; otherwise, an undesirable third color may result (for example, red over yellow may result in an orange object).

Example

Example of usage goes here

Code line

 Related Topics


Color.RGBAssign

Sub RGBAssign(ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long)

Color

Description

The RGBAssign method assigns the RGB color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

RGB is a color mode that contains three components: red (R), green (G), and blue (B). The RGB color mode is based on the RGB color model. In the RGB color mode, a value between 0 and 255 is assigned to each channel of red, green, and blue. An RGB color with the component values 0:25:118, for example, contains no red, some green, and more blue, resulting in a slightly greenish blue color. Monitors, scanners, and the human eye use RGB to produce or detect color.

Parameters	Description

Red	Sets the level of red in the RGB color model. Values range from 0 to 255. [in]

Green	Sets the level of green in the RGB color model. Values range from 0 to 255. [in]

Blue	Sets the level of blue in the RGB color model. Values range from 0 to 255. [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.SetName

Sub SetName(ByVal Name As String)

Color

Description

Assigns a name to an unnamed color

Parameters	Description

Name	Description of Name goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


Color.UserAssign

Sub UserAssign()

Color

Description

The UserAssign method brings up the Color dialog box, allowing the user to assign a color in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


Color.UserAssignEx

Function UserAssignEx() As Boolean

Color

Description

The UserAssignEx method sets a True or False value that brings up the Color dialog box, allowing the user to select a color in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Color.YIQAssign

Sub YIQAssign(ByVal Y As Long, ByVal I As Long, ByVal Q As Long)

Color

Description

The YIQAssign method assigns the YIQ color model in Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The YIQ color model is a color model used in television broadcast systems (North American video standard - NTSC). Colors are split into a luminance value (Y) and two chromaticity values (I and Q). On a color monitor, all three components are visible. On a monochrome monitor, only the Y component is visible. The square, two-dimensional visual selector defines the I and Q values, and the vertical visual selector defines the Y value. All values are scaled from 0 to 255.

Parameters	Description

Y	Sets the luminance, or brightness, value in the YIQ color model. Values range from 0 to 255. [in]

I	Sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255. [in]

Q	Sets one of two chromaticity values in the YIQ color model. In monitor calibration, chromaticity refers to the chroma (hue adjustment) of your monitor. Values range from 0 to 255. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorMask properties

ColorMask     Legend

    Application
      BrightnessModel
    ColorMaskColors
      Inverted
      Mode
      OutOfGamut
    Parent
      Smoothing
      Threshold


ColorMask methods

ColorMask     Legend

   AddColor
   Reset


ColorMask

Class ColorMask

Properties     Methods     Referenced By

The ColorMask class defines the characteristics of color mask objects and describes the look and behavior of the collection objects through its properties and methods.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

 Related Topics


ColorMask.Application

Property Application As Application

ColorMask

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


ColorMask.BrightnessModel

Property BrightnessModel As pntMaskBrightnessModel

ColorMask

Description

The BrightnessModel property returns or sets the mask brightness model of a color mask object in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Brightness refers to the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white.

This value returns pntMaskBrightnessModel.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.ColorMaskColors

Property ColorMaskColors As ColorMaskColors

ColorMask

Description

The ColorMaskColors property returns a value associated with the ColorMaskColors collection in Corel PHOTO-PAINT. This collection contains information about the colors used in color masks in Corel PHOTO-PAINT.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.Inverted

Property Inverted As Boolean

ColorMask

Description

The Inverted property returns or sets a True of False value that indicates whether or not a color mask is inverted in Corel PHOTO-PAINT. Often, it is easier to select the areas you want to protect from changes and then invert the selection. For example, if you want to edit a complex, irregularly shaped area, you can begin by selecting the surrounding area. Then, you can reverse the mask so that the area that was initially selected is protected, and the area that was masked is selected, i.e., available for editing.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.Mode

Property Mode As pntColorMaskMode

ColorMask

Description

The Mode property returns or sets the color mask mode of a color mask in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

This value returns pntColorMaskMode.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.OutOfGamut

Property OutOfGamut As Boolean

ColorMask

Description

The OutOfGamut property returns or sets a True or False value that indicates whether or not the color used in a color mask is an out of gamut color. An out of gamut color is a color that is beyond the capabilities (outside the gamut) of a device. When you choose an out-of-gamut color, an in-gamut color button appears beside the color swatch in the Color window.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.Parent

Property Parent As Application

ColorMask

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


ColorMask.Smoothing

Property Smoothing As Long

ColorMask

Description

The Smoothing property returns or sets a value that smoothes the edges of a color mask in Corel PHOTO-PAINT. You can smooth the edges of a selection by toning down the contrast between pixels on its edge. The smoothing radius value you specify determines the intensity of the smoothing effect. Smoothing is most useful when you work with complex color selections, which often have uneven edges. When you smooth the edges of a selection, masked areas that are completely surrounded by the selection might be removed.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.Threshold

Property Threshold As Long

ColorMask

Description

The Threshold property returns or sets the threshold value for a color mask in Corel PHOTO-PAINT. Threshold is a level of tolerance for tonal variation in a bitmap image. For example, when you convert an image to the Black-and-White color mode, the threshold you set determines how many tonal values are converted to black and how many to white. Threshold settings are also used in color-sensitive masks and some Effects filters.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.AddColor

Sub AddColor(ByVal Color As Color, [ByVal Normal As Long = 0], [ByVal Hue As Long = 0], [ByVal Saturation As Long = 0], [ByVal Brightness As Long = 0])

ColorMask

Description

The AddColor method adds a color to a color mask in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Parameters	Description

Color	Sets the color to be added to the color mask. [in]

Normal	Sets the normal level of the new color. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Hue	Sets the hue level of the new color. This value is optional and the default value is 0. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]
Optional
Default value = 0

Saturation	Sets the saturation level of the new color. This value is optional and the default value is 0. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]
Optional
Default value = 0

Brightness	Sets the brightness level of the new color. This value is optional and the default value is 0. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


ColorMask.Reset

Sub Reset([ByVal Type As pntColorMaskType = pntColorMaskSampledColors (0)], [ByVal Smoothing As Long = 0], [ByVal Inverted As Boolean = False], [ByVal Mode As pntColorMaskMode = pntColorMaskNormal (0)], [ByVal Threshold As Long = 127], [ByVal BrightnessModel As pntMaskBrightnessModel = pntMaskToBlack (1)])

ColorMask

Description

The Reset method resets the values of a color mask in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Parameters	Description

Type	Sets the color mask type. This value returns pntColorMaskType. This value is optional and the default value is pntColorMaskSampledColors (0) [in]
Optional
Default value = pntColorMaskSampledColors (0)

Smoothing	Sets the smoothing value. This value is optional and the default value is 0. You can smooth the edges of a selection by toning down the contrast between pixels on its edge. The smoothing radius value you specify determines the intensity of the smoothing effect. Smoothing is most useful when you work with complex color selections, which often have uneven edges. When you smooth the edges of a selection, masked areas that are completely surrounded by the selection might be removed. [in]
Optional
Default value = 0

Inverted	Sets a True or False value that indicates whether or not to invert a color mask. This value is optional and the default value is False. [in]
Optional
Default value = False

Mode	Sets the mask mode. This value returns pntColorMaskMode. This value is optional and the default value is pntColorMaskNormal (0) [in]
Optional
Default value = pntColorMaskNormal (0)

Threshold	Sets the threshold level. This value is optional and the default value is 127. Threshold is a level of tolerance for tonal variation in a bitmap image. For example, when you convert an image to the Black-and-White color mode, the threshold you set determines how many tonal values are converted to black and how many to white. Threshold settings are also used in color-sensitive masks and some Effects filters. [in]
Optional
Default value = 127

BrightnessModel	Sets the brightness model type. This value returns pntMaskBrightnessModel. This value is optional and the default value is pntMaskToBlack (1) [in]
Optional
Default value = pntMaskToBlack (1)

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor properties

ColorMaskColor     Legend

    Application
      Brightness
      Color
      Hue
      Normal
    Parent
      Saturation


ColorMaskColor methods

ColorMaskColor     Legend

   Delete


ColorMaskColor

Class ColorMaskColor

Properties     Methods     Referenced By

The ColorMaskColor class defines the characteristics of a color in a color mask object and describes the look and behavior of the collection objects through its properties and methods.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

 Related Topics


ColorMaskColor.Application

Property Application As Application

ColorMaskColor

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


ColorMaskColor.Brightness

Property Brightness As Long

ColorMaskColor

Description

The Brightness property returns or sets the brightness level of a color in a color mask in Corel PHOTO-PAINT. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor.Color

Property Color As Color

ColorMaskColor

Description

The Color property returns or sets a value associated with a color in a color mask in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor.Hue

Property Hue As Long

ColorMaskColor

Description

The Hue property returns or sets the hue level of a color in a color mask in Corel PHOTO-PAINT. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor.Normal

Property Normal As Long

ColorMaskColor

Description

The Normal property returns or sets the normal level of a color in a color mask in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor.Parent

Property Parent As Application

ColorMaskColor

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


ColorMaskColor.Saturation

Property Saturation As Long

ColorMaskColor

Description

The Saturation property returns or sets the saturation level of a color in a color mask in Corel PHOTO-PAINT. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColor.Delete

Sub Delete()

ColorMaskColor

Description

The Delete method deletes a color in a color mask object in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColors properties

ColorMaskColors     Legend

    Application
    Count
  Item
    Parent


ColorMaskColors methods

ColorMaskColors     Legend

   Add


ColorMaskColors

Class ColorMaskColors

Properties     Methods     Referenced By

The ColorMaskColors class defines the characteristics of a ColorMaskColors collection objects and describes the look and behavior of the collection objects through its properties and methods.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

 Related Topics


ColorMaskColors.Application

Property Application As Application

ColorMaskColors

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


ColorMaskColors.Count

Property Count As Long

ColorMaskColors

Description

The Count property counts the number of color mask colors in the ColorMaskColors collection of Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColors.Item

Property Item(ByVal Index As Long) As ColorMaskColor

ColorMaskColors

Description

The Item property returns a value associated with the index number of a color in the ColorMaskColors collection of Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

ColorMaskColors(2) refers to the second color mask color in the collection.

The Item property returns a Read-Only value. The Item property is the default property and may be omitted when referencing items in the collection.

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each color mask color in the ColorMaskColors collection; it uniquely identifies each member of the collection. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorMaskColors.Parent

Property Parent As Application

ColorMaskColors

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


ColorMaskColors.Add

Sub Add(ByVal pVal As ColorMaskColor)

ColorMaskColors

Description

The Add method adds a color mask color to the ColorMaskColors collection in Corel PHOTO-PAINT. A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Parameters	Description

pVal	Specifies the color mask color that is added to the ColorMaskColors collection. [in]

Example

Example of usage goes here

Code line

 Related Topics


Colors properties

Colors     Legend

    Application
    Count
  Item
    Parent


Colors

Class Colors

Properties     Referenced By

The Colors class defines the characteristics of Colors collection objects and describes the look and behavior of the collection objects through its properties and methods.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

There are many different color models that define colors - HSB, RGB, CMYK, and CIE Lab color models. The RGB and CMYK color models are only two of a number of models developed to suit a variety of digital design and desktop publishing applications. It is not necessary to be familiar with all these models, but it is helpful to be familiar with a few of the more widely used ones.

We all see color differently. Color is subjective to the human eye. Each device that interacts with your project's file: the scanner, monitor, and printer may have a different color space. For example, a color that is visible to the human eye may not be reproducible by your printer.

Because there are so many color variations, a precise method for defining each color is required. For example, once you find the perfect shade of light orange, you need to be able to reproduce that color and possibly tell others how to do the same. A color model defines that perfect shade of light orange by breaking it down into precise components that allow you to accurately transmit the information to other people and to the electronic devices you use to create projects.

 Related Topics


Colors.Application

Property Application As Object

Colors

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub ColorsApp()

With ActivePalette.Colors

 MsgBox "You are using Corel PHOTO-PAINT " & .Application.Version

End With

End Sub

 Related Topics


Colors.Count

Property Count As Long

Colors

Description

The Count property returns the number of colors in the Colors collection of Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

The Count property returns a Read-Only value.

Read-Only

Example

The following code example displays the number of colors in the active palette's Colors collection in a message box:

Sub ColorsCount()

With ActivePalette.Colors

 MsgBox .Count

End With

End Sub

 Related Topics


Colors.Item

Property Item(ByVal Index As Long) As Color

Colors

Description

The Item property returns a value associated with the index number of a color in the Colors collection of Corel PHOTO-PAINT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

Colors(2) refers to the second color in the Colors collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Colors.Item(2) is the same as Colors(2) - they both reference the second color in the Colors collection.

You must reference a color in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each color in a Colors collection; it uniquely identifies each member of the collection. [in]

Example

The following code example displays the color type of the Colors collection's third color in a message box:

Sub ColorsItem()

With ActivePalette.Colors

 MsgBox .Item(3).Type

End With

End Sub

 Related Topics


Colors.Parent

Property Parent As Palette

Colors

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the Colors collection's parent palette in a message box:

Sub ColorsParent()

With ActivePalette.Colors

 MsgBox .Parent.Name

End With

End Sub

 Related Topics


ColorTable properties

ColorTable     Legend

    Application
    Count
    Item
    Parent


ColorTable methods

ColorTable     Legend

   AddColor
   GetIndexOfColor
   LoadPalette
   LoadPaletteFromFile
   Sort


ColorTable

Class ColorTable

Properties     Methods     Referenced By

The ColorTable class defines the characteristics of color table objects and describes the look and behavior of the collection objects through its properties and methods. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and kind of colors that make up a bitmap image. Black-and-White, Grayscale, RGB, CMYK, and Paletted are examples of popular color modes. A color model is a system used to organize and define colors according to a set of basic properties that may be reproduced.

After you convert an image to the Paletted color mode, you can use the Color Table to customize the Color Palette of the image. A custom Color Palette is a collection of colors saved in a Color Palette file format. They are useful when you often use the same colors or when you want to work with a set of complementary colors.

 Related Topics


ColorTable.Application

Property Application As Application

ColorTable

Description

The Parent property returns a value associated with the parent object of a color table in Corel PHOTO-PAINT. A parent is an object that retains its shape but contains the color or texture of the child objects that are clipped to it in a clipping group. An object is always the parent to the objects that are listed above it in the Objects Docker window.

A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

This property returns a Read-Only value.

Read-Only

 Related Topics


ColorTable.Count

Property Count As Long

ColorTable

Description

The Count property counts the number of color tables in the Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.Item

Property Item(ByVal Index As Long) As Color

ColorTable

Description

The Item property returns a value associated with the index number of a color table in Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

The Item property returns a Read-Only value. You must reference an arrowhead in the collection by passing its index number as a parameter:

Parameters	Description

Index	Index is a preset placeholder for each color table object in Corel PHOTO-PAINT; it uniquely identifies each color table. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.Parent

Property Parent As Document

ColorTable

Description

The Parent property returns a value associated with the parent object of a color table in Corel PHOTO-PAINT. A parent is an object that retains its shape but contains the color or texture of the child objects that are clipped to it in a clipping group. An object is always the parent to the objects that are listed above it in the Objects Docker window.

A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

This property returns a Read-Only value.

Read-Only

 Related Topics


ColorTable.AddColor

Sub AddColor(ByVal Color As Color)

ColorTable

Description

The AddColor method creates a new color table in Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

Parameters	Description

Color	Specifies a color object that creates a new color table with the AddColor method. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.GetIndexOfColor

Function GetIndexOfColor(ByVal Color As Color) As Long

ColorTable

Description

The GetIndexOfColor method returns the index number of a color in the palette of a color table in Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

Parameters	Description

Color	Specifies a color object and returns the index number of that color with the GetIndexOfColor method. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. [in]

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.LoadPalette

Sub LoadPalette(ByVal Palette As Palette)

ColorTable

Description

The LoadPalette method loads a color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Parameters	Description

Palette	Specifies the color palette to open with the LoadPalette method. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.LoadPaletteFromFile

Sub LoadPaletteFromFile(ByVal FileName As String)

ColorTable

Description

The LoadPaletteFromFile method loads a color palette that is stored in a file outside of Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Parameters	Description

FileName	Specifies the computer location of a color palette that is loaded with the LoadPaletteFromFile method. [in]

Example

Example of usage goes here

Code line

 Related Topics


ColorTable.Sort

Sub Sort(ByVal Method As cdrPaletteSortMethod)

ColorTable

Description

The Sort method sorts the colors in a color table in Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

Parameters	Description

Method	Specifies how to sort the colors in a color table. This value returns cdrPaletteSortMethod. [in]

Example

Example of usage goes here

Code line

 Related Topics


CorelScript methods

CorelScript     Legend

   AdjustEffectInfo
   AlphaOrder
   BindToActiveDocument
   BitmapEffect
   BrushDabSettings
   BrushOrbitSettings
   BrushSettings
   BrushTextureSettings
   BrushTool
   ChannelNew
   ChannelProperties
   CloneTool
   ColorMaskApply
   ColorMaskColor
   ColorMaskCreateChannel
   ColorMaskCreateMask
   ColorMaskReset
   ColorReplace
   ColorReplacerTool
   ContinueDraw
   CreateBackground
   DuotoneHandle
   DuotoneInfo
   EditCheckpoint
   EditClear
   EditClearClipboard
   EditCopy
   EditCopyToFile
   EditCopyVisible
   EditCut
   EditCutIntoSelection
   EditCutMask
   EditCutSelection
   EditFill
   EditPasteDocument
   EditPasteFromFile
   EditPasteIntoSelection
   EditPasteObject
   EditPasteSelection
   EditRestoreCheckpoint
   EditUndo
   Effect3DRotate
   Effect3DStereoNoise
   EffectAdaptiveUnsharp
   EffectAddNoise
   EffectAdjustBlur
   EffectAdjustNoise
   EffectAdjustSharpness
   EffectAlchemy
   EffectBandPass
   EffectBitPlanes
   EffectBrickWall
   EffectBubbles
   EffectBumpMap
   EffectCanvas
   EffectCharcoal
   EffectCobblestone
   EffectConteCrayon
   EffectCraft
   EffectCrayon
   EffectCrystalize
   EffectCubist
   EffectCylinder
   EffectDabble
   EffectDiffuse
   EffectDirectionalSharpen
   EffectDirectionalSmooth
   EffectDisplace
   EffectDustScratch
   EffectEdgeDetect
   EffectElephantSkin
   EffectEmboss
   EffectEtching
   EffectFabric
   EffectFindEdges
   EffectFrame
   EffectFrameSettings
   EffectGaussianBlur
   EffectGlass
   EffectGlassBlock
   EffectHalftone
   EffectHighPass
   EffectImpressionist
   EffectJaggyDespeckle
   EffectKidsplay
   EffectLensFlare
   EffectLighting
   EffectLightSource
   EffectLocalHistogram
   EffectLowPass
   EffectMapToObject
   EffectMaximum
   EffectMedian
   EffectMeshPoint
   EffectMeshWarp
   EffectMinimum
   EffectMosaic
   EffectMotionBlur
   EffectOffset
   EffectPageCurl
   EffectPaletteKnife
   EffectParticle
   EffectPastels
   EffectPenInk
   EffectPerspective
   EffectPinchPunch
   EffectPixelate
   EffectPlasterWall
   EffectPlastic
   EffectPlugin
   EffectPointillist
   EffectPsychedelic
   EffectPuzzle
   EffectRadialBlur
   EffectReliefSculpture
   EffectRemoveMoire
   EffectRemoveNoise
   EffectRipple
   EffectScatter
   EffectScraperboard
   EffectScreenDoor
   EffectSharpen
   EffectShear
   EffectShearTable
   EffectSketchPad
   EffectSmokedGlass
   EffectSmooth
   EffectSoften
   EffectSolarize
   EffectSphere
   EffectStainedGlass
   EffectStone
   EffectSwirl
   EffectTheBoss
   EffectTile
   EffectTool
   EffectTraceContour
   EffectUnderpainting
   EffectUnsharpMask
   EffectUserDefined
   EffectUserDefinedPoint
   EffectVignette
   EffectVortex
   EffectWatercolor
   EffectWaterMarker
   EffectWavePaper
   EffectWeather
   EffectWetPaint
   EffectWhirlpool
   EffectWind
   EffectZigZag
   EffectZoom
   Ellipse
   EllipseTool
   EndAdjustEffect
   EndColorEffect
   EndColorMask
   EndColorReplace
   EndColorTable
   EndConvertDuotone
   EndConvertPaletted
   EndDraw
   EndEditFill
   EndEffectFrame
   EndEffectLighting
   EndEffectMeshWarp
   EndEffectShear
   EndEffectUserDefined
   EndGuideline
   EndImageEqualize
   EndImageSTBalance
   EndImageToneCurve
   EndMaskCreate
   EndMovieFrameRate
   EndObject
   EndObjectColorTransparencyTool
   EndObjectTagWWWURL
   Eraser
   FadeLastCommand
   FileClose
   FileExit
   FileImport
   FileNew
   FileOpen
   FilePrint
   FileRevert
   FileSave
   FileSelectPartialArea
   Fill
   FillBitmap
   FillFountain
   FillFountainApply
   FillFountainColor
   FillSolid
   FillTexture
   FillTextureSettings
   FillTool
   FilterAVI
   FilterFPX
   FilterGIF
   FilterICO
   FilterJPG
   FilterMPG
   FilterOS2
   FilterPCD
   FilterPNG
   FilterRAW
   FilterTGA
   FilterWVL
   GetChannelCount
   GetChannelName
   GetCurrentMovieFrame
   GetDocumentCount
   GetDocumentHeight
   GetDocumentHRes
   GetDocumentIsMovie
   GetDocumentIsPartial
   GetDocumentModified
   GetDocumentName
   GetDocumentType
   GetDocumentVRes
   GetDocumentWidth
   GetDocumentXdpi
   GetDocumentXGridFrequency
   GetDocumentXRulerUnits
   GetDocumentYdpi
   GetDocumentYGridFrequency
   GetDocumentYRulerUnits
   GetFillColor
   GetFrameCount
   GetGuidelineCount
   GetGuidelineProperties
   GetMaskPresent
   GetMaskRectangle
   GetObjectCount
   GetObjectIsEditable
   GetObjectIsSelected
   GetObjectIsVisible
   GetObjectMergeMode
   GetObjectName
   GetObjectOpacity
   GetObjectProperties
   GetObjectRectangle
   GetPaintColor
   GetPaintVersion
   GetPaperColor
   GetPartialDocumentHeight
   GetPartialDocumentWidth
   GetPhotoPaintDir
   GetPixelColor
   GetSelectedObjectsRectangle
   Gradient
   GradientPoint
   GradientTool
   GridSetup
   GuidelineAdd
   GuidelineDelete
   GuidelineMove
   GuidelineSelect
   ImageApplyICCProfile
   ImageAutoEqualize
   ImageBCI
   ImageColorBalance
   ImageColorCrop
   ImageColorHue
   ImageColorTable
   ImageColorTone
   ImageConvert
   ImageConvertDuotone
   ImageConvertPaletted
   ImageConvertVideoNTSC
   ImageConvertVideoPAL
   ImageCrop
   ImageCropToMask
   ImageDeInterlace
   ImageDesaturate
   ImageDeskew
   ImageDeskewCrop
   ImageDuplicate
   ImageEqualize
   ImageEqualizeChannel
   ImageFlipHorizontal
   ImageFlipVertical
   ImageGamma
   ImageHSL
   ImageHSLChannel
   ImageInvert
   ImageLevelThreshold
   ImagePapersize
   ImagePosterize
   ImageReplaceColors
   ImageResample
   ImageRotate
   ImageSelectiveColor
   ImageSelectiveColorChannel
   ImageSetChannel
   ImageSplit
   ImageSprayerList
   ImageSprayerSettings
   ImageSprayerTool
   ImageSTBalance
   ImageSTColor
   ImageToneChannel
   ImageToneCurve
   ImageTonePoint
   ImageToneTable
   ISAddLine
   ISAssign
   ISAutoSlice
   ISClearAll
   ISDelLine
   ISEqual
   ISExport
   ISImport
   ISMoveLine
   ISSelect
   LensCreateFromMask
   LensEdit
   LensNew
   LineTool
   LocalUndo
   MaskAffineDistort
   MaskAlign
   MaskAntiAlias
   MaskAverage
   MaskBorder
   MaskBrush
   MaskChannelAdd
   MaskChannelDelete
   MaskChannelLoad
   MaskChannelName
   MaskChannelSave
   MaskChannelToMask
   MaskCreate
   MaskCreateFromPath
   MaskDeFloat
   MaskDefloatIntoSelection
   MaskDistort
   MaskEllipse
   MaskExpand
   MaskFeather
   MaskFlipHorizontal
   MaskFlipVertical
   MaskFloaterMoveTo
   MaskFloaterTranslate
   MaskFreehand
   MaskGrow
   MaskInvert
   MaskLasso
   MaskLoad
   MaskMagicWand
   MaskPaint
   MaskRectangle
   MaskReduce
   MaskRemove
   MaskRemoveHoles
   MaskRotate
   MaskSave
   MaskScissors
   MaskSelectAll
   MaskSimilar
   MaskSkew
   MaskSmooth
   MaskStretch
   MaskStroke
   MaskThreshold
   MaskToMaskChannel
   MaskTranslate
   MovieBackOne
   MovieCreate
   MovieDeleteFrame
   MovieForward
   MovieForwardOne
   MovieFrameDelay
   MovieFrameRate
   MovieGotoFrame
   MovieInsertFile
   MovieInsertFrame
   MovieMoveFrame
   MovieRewind
   MovieSelectPartial
   NibSettings
   ObjectAddClipMask
   ObjectAddClipMaskFromMask
   ObjectAddClipMaskFromTransparency
   ObjectAffineDistort
   ObjectAlign
   ObjectClip
   ObjectClipToParent
   ObjectColorTransparencyTool
   ObjectCombine
   ObjectCreate
   ObjectCreateFromBackground
   ObjectCutout
   ObjectDefringe
   ObjectDelete
   ObjectDistort
   ObjectDropShadow
   ObjectDropShadowCombine
   ObjectDropShadowDelete
   ObjectDropShadowSplit
   ObjectDuplicate
   ObjectEdit
   ObjectEditAll
   ObjectEditNone
   ObjectEditSelected
   ObjectEditTransparency
   ObjectFeather
   ObjectFlipHorizontal
   ObjectFlipVertical
   ObjectGroup
   ObjectMerge
   ObjectMergeMode
   ObjectName
   ObjectNew
   ObjectOpacity
   ObjectOrder
   ObjectOrderChange
   ObjectProperties
   ObjectRemoveClipMask
   ObjectRemoveMatte
   ObjectRotate
   ObjectSelect
   ObjectSelectAll
   ObjectSelection
   ObjectSelectNone
   ObjectSkew
   ObjectStretch
   ObjectTagWWWURL
   ObjectThreshold
   ObjectToggleClipMask
   ObjectToggleLinkClipMask
   ObjectTranslate
   ObjectTransparencyTool
   ObjectUngroup
   ObjectURLInfo
   ObjectVisible
   OverprintColor
   PaletteColor
   PathCreate
   PathCreateFromMask
   PathDelete
   PathDuplicate
   PathEnd
   PathImportVector
   PathLoad
   PathNew
   PathNode
   PathSave
   PathSetClippingPath
   PathStroke
   PathVisible
   PolygonTool
   PressureSettings
   RandomSeed
   Rectangle
   RectangleTool
   RedEyeTool
   RegisterObject
   RepeatSettings
   SelectionMoveTo
   SelectionPlugin
   SetActiveTool
   SetDocumentInfo
   SetDocVisible
   SetPaintColor
   SetPaperColor
   SetVisible
   SnapToGrid
   StartCloneDraw
   StartDraw
   StraightenText
   SymmetrySettings
   TextAppend
   TextEdit
   TextFitToPath
   TextRender
   TextRenderObject
   TextSetting
   TextTool
   ToleranceSettings
   TransparencyBrushTool
   UnRegisterObject
   WebChangeRollover
   WebCreateRollover
   WebEditRollover
   WebExtractRollover
   WebFinishRollover
   WebResetRollover
   WebTrashRollover


CorelScript

Class CorelScript

Methods     Referenced By

 Related Topics


CorelScript.AdjustEffectInfo

Sub AdjustEffectInfo(ByVal EffectID As Long, ByVal Value1 As Long, ByVal Value2 As Long, ByVal Value3 As Long)

CorelScript

Description

Parameters	Description

EffectID	Description of EffectID goes here

Value1	Description of Value1 goes here

Value2	Description of Value2 goes here

Value3	Description of Value3 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.AlphaOrder

Sub AlphaOrder(ByVal CurrentIndex As Long, ByVal NewIndex As Long)

CorelScript

Description

Parameters	Description

CurrentIndex	Description of CurrentIndex goes here

NewIndex	Description of NewIndex goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BindToActiveDocument

Sub BindToActiveDocument()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BitmapEffect

Sub BitmapEffect(ByVal Name As String, ByVal Parameters As String)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

Parameters	Description of Parameters goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BrushDabSettings

Sub BrushDabSettings(ByVal Dabs As Long, ByVal Spacing As Long, ByVal Spread As Long, ByVal FadeOut As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Luminance As Long)

CorelScript

Description

Parameters	Description

Dabs	Description of Dabs goes here

Spacing	Description of Spacing goes here

Spread	Description of Spread goes here

FadeOut	Description of FadeOut goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Luminance	Description of Luminance goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BrushOrbitSettings

Sub BrushOrbitSettings(ByVal Points As Long, ByVal Radius As Long, ByVal Rotation As Long, ByVal GrowRate As Long, ByVal GrowScale As Long, ByVal Center As Boolean, ByVal Clockwise As Boolean, ByVal ColorHue As Long, ByVal ColorSaturation As Long, ByVal ColorLightness As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Lightness As Long)

CorelScript

Description

Parameters	Description

Points	Description of Points goes here

Radius	Description of Radius goes here

Rotation	Description of Rotation goes here

GrowRate	Description of GrowRate goes here

GrowScale	Description of GrowScale goes here

Center	Description of Center goes here

Clockwise	Description of Clockwise goes here

ColorHue	Description of ColorHue goes here

ColorSaturation	Description of ColorSaturation goes here

ColorLightness	Description of ColorLightness goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Lightness	Description of Lightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BrushSettings

Sub BrushSettings(ByVal ToolID As Long, ByVal BrushID As Long, ByVal TypeID As Long, ByVal MergeMode As Long, ByVal Amount As Long, ByVal NibShape As Long, ByVal Size As Long, ByVal Transparency As Long, ByVal Rotate As Long, ByVal Flatten As Long, ByVal SoftEdge As Long)

CorelScript

Description

Parameters	Description

ToolID	Description of ToolID goes here

BrushID	Description of BrushID goes here

TypeID	Description of TypeID goes here

MergeMode	Description of MergeMode goes here

Amount	Description of Amount goes here

NibShape	Description of NibShape goes here

Size	Description of Size goes here

Transparency	Description of Transparency goes here

Rotate	Description of Rotate goes here

Flatten	Description of Flatten goes here

SoftEdge	Description of SoftEdge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BrushTextureSettings

Sub BrushTextureSettings(ByVal TextureFile As String, ByVal BrushTexture As Long, ByVal EdgeTexture As Long, ByVal Bleed As Long, ByVal SustainColor As Long, ByVal Smoothing As Long, ByVal AntiAlias As Boolean, ByVal Cumulative As Boolean, ByVal Range As Long, ByVal MergedSource As Boolean)

CorelScript

Description

Parameters	Description

TextureFile	Description of TextureFile goes here

BrushTexture	Description of BrushTexture goes here

EdgeTexture	Description of EdgeTexture goes here

Bleed	Description of Bleed goes here

SustainColor	Description of SustainColor goes here

Smoothing	Description of Smoothing goes here

AntiAlias	Description of AntiAlias goes here

Cumulative	Description of Cumulative goes here

Range	Description of Range goes here

MergedSource	Description of MergedSource goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.BrushTool

Sub BrushTool(ByVal BrushID As Long, ByVal TypeID As Long, ByVal MergeMode As Long, ByVal Amount As Long, ByVal NibShape As Long, ByVal Size As Long, ByVal Transparency As Long, ByVal Rotate As Long, ByVal Flatten As Long, ByVal SoftEdge As Long)

CorelScript

Description

Parameters	Description

BrushID	Description of BrushID goes here

TypeID	Description of TypeID goes here

MergeMode	Description of MergeMode goes here

Amount	Description of Amount goes here

NibShape	Description of NibShape goes here

Size	Description of Size goes here

Transparency	Description of Transparency goes here

Rotate	Description of Rotate goes here

Flatten	Description of Flatten goes here

SoftEdge	Description of SoftEdge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ChannelNew

Sub ChannelNew(ByVal Name As String, ByVal Opacity As Long, ByVal Invert As Long, ByVal FillWhite As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

Opacity	Description of Opacity goes here

Invert	Description of Invert goes here

FillWhite	Description of FillWhite goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ChannelProperties

Sub ChannelProperties(ByVal ChannelID As Long, ByVal Name As String, ByVal Opacity As Long, ByVal Invert As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ChannelID	Description of ChannelID goes here

Name	Description of Name goes here

Opacity	Description of Opacity goes here

Invert	Description of Invert goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.CloneTool

Sub CloneTool(ByVal BrushID As Long, ByVal TypeID As Long, ByVal MergeMode As Long, ByVal Amount As Long, ByVal NibShape As Long, ByVal Size As Long, ByVal Transparency As Long, ByVal Rotate As Long, ByVal Flatten As Long, ByVal SoftEdge As Long)

CorelScript

Description

Parameters	Description

BrushID	Description of BrushID goes here

TypeID	Description of TypeID goes here

MergeMode	Description of MergeMode goes here

Amount	Description of Amount goes here

NibShape	Description of NibShape goes here

Size	Description of Size goes here

Transparency	Description of Transparency goes here

Rotate	Description of Rotate goes here

Flatten	Description of Flatten goes here

SoftEdge	Description of SoftEdge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorMaskApply

Sub ColorMaskApply(ByVal MaskMode As Long, ByVal Smoothing As Long, ByVal ToleranceMode As Long)

CorelScript

Description

Parameters	Description

MaskMode	Description of MaskMode goes here

Smoothing	Description of Smoothing goes here

ToleranceMode	Description of ToleranceMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorMaskColor

Sub ColorMaskColor(ByVal Number As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Number	Description of Number goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorMaskCreateChannel

Sub ColorMaskCreateChannel(ByVal MaskMode As Long, ByVal Smoothing As Long, ByVal ToleranceMode As Long, ByVal Gamut As Boolean, ByVal Threshold As Long, ByVal BrightnessModel As Long, ByVal Name As String)

CorelScript

Description

Parameters	Description

MaskMode	Description of MaskMode goes here

Smoothing	Description of Smoothing goes here

ToleranceMode	Description of ToleranceMode goes here

Gamut	Description of Gamut goes here

Threshold	Description of Threshold goes here

BrightnessModel	Description of BrightnessModel goes here

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorMaskCreateMask

Sub ColorMaskCreateMask(ByVal DrawMode As Long, ByVal MaskMode As Long, ByVal Smoothing As Long, ByVal ToleranceMode As Long, ByVal Gamut As Boolean, ByVal Threshold As Long, ByVal BrightnessModel As Long)

CorelScript

Description

Parameters	Description

DrawMode	Description of DrawMode goes here

MaskMode	Description of MaskMode goes here

Smoothing	Description of Smoothing goes here

ToleranceMode	Description of ToleranceMode goes here

Gamut	Description of Gamut goes here

Threshold	Description of Threshold goes here

BrightnessModel	Description of BrightnessModel goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorMaskReset

Sub ColorMaskReset()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorReplace

Sub ColorReplace(ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ColorReplacerTool

Sub ColorReplacerTool(ByVal Width As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal NibShape As Long, ByVal Transparency As Long, ByVal SoftEdge As Long, ByVal AntiAlias As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

NibShape	Description of NibShape goes here

Transparency	Description of Transparency goes here

SoftEdge	Description of SoftEdge goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ContinueDraw

Sub ContinueDraw(ByVal X As Long, ByVal Y As Long, ByVal Timer As Long, ByVal Pressure As Long, ByVal Tilt As Long, ByVal Rotate As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Timer	Description of Timer goes here

Pressure	Description of Pressure goes here

Tilt	Description of Tilt goes here

Rotate	Description of Rotate goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.CreateBackground

Sub CreateBackground(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.DuotoneHandle

Sub DuotoneHandle(ByVal ToneNumber As Long, ByVal HandleNumber As Long, ByVal X As Long, ByVal Y As Long)

CorelScript

Description

Parameters	Description

ToneNumber	Description of ToneNumber goes here

HandleNumber	Description of HandleNumber goes here

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.DuotoneInfo

Sub DuotoneInfo(ByVal ToneNumber As Long, ByVal Handles As Long, ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long)

CorelScript

Description

Parameters	Description

ToneNumber	Description of ToneNumber goes here

Handles	Description of Handles goes here

Cyan	Description of Cyan goes here

Magenta	Description of Magenta goes here

Yellow	Description of Yellow goes here

Black	Description of Black goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCheckpoint

Sub EditCheckpoint()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditClear

Sub EditClear(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditClearClipboard

Sub EditClearClipboard()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCopy

Sub EditCopy()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCopyToFile

Sub EditCopyToFile(ByVal FileName As String, ByVal FilterID As Long, ByVal Compression As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

FilterID	Description of FilterID goes here

Compression	Description of Compression goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCopyVisible

Sub EditCopyVisible()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCut

Sub EditCut(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCutIntoSelection

Sub EditCutIntoSelection()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCutMask

Sub EditCutMask(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditCutSelection

Sub EditCutSelection()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditFill

Sub EditFill(ByVal MergeMode As Long, ByVal StartTransparency As Long, ByVal EndTransparency As Long, ByVal GradientType As Long, ByVal Handles As Long, ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long, ByVal x3 As Long, ByVal y3 As Long)

CorelScript

Description

Parameters	Description

MergeMode	Description of MergeMode goes here

StartTransparency	Description of StartTransparency goes here

EndTransparency	Description of EndTransparency goes here

GradientType	Description of GradientType goes here

Handles	Description of Handles goes here

x1	Description of x1 goes here

y1	Description of y1 goes here

x2	Description of x2 goes here

y2	Description of y2 goes here

x3	Description of x3 goes here

y3	Description of y3 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditPasteDocument

Sub EditPasteDocument()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditPasteFromFile

Sub EditPasteFromFile(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long, ByVal X As Long, ByVal Y As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

LoadType	Description of LoadType goes here

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditPasteIntoSelection

Sub EditPasteIntoSelection(ByVal FileName As String)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditPasteObject

Sub EditPasteObject(ByVal X As Long, ByVal Y As Long, ByVal FileName As String, ByVal ResampleWidth As Long, ByVal ResampleHeight As Long, ByVal ResampleWidthRes As Long, ByVal ResampleHeightRes As Long, ByVal AntiAliased As Boolean)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

FileName	Description of FileName goes here

ResampleWidth	Description of ResampleWidth goes here

ResampleHeight	Description of ResampleHeight goes here

ResampleWidthRes	Description of ResampleWidthRes goes here

ResampleHeightRes	Description of ResampleHeightRes goes here

AntiAliased	Description of AntiAliased goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditPasteSelection

Sub EditPasteSelection(ByVal X As Long, ByVal Y As Long, ByVal FileName As String)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditRestoreCheckpoint

Sub EditRestoreCheckpoint()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EditUndo

Sub EditUndo()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Effect3DRotate

Sub Effect3DRotate(ByVal Horizontal As Long, ByVal Vertical As Long, ByVal Face As Long, ByVal BestFit As Boolean)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Face	Description of Face goes here

BestFit	Description of BestFit goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Effect3DStereoNoise

Sub Effect3DStereoNoise(ByVal Depth As Long, ByVal Dots As Boolean)

CorelScript

Description

Parameters	Description

Depth	Description of Depth goes here

Dots	Description of Dots goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAdaptiveUnsharp

Sub EffectAdaptiveUnsharp(ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAddNoise

Sub EffectAddNoise(ByVal Level As Long, ByVal Density As Long, ByVal ColorNoise As Boolean, ByVal NoiseType As Long, ByVal ColorMode As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Density	Description of Density goes here

ColorNoise	Description of ColorNoise goes here

NoiseType	Description of NoiseType goes here

ColorMode	Description of ColorMode goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAdjustBlur

Sub EffectAdjustBlur()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAdjustNoise

Sub EffectAdjustNoise()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAdjustSharpness

Sub EffectAdjustSharpness()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectAlchemy

Sub EffectAlchemy(ByVal FileName As String, ByVal Layer As Long, ByVal Density As Long, ByVal Rand As Long, ByVal HPosV As Long, ByVal VPosV As Long, ByVal BrushClr As Boolean, ByVal BackClr As Boolean, ByVal ClrModel As Long, ByVal ClrP1 As Long, ByVal ClrP2 As Long, ByVal ClrP3 As Long, ByVal ClrP4 As Long, ByVal ClrMode2 As Long, ByVal ClrP5 As Long, ByVal ClrP6 As Long, ByVal ClrP7 As Long, ByVal ClrP8 As Long, ByVal HueV As Long, ByVal SatV As Long, ByVal BrtV As Long, ByVal BrushSize As Long, ByVal Size1 As Long, ByVal Size2 As Long, ByVal SizeV As Long, ByVal BrushAngle As Long, ByVal Angle1 As Long, ByVal Angle2 As Long, ByVal AngleV As Long, ByVal BrushTrans As Long, ByVal Trans1 As Long, ByVal Trans2 As Long, ByVal TransV As Long, ByVal Dx As Double, ByVal Dy As Double)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Layer	Description of Layer goes here

Density	Description of Density goes here

Rand	Description of Rand goes here

HPosV	Description of HPosV goes here

VPosV	Description of VPosV goes here

BrushClr	Description of BrushClr goes here

BackClr	Description of BackClr goes here

ClrModel	Description of ClrModel goes here

ClrP1	Description of ClrP1 goes here

ClrP2	Description of ClrP2 goes here

ClrP3	Description of ClrP3 goes here

ClrP4	Description of ClrP4 goes here

ClrMode2	Description of ClrMode2 goes here

ClrP5	Description of ClrP5 goes here

ClrP6	Description of ClrP6 goes here

ClrP7	Description of ClrP7 goes here

ClrP8	Description of ClrP8 goes here

HueV	Description of HueV goes here

SatV	Description of SatV goes here

BrtV	Description of BrtV goes here

BrushSize	Description of BrushSize goes here

Size1	Description of Size1 goes here

Size2	Description of Size2 goes here

SizeV	Description of SizeV goes here

BrushAngle	Description of BrushAngle goes here

Angle1	Description of Angle1 goes here

Angle2	Description of Angle2 goes here

AngleV	Description of AngleV goes here

BrushTrans	Description of BrushTrans goes here

Trans1	Description of Trans1 goes here

Trans2	Description of Trans2 goes here

TransV	Description of TransV goes here

Dx	Description of Dx goes here

Dy	Description of Dy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectBandPass

Sub EffectBandPass(ByVal InRadius As Long, ByVal OutRadius As Long, ByVal InBand As Long, ByVal MidBand As Long, ByVal OutBand As Long)

CorelScript

Description

Parameters	Description

InRadius	Description of InRadius goes here

OutRadius	Description of OutRadius goes here

InBand	Description of InBand goes here

MidBand	Description of MidBand goes here

OutBand	Description of OutBand goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectBitPlanes

Sub EffectBitPlanes(ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long)

CorelScript

Description

Parameters	Description

Red	Description of Red goes here

Green	Description of Green goes here

Blue	Description of Blue goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectBrickWall

Sub EffectBrickWall(ByVal Roughness As Long, ByVal BrickWidth As Long, ByVal BrickHeight As Long, ByVal GroutWidth As Long, ByVal Direction As Long)

CorelScript

Description

Parameters	Description

Roughness	Description of Roughness goes here

BrickWidth	Description of BrickWidth goes here

BrickHeight	Description of BrickHeight goes here

GroutWidth	Description of GroutWidth goes here

Direction	Description of Direction goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectBubbles

Sub EffectBubbles(ByVal Diameter As Long, ByVal Coverage As Long, ByVal Direction As Long, ByVal Refraction As Long, ByVal Seed As Long)

CorelScript

Description

Parameters	Description

Diameter	Description of Diameter goes here

Coverage	Description of Coverage goes here

Direction	Description of Direction goes here

Refraction	Description of Refraction goes here

Seed	Description of Seed goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectBumpMap

Sub EffectBumpMap(ByVal FileName As String, ByVal Mode As Long, ByVal TileWidth As Long, ByVal TileHeight As Long, ByVal Floor As Long, ByVal Ceiling As Long, ByVal ScaleFactor As Long, ByVal Highlight As Long, ByVal Invert As Boolean, ByVal Smooth As Boolean, ByVal AmbientBrightness As Long, ByVal AmbientColorModel As Long, ByVal AmbientColor1 As Long, ByVal AmbientColor2 As Long, ByVal AmbientColor3 As Long, ByVal AmbientColor4 As Long, ByVal DirectionalBrightness As Long, ByVal DirectionalColorModel As Long, ByVal DirectionalColor1 As Long, ByVal DirectionalColor2 As Long, ByVal DirectionalColor3 As Long, ByVal DirectionalColor4 As Long, ByVal Direction As Long, ByVal Declination As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Mode	Description of Mode goes here

TileWidth	Description of TileWidth goes here

TileHeight	Description of TileHeight goes here

Floor	Description of Floor goes here

Ceiling	Description of Ceiling goes here

ScaleFactor	Description of ScaleFactor goes here

Highlight	Description of Highlight goes here

Invert	Description of Invert goes here

Smooth	Description of Smooth goes here

AmbientBrightness	Description of AmbientBrightness goes here

AmbientColorModel	Description of AmbientColorModel goes here

AmbientColor1	Description of AmbientColor1 goes here

AmbientColor2	Description of AmbientColor2 goes here

AmbientColor3	Description of AmbientColor3 goes here

AmbientColor4	Description of AmbientColor4 goes here

DirectionalBrightness	Description of DirectionalBrightness goes here

DirectionalColorModel	Description of DirectionalColorModel goes here

DirectionalColor1	Description of DirectionalColor1 goes here

DirectionalColor2	Description of DirectionalColor2 goes here

DirectionalColor3	Description of DirectionalColor3 goes here

DirectionalColor4	Description of DirectionalColor4 goes here

Direction	Description of Direction goes here

Declination	Description of Declination goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCanvas

Sub EffectCanvas(ByVal FileName As String, ByVal Transparency As Long, ByVal Emboss As Long, ByVal X As Long, ByVal Y As Long, ByVal Mode As Long, ByVal Offset As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Transparency	Description of Transparency goes here

Emboss	Description of Emboss goes here

X	Description of X goes here

Y	Description of Y goes here

Mode	Description of Mode goes here

Offset	Description of Offset goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCharcoal

Sub EffectCharcoal(ByVal Size As Long, ByVal Edge As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Edge	Description of Edge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCobblestone

Sub EffectCobblestone(ByVal Roughness As Long, ByVal Size As Long, ByVal GroutWidth As Long, ByVal Direction As Long, ByVal Warp As Boolean)

CorelScript

Description

Parameters	Description

Roughness	Description of Roughness goes here

Size	Description of Size goes here

GroutWidth	Description of GroutWidth goes here

Direction	Description of Direction goes here

Warp	Description of Warp goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectConteCrayon

Sub EffectConteCrayon(ByVal ConteColor As Long, ByVal Pressure As Long, ByVal Texture As Long, ByVal Type As Long, ByVal Comp1 As Long, ByVal Comp2 As Long, ByVal Comp3 As Long, ByVal Comp4 As Long)

CorelScript

Description

Parameters	Description

ConteColor	Description of ConteColor goes here

Pressure	Description of Pressure goes here

Texture	Description of Texture goes here

Type	Description of Type goes here

Comp1	Description of Comp1 goes here

Comp2	Description of Comp2 goes here

Comp3	Description of Comp3 goes here

Comp4	Description of Comp4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCraft

Sub EffectCraft(ByVal Style As Long, ByVal Complete As Long, ByVal Brightness As Long, ByVal Size As Long, ByVal Rotation As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Complete	Description of Complete goes here

Brightness	Description of Brightness goes here

Size	Description of Size goes here

Rotation	Description of Rotation goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCrayon

Sub EffectCrayon(ByVal Size As Long, ByVal Outline As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Outline	Description of Outline goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCrystalize

Sub EffectCrystalize(ByVal Size As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCubist

Sub EffectCubist(ByVal Size As Long, ByVal Brightness As Long, ByVal Type As Long, ByVal Comp1 As Long, ByVal Comp2 As Long, ByVal Comp3 As Long, ByVal Comp4 As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Brightness	Description of Brightness goes here

Type	Description of Type goes here

Comp1	Description of Comp1 goes here

Comp2	Description of Comp2 goes here

Comp3	Description of Comp3 goes here

Comp4	Description of Comp4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectCylinder

Sub EffectCylinder(ByVal Mode As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDabble

Sub EffectDabble(ByVal Distribution As Long, ByVal Style As Long, ByVal Size As Long)

CorelScript

Description

Parameters	Description

Distribution	Description of Distribution goes here

Style	Description of Style goes here

Size	Description of Size goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDiffuse

Sub EffectDiffuse(ByVal Level As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDirectionalSharpen

Sub EffectDirectionalSharpen(ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDirectionalSmooth

Sub EffectDirectionalSmooth(ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDisplace

Sub EffectDisplace(ByVal FileName As String, ByVal Displacement As Long, ByVal Edges As Long, ByVal Horizontal As Long, ByVal Vertical As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Displacement	Description of Displacement goes here

Edges	Description of Edges goes here

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectDustScratch

Sub EffectDustScratch(ByVal Level As Long, ByVal Radius As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Radius	Description of Radius goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectEdgeDetect

Sub EffectEdgeDetect(ByVal Sensitivity As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Sensitivity	Description of Sensitivity goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectElephantSkin

Sub EffectElephantSkin(ByVal Age As Long, ByVal Variation As Long, ByVal Type As Long, ByVal Comp1 As Long, ByVal Comp2 As Long, ByVal Comp3 As Long, ByVal Comp4 As Long)

CorelScript

Description

Parameters	Description

Age	Description of Age goes here

Variation	Description of Variation goes here

Type	Description of Type goes here

Comp1	Description of Comp1 goes here

Comp2	Description of Comp2 goes here

Comp3	Description of Comp3 goes here

Comp4	Description of Comp4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectEmboss

Sub EffectEmboss(ByVal Depth As Long, ByVal Level As Long, ByVal Direction As Long, ByVal Color As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Depth	Description of Depth goes here

Level	Description of Level goes here

Direction	Description of Direction goes here

Color	Description of Color goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectEtching

Sub EffectEtching(ByVal Detail As Long, ByVal Depth As Long, ByVal Direction As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Detail	Description of Detail goes here

Depth	Description of Depth goes here

Direction	Description of Direction goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectFabric

Sub EffectFabric(ByVal Style As Long, ByVal Complete As Long, ByVal Brightness As Long, ByVal Size As Long, ByVal Rotation As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Complete	Description of Complete goes here

Brightness	Description of Brightness goes here

Size	Description of Size goes here

Rotation	Description of Rotation goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectFindEdges

Sub EffectFindEdges(ByVal Level As Long, ByVal EdgeType As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

EdgeType	Description of EdgeType goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectFrame

Sub EffectFrame()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectFrameSettings

Sub EffectFrameSettings(ByVal Number As Long, ByVal FileName As String, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal PosX As Double, ByVal PosY As Double, ByVal Opacity As Long, ByVal Fade As Long, ByVal Horizontal As Long, ByVal Vertical As Long, ByVal Angle As Long, ByVal HFlip As Long, ByVal VFlip As Long, ByVal BlendMode As Long, ByVal UseImage As Long, ByVal UsePath As Long)

CorelScript

Description

Parameters	Description

Number	Description of Number goes here

FileName	Description of FileName goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

PosX	Description of PosX goes here

PosY	Description of PosY goes here

Opacity	Description of Opacity goes here

Fade	Description of Fade goes here

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Angle	Description of Angle goes here

HFlip	Description of HFlip goes here

VFlip	Description of VFlip goes here

BlendMode	Description of BlendMode goes here

UseImage	Description of UseImage goes here

UsePath	Description of UsePath goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectGaussianBlur

Sub EffectGaussianBlur(ByVal Radius As Double)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectGlass

Sub EffectGlass(ByVal Angle As Long, ByVal BevelWidth As Long, ByVal Brightness As Long, ByVal Direction As Long, ByVal Dropoff As Long, ByVal Opacity As Long, ByVal Refraction As Long, ByVal Sharpness As Long, ByVal Smooth As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Angle	Description of Angle goes here

BevelWidth	Description of BevelWidth goes here

Brightness	Description of Brightness goes here

Direction	Description of Direction goes here

Dropoff	Description of Dropoff goes here

Opacity	Description of Opacity goes here

Refraction	Description of Refraction goes here

Sharpness	Description of Sharpness goes here

Smooth	Description of Smooth goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectGlassBlock

Sub EffectGlassBlock(ByVal Width As Long, ByVal Height As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectHalftone

Sub EffectHalftone(ByVal Radius As Long, ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Cyan	Description of Cyan goes here

Magenta	Description of Magenta goes here

Yellow	Description of Yellow goes here

Black	Description of Black goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectHighPass

Sub EffectHighPass(ByVal Radius As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectImpressionist

Sub EffectImpressionist(ByVal Style As Long, ByVal Detail As Long, ByVal Coloration As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Detail	Description of Detail goes here

Coloration	Description of Coloration goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectJaggyDespeckle

Sub EffectJaggyDespeckle(ByVal Width As Long, ByVal Height As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectKidsplay

Sub EffectKidsplay(ByVal Game As Long, ByVal Complete As Long, ByVal Brightness As Long, ByVal Size As Long, ByVal Rotation As Long)

CorelScript

Description

Parameters	Description

Game	Description of Game goes here

Complete	Description of Complete goes here

Brightness	Description of Brightness goes here

Size	Description of Size goes here

Rotation	Description of Rotation goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectLensFlare

Sub EffectLensFlare(ByVal X As Double, ByVal Y As Double, ByVal Brightness As Long, ByVal LensType As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Brightness	Description of Brightness goes here

LensType	Description of LensType goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectLighting

Sub EffectLighting(ByVal Sources As Long)

CorelScript

Description

Parameters	Description

Sources	Description of Sources goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectLightSource

Sub EffectLightSource(ByVal Index As Long, ByVal X As Double, ByVal Y As Double, ByVal Type As Long, ByVal Height As Long, ByVal Direction As Long, ByVal Elevation As Long, ByVal Intensity As Long, ByVal Aperture As Long, ByVal Focus As Long, ByVal Whiteness As Long, ByVal Exposure As Long, ByVal Channel As Long, ByVal Depth As Long, ByVal Contrast As Long, ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long, ByVal Switch As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

X	Description of X goes here

Y	Description of Y goes here

Type	Description of Type goes here

Height	Description of Height goes here

Direction	Description of Direction goes here

Elevation	Description of Elevation goes here

Intensity	Description of Intensity goes here

Aperture	Description of Aperture goes here

Focus	Description of Focus goes here

Whiteness	Description of Whiteness goes here

Exposure	Description of Exposure goes here

Channel	Description of Channel goes here

Depth	Description of Depth goes here

Contrast	Description of Contrast goes here

Red	Description of Red goes here

Green	Description of Green goes here

Blue	Description of Blue goes here

Switch	Description of Switch goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectLocalHistogram

Sub EffectLocalHistogram(ByVal Width As Long, ByVal Height As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectLowPass

Sub EffectLowPass(ByVal Radius As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMapToObject

Sub EffectMapToObject(ByVal Mode As Long, ByVal Percentage As Long, ByVal Quality As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Percentage	Description of Percentage goes here

Quality	Description of Quality goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMaximum

Sub EffectMaximum(ByVal Radius As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMedian

Sub EffectMedian(ByVal Radius As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMeshPoint

Sub EffectMeshPoint(ByVal Row As Long, ByVal Column As Long, ByVal X As Double, ByVal Y As Double)

CorelScript

Description

Parameters	Description

Row	Description of Row goes here

Column	Description of Column goes here

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMeshWarp

Sub EffectMeshWarp(ByVal Width As Long, ByVal Height As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMinimum

Sub EffectMinimum(ByVal Radius As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMosaic

Sub EffectMosaic(ByVal Size As Long, ByVal Vignette As Long, ByVal Type As Long, ByVal Comp1 As Long, ByVal Comp2 As Long, ByVal Comp3 As Long, ByVal Comp4 As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Vignette	Description of Vignette goes here

Type	Description of Type goes here

Comp1	Description of Comp1 goes here

Comp2	Description of Comp2 goes here

Comp3	Description of Comp3 goes here

Comp4	Description of Comp4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectMotionBlur

Sub EffectMotionBlur(ByVal Speed As Long, ByVal Direction As Long, ByVal Method As Long)

CorelScript

Description

Parameters	Description

Speed	Description of Speed goes here

Direction	Description of Direction goes here

Method	Description of Method goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectOffset

Sub EffectOffset(ByVal Horizontal As Long, ByVal Vertical As Long, ByVal Shift As Boolean, ByVal Edges As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Shift	Description of Shift goes here

Edges	Description of Edges goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPageCurl

Sub EffectPageCurl(ByVal Corner As Long, ByVal Direction As Boolean, ByVal Width As Long, ByVal Height As Long, ByVal Opaque As Boolean, ByVal CurlColorModel As Long, ByVal CurlColor1 As Long, ByVal CurlColor2 As Long, ByVal CurlColor3 As Long, ByVal CurlColor4 As Long, ByVal BackColorModel As Long, ByVal BackColor1 As Long, ByVal BackColor2 As Long, ByVal BackColor3 As Long, ByVal BackColor4 As Long)

CorelScript

Description

Parameters	Description

Corner	Description of Corner goes here

Direction	Description of Direction goes here

Width	Description of Width goes here

Height	Description of Height goes here

Opaque	Description of Opaque goes here

CurlColorModel	Description of CurlColorModel goes here

CurlColor1	Description of CurlColor1 goes here

CurlColor2	Description of CurlColor2 goes here

CurlColor3	Description of CurlColor3 goes here

CurlColor4	Description of CurlColor4 goes here

BackColorModel	Description of BackColorModel goes here

BackColor1	Description of BackColor1 goes here

BackColor2	Description of BackColor2 goes here

BackColor3	Description of BackColor3 goes here

BackColor4	Description of BackColor4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPaletteKnife

Sub EffectPaletteKnife(ByVal BladeSize As Long, ByVal SoftEdge As Long, ByVal Angle As Long)

CorelScript

Description

Parameters	Description

BladeSize	Description of BladeSize goes here

SoftEdge	Description of SoftEdge goes here

Angle	Description of Angle goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectParticle

Sub EffectParticle(ByVal Style As Long, ByVal Size As Long, ByVal Density As Long, ByVal Coloration As Long, ByVal Transparency As Long, ByVal Angle As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Size	Description of Size goes here

Density	Description of Density goes here

Coloration	Description of Coloration goes here

Transparency	Description of Transparency goes here

Angle	Description of Angle goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPastels

Sub EffectPastels(ByVal Type As Long, ByVal Size As Long, ByVal Hue As Long)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

Size	Description of Size goes here

Hue	Description of Hue goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPenInk

Sub EffectPenInk(ByVal Style As Long, ByVal Density As Long, ByVal Inkpool As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Density	Description of Density goes here

Inkpool	Description of Inkpool goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPerspective

Sub EffectPerspective(ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As Double, ByVal x3 As Double, ByVal y3 As Double, ByVal x4 As Double, ByVal y4 As Double, ByVal BestFit As Boolean)

CorelScript

Description

Parameters	Description

x1	Description of x1 goes here

y1	Description of y1 goes here

x2	Description of x2 goes here

y2	Description of y2 goes here

x3	Description of x3 goes here

y3	Description of y3 goes here

x4	Description of x4 goes here

y4	Description of y4 goes here

BestFit	Description of BestFit goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPinchPunch

Sub EffectPinchPunch(ByVal Level As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPixelate

Sub EffectPixelate(ByVal Width As Long, ByVal Height As Long, ByVal Opacity As Long, ByVal Mode As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Opacity	Description of Opacity goes here

Mode	Description of Mode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPlasterWall

Sub EffectPlasterWall(ByVal Detail As Long, ByVal Variation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Detail	Description of Detail goes here

Variation	Description of Variation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPlastic

Sub EffectPlastic(ByVal Highlight As Long, ByVal Depth As Long, ByVal Smoothness As Long, ByVal Direction As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Highlight	Description of Highlight goes here

Depth	Description of Depth goes here

Smoothness	Description of Smoothness goes here

Direction	Description of Direction goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPlugin

Sub EffectPlugin(ByVal GroupName As String, ByVal EffectName As String, ByVal MemoryType As Long, ByVal MemorySize As Long, ByVal Parameters As String)

CorelScript

Description

Parameters	Description

GroupName	Description of GroupName goes here

EffectName	Description of EffectName goes here

MemoryType	Description of MemoryType goes here

MemorySize	Description of MemorySize goes here

Parameters	Description of Parameters goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPointillist

Sub EffectPointillist(ByVal Size As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPsychedelic

Sub EffectPsychedelic(ByVal Level As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectPuzzle

Sub EffectPuzzle(ByVal Width As Long, ByVal Height As Long, ByVal Offset As Long, ByVal Fill As Long, ByVal RandSeed As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Offset	Description of Offset goes here

Fill	Description of Fill goes here

RandSeed	Description of RandSeed goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectRadialBlur

Sub EffectRadialBlur(ByVal Radius As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectReliefSculpture

Sub EffectReliefSculpture(ByVal Detail As Long, ByVal Depth As Long, ByVal Smoothness As Long, ByVal Direction As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Detail	Description of Detail goes here

Depth	Description of Depth goes here

Smoothness	Description of Smoothness goes here

Direction	Description of Direction goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectRemoveMoire

Sub EffectRemoveMoire(ByVal Level As Long, ByVal Mode As Long, ByVal FinalRes As Long, ByVal OriginalRes As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Mode	Description of Mode goes here

FinalRes	Description of FinalRes goes here

OriginalRes	Description of OriginalRes goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectRemoveNoise

Sub EffectRemoveNoise(ByVal Threshold As Long, ByVal Auto As Boolean)

CorelScript

Description

Parameters	Description

Threshold	Description of Threshold goes here

Auto	Description of Auto goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectRipple

Sub EffectRipple(ByVal Period As Long, ByVal Amplitude As Long, ByVal Angle As Long, ByVal Distort As Boolean, ByVal Mode As Long)

CorelScript

Description

Parameters	Description

Period	Description of Period goes here

Amplitude	Description of Amplitude goes here

Angle	Description of Angle goes here

Distort	Description of Distort goes here

Mode	Description of Mode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectScatter

Sub EffectScatter(ByVal Horizontal As Long, ByVal Vertical As Long)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectScraperboard

Sub EffectScraperboard(ByVal Style As Long, ByVal Density As Long, ByVal Size As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Density	Description of Density goes here

Size	Description of Size goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectScreenDoor

Sub EffectScreenDoor(ByVal Background As Long, ByVal MeshDensity As Long, ByVal Softness As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Background	Description of Background goes here

MeshDensity	Description of MeshDensity goes here

Softness	Description of Softness goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSharpen

Sub EffectSharpen(ByVal EdgeLevel As Long, ByVal Threshold As Long, ByVal Intensity As Boolean)

CorelScript

Description

Parameters	Description

EdgeLevel	Description of EdgeLevel goes here

Threshold	Description of Threshold goes here

Intensity	Description of Intensity goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectShear

Sub EffectShear(ByVal Scale As Long, ByVal Border As Long, ByVal Orientation As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Scale	Description of Scale goes here

Border	Description of Border goes here

Orientation	Description of Orientation goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectShearTable

Sub EffectShearTable(ByVal Number As Long, ByVal Value As Long)

CorelScript

Description

Parameters	Description

Number	Description of Number goes here

Value	Description of Value goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSketchPad

Sub EffectSketchPad(ByVal Type As Long, ByVal Style As Long, ByVal Outline As Long, ByVal Lead As Long)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

Style	Description of Style goes here

Outline	Description of Outline goes here

Lead	Description of Lead goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSmokedGlass

Sub EffectSmokedGlass(ByVal Tint As Long, ByVal Percent As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Tint	Description of Tint goes here

Percent	Description of Percent goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSmooth

Sub EffectSmooth(ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSoften

Sub EffectSoften(ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSolarize

Sub EffectSolarize(ByVal Level As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSphere

Sub EffectSphere(ByVal Percentage As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Percentage	Description of Percentage goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectStainedGlass

Sub EffectStainedGlass(ByVal Size As Long, ByVal Thickness As Long, ByVal Lighting As Boolean, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Thickness	Description of Thickness goes here

Lighting	Description of Lighting goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectStone

Sub EffectStone(ByVal Roughness As Long, ByVal Detail As Long, ByVal Invert As Boolean, ByVal Direction As Long)

CorelScript

Description

Parameters	Description

Roughness	Description of Roughness goes here

Detail	Description of Detail goes here

Invert	Description of Invert goes here

Direction	Description of Direction goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectSwirl

Sub EffectSwirl(ByVal Angle As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Angle	Description of Angle goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectTheBoss

Sub EffectTheBoss(ByVal Angle As Long, ByVal BevelWidth As Long, ByVal BevelHeight As Long, ByVal Brightness As Long, ByVal Direction As Long, ByVal Dropoff As Long, ByVal Sharpness As Long, ByVal Smooth As Long, ByVal Invert As Boolean)

CorelScript

Description

Parameters	Description

Angle	Description of Angle goes here

BevelWidth	Description of BevelWidth goes here

BevelHeight	Description of BevelHeight goes here

Brightness	Description of Brightness goes here

Direction	Description of Direction goes here

Dropoff	Description of Dropoff goes here

Sharpness	Description of Sharpness goes here

Smooth	Description of Smooth goes here

Invert	Description of Invert goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectTile

Sub EffectTile(ByVal Horizontal As Long, ByVal Vertical As Long)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectTool

Sub EffectTool(ByVal BrushID As Long, ByVal TypeID As Long, ByVal MergeMode As Long, ByVal Amount As Long, ByVal NibShape As Long, ByVal Size As Long, ByVal Transparency As Long, ByVal Rotate As Long, ByVal Flatten As Long, ByVal SoftEdge As Long)

CorelScript

Description

Parameters	Description

BrushID	Description of BrushID goes here

TypeID	Description of TypeID goes here

MergeMode	Description of MergeMode goes here

Amount	Description of Amount goes here

NibShape	Description of NibShape goes here

Size	Description of Size goes here

Transparency	Description of Transparency goes here

Rotate	Description of Rotate goes here

Flatten	Description of Flatten goes here

SoftEdge	Description of SoftEdge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectTraceContour

Sub EffectTraceContour(ByVal Level As Long, ByVal EdgeType As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

EdgeType	Description of EdgeType goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectUnderpainting

Sub EffectUnderpainting(ByVal Amount As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Amount	Description of Amount goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectUnsharpMask

Sub EffectUnsharpMask(ByVal Radius As Long, ByVal Percentage As Long, ByVal Threshold As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Percentage	Description of Percentage goes here

Threshold	Description of Threshold goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectUserDefined

Sub EffectUserDefined(ByVal Divisor As Long, ByVal Offset As Long, ByVal Intensity As Boolean)

CorelScript

Description

Parameters	Description

Divisor	Description of Divisor goes here

Offset	Description of Offset goes here

Intensity	Description of Intensity goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectUserDefinedPoint

Sub EffectUserDefinedPoint(ByVal Index As Long, ByVal Value As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

Value	Description of Value goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectVignette

Sub EffectVignette(ByVal Shape As Long, ByVal Offset As Long, ByVal Fade As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Shape	Description of Shape goes here

Offset	Description of Offset goes here

Fade	Description of Fade goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectVortex

Sub EffectVortex(ByVal Style As Long, ByVal Inner As Long, ByVal Outer As Long, ByVal Size As Long, ByVal XCenter As Long, ByVal YCenter As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

Inner	Description of Inner goes here

Outer	Description of Outer goes here

Size	Description of Size goes here

XCenter	Description of XCenter goes here

YCenter	Description of YCenter goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWatercolor

Sub EffectWatercolor(ByVal Size As Long, ByVal Bleed As Long, ByVal Granulation As Long, ByVal WaterAmount As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Bleed	Description of Bleed goes here

Granulation	Description of Granulation goes here

WaterAmount	Description of WaterAmount goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWaterMarker

Sub EffectWaterMarker(ByVal Mode As Long, ByVal Coloration As Long, ByVal Size As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Coloration	Description of Coloration goes here

Size	Description of Size goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWavePaper

Sub EffectWavePaper(ByVal Pressure As Long, ByVal ColorMode As Long)

CorelScript

Description

Parameters	Description

Pressure	Description of Pressure goes here

ColorMode	Description of ColorMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWeather

Sub EffectWeather(ByVal Forecast As Long, ByVal Strength As Long, ByVal Size As Long, ByVal Variation As Long, ByVal Direction As Long)

CorelScript

Description

Parameters	Description

Forecast	Description of Forecast goes here

Strength	Description of Strength goes here

Size	Description of Size goes here

Variation	Description of Variation goes here

Direction	Description of Direction goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWetPaint

Sub EffectWetPaint(ByVal Wetness As Long, ByVal Percentage As Long)

CorelScript

Description

Parameters	Description

Wetness	Description of Wetness goes here

Percentage	Description of Percentage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWhirlpool

Sub EffectWhirlpool(ByVal Spacing As Long, ByVal Smear As Long, ByVal Twist As Long, ByVal Streak As Long, ByVal Warp As Boolean)

CorelScript

Description

Parameters	Description

Spacing	Description of Spacing goes here

Smear	Description of Smear goes here

Twist	Description of Twist goes here

Streak	Description of Streak goes here

Warp	Description of Warp goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectWind

Sub EffectWind(ByVal Strength As Long, ByVal Opacity As Long, ByVal Direction As Long)

CorelScript

Description

Parameters	Description

Strength	Description of Strength goes here

Opacity	Description of Opacity goes here

Direction	Description of Direction goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectZigZag

Sub EffectZigZag(ByVal Waves As Long, ByVal Strength As Long, ByVal Damping As Long, ByVal Type As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Waves	Description of Waves goes here

Strength	Description of Strength goes here

Damping	Description of Damping goes here

Type	Description of Type goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EffectZoom

Sub EffectZoom(ByVal Radius As Long, ByVal CenterX As Long, ByVal CenterY As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Ellipse

Sub Ellipse(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EllipseTool

Sub EllipseTool(ByVal Width As Long, ByVal Transparency As Long, ByVal MergeMode As Long, ByVal AntiAlias As Boolean, ByVal RenderObject As Boolean, ByVal Fill As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Transparency	Description of Transparency goes here

MergeMode	Description of MergeMode goes here

AntiAlias	Description of AntiAlias goes here

RenderObject	Description of RenderObject goes here

Fill	Description of Fill goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndAdjustEffect

Sub EndAdjustEffect()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndColorEffect

Sub EndColorEffect()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndColorMask

Sub EndColorMask()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndColorReplace

Sub EndColorReplace()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndColorTable

Sub EndColorTable()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndConvertDuotone

Sub EndConvertDuotone()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndConvertPaletted

Sub EndConvertPaletted()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndDraw

Sub EndDraw()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEditFill

Sub EndEditFill()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEffectFrame

Sub EndEffectFrame()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEffectLighting

Sub EndEffectLighting()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEffectMeshWarp

Sub EndEffectMeshWarp()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEffectShear

Sub EndEffectShear()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndEffectUserDefined

Sub EndEffectUserDefined()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndGuideline

Sub EndGuideline()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndImageEqualize

Sub EndImageEqualize()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndImageSTBalance

Sub EndImageSTBalance()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndImageToneCurve

Sub EndImageToneCurve()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndMaskCreate

Sub EndMaskCreate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndMovieFrameRate

Sub EndMovieFrameRate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndObject

Sub EndObject()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndObjectColorTransparencyTool

Sub EndObjectColorTransparencyTool()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.EndObjectTagWWWURL

Sub EndObjectTagWWWURL()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Eraser

Sub Eraser(ByVal Width As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal NibShape As Long, ByVal Transparency As Long, ByVal SoftEdge As Long, ByVal AntiAlias As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

NibShape	Description of NibShape goes here

Transparency	Description of Transparency goes here

SoftEdge	Description of SoftEdge goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FadeLastCommand

Sub FadeLastCommand(ByVal Percent As Long, ByVal MergeMode As Long)

CorelScript

Description

Parameters	Description

Percent	Description of Percent goes here

MergeMode	Description of MergeMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileClose

Sub FileClose()

CorelScript

Description

This command closes the active image.

Example

.FileClose

 Related Topics


CorelScript.FileExit

Sub FileExit(ByVal PromptUser As Boolean)

CorelScript

Description

Parameters	Description

PromptUser	Description of PromptUser goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileImport

Sub FileImport(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long, ByVal X As Long, ByVal Y As Long, ByVal BoxLeft As Long, ByVal BoxTop As Long, ByVal BoxRight As Long, ByVal BoxBottom As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

LoadType	Description of LoadType goes here

X	Description of X goes here

Y	Description of Y goes here

BoxLeft	Description of BoxLeft goes here

BoxTop	Description of BoxTop goes here

BoxRight	Description of BoxRight goes here

BoxBottom	Description of BoxBottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileNew

Sub FileNew(ByVal Width As Long, ByVal Height As Long, ByVal Type As Long, ByVal HRes As Long, ByVal VRes As Long, ByVal PartialFile As Boolean, ByVal MovieFile As Boolean, ByVal NumberFrames As Long, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal Background As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Type	Description of Type goes here

HRes	Description of HRes goes here

VRes	Description of VRes goes here

PartialFile	Description of PartialFile goes here

MovieFile	Description of MovieFile goes here

NumberFrames	Description of NumberFrames goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Background	Description of Background goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileOpen

Sub FileOpen(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long, ByVal StartFrame As Long, ByVal EndFrame As Long)

CorelScript

Description

This command opens an existing file and loads it into the main Image window.

Parameters	Description

FileName	Lets you specify the path and name of the file to be opened.

Left	Lets you specify the X-coordinate of the upper-left corner of the image's bounding box in pixels, relative to the origin.

Top	Lets you specify the Y-coordinate of the upper-left corner of the image's bounding box in pixels, relative to the origin.

Right	Lets you specify the X-coordinate of the lower-right corner of the image's bounding box in pixels, relative to the origin.

Bottom	Lets you specify the Y-coordinate of the lower-right corner of the image's bounding box in pixels, relative to the origin.

LoadType	Indicates the image load type of the file:
0 = All (coordinates are not used)
1 = Partial
2 = Resample
4 = Crop

StartFrame	Lets you specify the starting index of the frame range to load from a movie file.

EndFrame	Lets you specify the ending index of the frame range to load from a movie file.

Example

.FileOpen "TEST.1.CPT", 0, 0, 0, 0, 0, 1, 1

 Related Topics


CorelScript.FilePrint

Sub FilePrint()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileRevert

Sub FileRevert()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileSave

Sub FileSave(ByVal FileName As String, ByVal FilterID As Long, ByVal Compression As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

FilterID	Description of FilterID goes here

Compression	Description of Compression goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FileSelectPartialArea

Sub FileSelectPartialArea(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Fill

Sub Fill(ByVal Left As Long, ByVal Top As Long, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillBitmap

Sub FillBitmap(ByVal BitmapName As String, ByVal Width As Long, ByVal Height As Long, ByVal Xoffset As Long, ByVal Yoffset As Long, ByVal TileColumn As Boolean, ByVal TileOffset As Long, ByVal MaintainAspect As Boolean, ByVal Scale As Boolean, ByVal OriginalSize As Boolean, ByVal SkewAngle As Long, ByVal RotateAngle As Long)

CorelScript

Description

Parameters	Description

BitmapName	Description of BitmapName goes here

Width	Description of Width goes here

Height	Description of Height goes here

Xoffset	Description of Xoffset goes here

Yoffset	Description of Yoffset goes here

TileColumn	Description of TileColumn goes here

TileOffset	Description of TileOffset goes here

MaintainAspect	Description of MaintainAspect goes here

Scale	Description of Scale goes here

OriginalSize	Description of OriginalSize goes here

SkewAngle	Description of SkewAngle goes here

RotateAngle	Description of RotateAngle goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillFountain

Sub FillFountain()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillFountainApply

Sub FillFountainApply(ByVal Type As Long, ByVal Colors As Long, ByVal Steps As Long, ByVal Angle As Long, ByVal EdgePad As Long, ByVal HorizontalOffset As Long, ByVal VerticalOffset As Long, ByVal Midpoint As Long)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

Colors	Description of Colors goes here

Steps	Description of Steps goes here

Angle	Description of Angle goes here

EdgePad	Description of EdgePad goes here

HorizontalOffset	Description of HorizontalOffset goes here

VerticalOffset	Description of VerticalOffset goes here

Midpoint	Description of Midpoint goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillFountainColor

Sub FillFountainColor(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal Position As Long, ByVal Index As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Position	Description of Position goes here

Index	Description of Index goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillSolid

Sub FillSolid(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillTexture

Sub FillTexture(ByVal LibraryName As String, ByVal TextureName As String, ByVal StyleName As String)

CorelScript

Description

Parameters	Description

LibraryName	Description of LibraryName goes here

TextureName	Description of TextureName goes here

StyleName	Description of StyleName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillTextureSettings

Sub FillTextureSettings(ByVal Index As Long, ByVal Value1 As Long, ByVal Value2 As Long, ByVal Value3 As Long, ByVal Value4 As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

Value1	Description of Value1 goes here

Value2	Description of Value2 goes here

Value3	Description of Value3 goes here

Value4	Description of Value4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FillTool

Sub FillTool(ByVal Transparency As Long, ByVal MergeMode As Long)

CorelScript

Description

Parameters	Description

Transparency	Description of Transparency goes here

MergeMode	Description of MergeMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterAVI

Sub FilterAVI(ByVal Handler As Long, ByVal KeyFrame As Long, ByVal Quality As Long, ByVal BPS As Long, ByVal Flags As Long, ByVal Interleave As Long)

CorelScript

Description

Parameters	Description

Handler	Description of Handler goes here

KeyFrame	Description of KeyFrame goes here

Quality	Description of Quality goes here

BPS	Description of BPS goes here

Flags	Description of Flags goes here

Interleave	Description of Interleave goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterFPX

Sub FilterFPX(ByVal Compression As Long, ByVal Decimation As Long, ByVal Quality As Long)

CorelScript

Description

Parameters	Description

Compression	Description of Compression goes here

Decimation	Description of Decimation goes here

Quality	Description of Quality goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterGIF

Sub FilterGIF(ByVal InvertMask As Long, ByVal Interlace As Long, ByVal Transparent As Long, ByVal Index As Long, ByVal Delay As Long, ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long)

CorelScript

Description

Parameters	Description

InvertMask	Description of InvertMask goes here

Interlace	Description of Interlace goes here

Transparent	Description of Transparent goes here

Index	Description of Index goes here

Delay	Description of Delay goes here

Red	Description of Red goes here

Green	Description of Green goes here

Blue	Description of Blue goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterICO

Sub FilterICO(ByVal Transparent As Long, ByVal Inverse As Long)

CorelScript

Description

Parameters	Description

Transparent	Description of Transparent goes here

Inverse	Description of Inverse goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterJPG

Sub FilterJPG(ByVal Quality As Long, ByVal Progressive As Long, ByVal Smoothing As Long, ByVal SubFormat As Long, ByVal Optimized As Long)

CorelScript

Description

Parameters	Description

Quality	Description of Quality goes here

Progressive	Description of Progressive goes here

Smoothing	Description of Smoothing goes here

SubFormat	Description of SubFormat goes here

Optimized	Description of Optimized goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterMPG

Sub FilterMPG(ByVal Emphasis As Long, ByVal Quality As Long, ByVal Audio As Boolean, ByVal Video As Boolean, ByVal System As Boolean)

CorelScript

Description

Parameters	Description

Emphasis	Description of Emphasis goes here

Quality	Description of Quality goes here

Audio	Description of Audio goes here

Video	Description of Video goes here

System	Description of System goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterOS2

Sub FilterOS2(ByVal Format As Long)

CorelScript

Description

Parameters	Description

Format	Description of Format goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterPCD

Sub FilterPCD(ByVal Resolution As Long, ByVal Color As Long)

CorelScript

Description

Parameters	Description

Resolution	Description of Resolution goes here

Color	Description of Color goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterPNG

Sub FilterPNG(ByVal Interlace As Long)

CorelScript

Description

Parameters	Description

Interlace	Description of Interlace goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterRAW

Sub FilterRAW(ByVal Format As Long, ByVal Type As Long, ByVal Width As Long, ByVal Height As Long, ByVal BitCount As Long, ByVal Header As Long, ByVal Mask As Long, ByVal PaletteType As Long, ByVal Location As Long, ByVal Entries As Long)

CorelScript

Description

Parameters	Description

Format	Description of Format goes here

Type	Description of Type goes here

Width	Description of Width goes here

Height	Description of Height goes here

BitCount	Description of BitCount goes here

Header	Description of Header goes here

Mask	Description of Mask goes here

PaletteType	Description of PaletteType goes here

Location	Description of Location goes here

Entries	Description of Entries goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterTGA

Sub FilterTGA(ByVal Format As Long)

CorelScript

Description

Parameters	Description

Format	Description of Format goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.FilterWVL

Sub FilterWVL(ByVal Quality As Long, ByVal Speed As Long, ByVal Path As Long, ByVal Contrast As Long, ByVal Edge As Long)

CorelScript

Description

Parameters	Description

Quality	Description of Quality goes here

Speed	Description of Speed goes here

Path	Description of Path goes here

Contrast	Description of Contrast goes here

Edge	Description of Edge goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetChannelCount

Function GetChannelCount() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetChannelName

Function GetChannelName(ByVal ChannelID As Long) As String

CorelScript

Description

Parameters	Description

ChannelID	Description of ChannelID goes here

Return value

Returns String

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetCurrentMovieFrame

Function GetCurrentMovieFrame() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentCount

Function GetDocumentCount() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentHeight

Function GetDocumentHeight() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentHRes

Function GetDocumentHRes() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentIsMovie

Function GetDocumentIsMovie() As Boolean

CorelScript

Description

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentIsPartial

Function GetDocumentIsPartial() As Boolean

CorelScript

Description

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentModified

Function GetDocumentModified() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentName

Function GetDocumentName() As String

CorelScript

Description

Return value

Returns String

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentType

Function GetDocumentType() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentVRes

Function GetDocumentVRes() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentWidth

Function GetDocumentWidth() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentXdpi

Function GetDocumentXdpi() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentXGridFrequency

Function GetDocumentXGridFrequency() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentXRulerUnits

Function GetDocumentXRulerUnits() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentYdpi

Function GetDocumentYdpi() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentYGridFrequency

Function GetDocumentYGridFrequency() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetDocumentYRulerUnits

Function GetDocumentYRulerUnits() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetFillColor

Function GetFillColor(ByRef ColorModel As Long, ByRef Color1 As Long, ByRef Color2 As Long, ByRef Color3 As Long, ByRef Color4 As Long) As Boolean

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetFrameCount

Function GetFrameCount() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetGuidelineCount

Function GetGuidelineCount() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetGuidelineProperties

Sub GetGuidelineProperties(ByVal Index As Long, ByRef X As Long, ByRef Y As Long, ByRef Angle As Long, ByRef Horizontal As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

X	Description of X goes here

Y	Description of Y goes here

Angle	Description of Angle goes here

Horizontal	Description of Horizontal goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetMaskPresent

Function GetMaskPresent() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetMaskRectangle

Sub GetMaskRectangle(ByRef Left As Long, ByRef Top As Long, ByRef Right As Long, ByRef Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectCount

Function GetObjectCount() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectIsEditable

Function GetObjectIsEditable(ByVal ObjectID As Long) As Boolean

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectIsSelected

Function GetObjectIsSelected(ByVal ObjectID As Long) As Boolean

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectIsVisible

Function GetObjectIsVisible(ByVal ObjectID As Long) As Boolean

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectMergeMode

Function GetObjectMergeMode(ByVal ObjectID As Long) As Long

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectName

Function GetObjectName(ByVal ObjectID As Long) As String

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns String

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectOpacity

Function GetObjectOpacity(ByVal ObjectID As Long) As Long

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectProperties

Sub GetObjectProperties(ByVal ObjectID As Long, ByVal Name As String, ByRef Opacity As Long, ByRef MergeMode As Long, ByRef Visible As Boolean, ByRef Clipped As Boolean, ByRef Enabled As Boolean, ByRef Linked As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Name	Description of Name goes here

Opacity	Description of Opacity goes here

MergeMode	Description of MergeMode goes here

Visible	Description of Visible goes here

Clipped	Description of Clipped goes here

Enabled	Description of Enabled goes here

Linked	Description of Linked goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetObjectRectangle

Sub GetObjectRectangle(ByVal ObjectID As Long, ByRef Left As Long, ByRef Top As Long, ByRef Right As Long, ByRef Bottom As Long)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPaintColor

Sub GetPaintColor(ByRef ColorModel As Long, ByRef Color1 As Long, ByRef Color2 As Long, ByRef Color3 As Long, ByRef Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPaintVersion

Function GetPaintVersion() As String

CorelScript

Description

Return value

Returns String

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPaperColor

Sub GetPaperColor(ByRef ColorModel As Long, ByRef Color1 As Long, ByRef Color2 As Long, ByRef Color3 As Long, ByRef Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPartialDocumentHeight

Function GetPartialDocumentHeight() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPartialDocumentWidth

Function GetPartialDocumentWidth() As Long

CorelScript

Description

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPhotoPaintDir

Function GetPhotoPaintDir() As String

CorelScript

Description

Return value

Returns String

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetPixelColor

Function GetPixelColor(ByVal X As Long, ByVal Y As Long, ByRef ColorModel As Long, ByRef Color1 As Long, ByRef Color2 As Long, ByRef Color3 As Long, ByRef Color4 As Long) As Boolean

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GetSelectedObjectsRectangle

Sub GetSelectedObjectsRectangle(ByRef Left As Long, ByRef Top As Long, ByRef Right As Long, ByRef Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Gradient

Sub Gradient(ByVal Type As Long, ByVal MarkerPos As Long)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

MarkerPos	Description of MarkerPos goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GradientPoint

Sub GradientPoint(ByVal Index As Long, ByVal PtX As Long, ByVal PtY As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal Transparency As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

PtX	Description of PtX goes here

PtY	Description of PtY goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Transparency	Description of Transparency goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GradientTool

Sub GradientTool(ByVal Style As Long, ByVal MergeMode As Long, ByVal Transparency As Long, ByVal Handles As Long)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

MergeMode	Description of MergeMode goes here

Transparency	Description of Transparency goes here

Handles	Description of Handles goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GridSetup

Sub GridSetup(ByVal GridX As Double, ByVal GridY As Double, ByVal Units As Long, ByVal GridOn As Boolean)

CorelScript

Description

Parameters	Description

GridX	Description of GridX goes here

GridY	Description of GridY goes here

Units	Description of Units goes here

GridOn	Description of GridOn goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GuidelineAdd

Sub GuidelineAdd(ByVal X As Long, ByVal Y As Long, ByVal Angle As Long, ByVal Horizontal As Boolean)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Angle	Description of Angle goes here

Horizontal	Description of Horizontal goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GuidelineDelete

Sub GuidelineDelete()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GuidelineMove

Sub GuidelineMove(ByVal X As Long, ByVal Y As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.GuidelineSelect

Sub GuidelineSelect(ByVal GuideID As Long, ByVal Selected As Boolean)

CorelScript

Description

Parameters	Description

GuideID	Description of GuideID goes here

Selected	Description of Selected goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageApplyICCProfile

Sub ImageApplyICCProfile(ByVal FileName As String)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageAutoEqualize

Sub ImageAutoEqualize(ByVal AutoBlack As Long, ByVal AutoWhite As Long)

CorelScript

Description

Parameters	Description

AutoBlack	Description of AutoBlack goes here

AutoWhite	Description of AutoWhite goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageBCI

Sub ImageBCI(ByVal Brightness As Long, ByVal Contrast As Long, ByVal Intensity As Long)

CorelScript

Description

Parameters	Description

Brightness	Description of Brightness goes here

Contrast	Description of Contrast goes here

Intensity	Description of Intensity goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageColorBalance

Sub ImageColorBalance(ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long, ByVal Shadows As Boolean, ByVal Midtones As Boolean, ByVal Highlights As Boolean, ByVal Luminance As Boolean)

CorelScript

Description

Parameters	Description

Red	Description of Red goes here

Green	Description of Green goes here

Blue	Description of Blue goes here

Shadows	Description of Shadows goes here

Midtones	Description of Midtones goes here

Highlights	Description of Highlights goes here

Luminance	Description of Luminance goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageColorCrop

Sub ImageColorCrop(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageColorHue

Sub ImageColorHue(ByVal Red As Long, ByVal Green As Long, ByVal Blue As Long, ByVal Shadows As Boolean, ByVal Midtones As Boolean, ByVal Highlights As Boolean, ByVal Luminance As Boolean)

CorelScript

Description

Parameters	Description

Red	Description of Red goes here

Green	Description of Green goes here

Blue	Description of Blue goes here

Shadows	Description of Shadows goes here

Midtones	Description of Midtones goes here

Highlights	Description of Highlights goes here

Luminance	Description of Luminance goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageColorTable

Sub ImageColorTable(ByVal Colors As Long)

CorelScript

Description

Parameters	Description

Colors	Description of Colors goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageColorTone

Sub ImageColorTone(ByVal Hue As Long, ByVal Saturation As Long, ByVal Lightness As Long, ByVal Brightness As Long, ByVal Contrast As Long, ByVal Intensity As Long)

CorelScript

Description

Parameters	Description

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Lightness	Description of Lightness goes here

Brightness	Description of Brightness goes here

Contrast	Description of Contrast goes here

Intensity	Description of Intensity goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageConvert

Sub ImageConvert(ByVal Type As Long, ByVal RenderType As Long, ByVal PaletteType As Long, ByVal Threshold As Integer, ByVal HalftoneType As Long, ByVal Angle As Long, ByVal Width As Long, ByVal Colors As Long, ByVal Intensity As Long, ByVal Flatten As Boolean)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

RenderType	Description of RenderType goes here

PaletteType	Description of PaletteType goes here

Threshold	Description of Threshold goes here

HalftoneType	Description of HalftoneType goes here

Angle	Description of Angle goes here

Width	Description of Width goes here

Colors	Description of Colors goes here

Intensity	Description of Intensity goes here

Flatten	Description of Flatten goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageConvertDuotone

Sub ImageConvertDuotone(ByVal Style As Long, ByVal UseOverprints As Boolean, ByVal Flatten As Boolean)

CorelScript

Description

Parameters	Description

Style	Description of Style goes here

UseOverprints	Description of UseOverprints goes here

Flatten	Description of Flatten goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageConvertPaletted

Sub ImageConvertPaletted(ByVal RenderType As Long, ByVal Colors As Long, ByVal Intensity As Long, ByVal Flatten As Boolean)

CorelScript

Description

Parameters	Description

RenderType	Description of RenderType goes here

Colors	Description of Colors goes here

Intensity	Description of Intensity goes here

Flatten	Description of Flatten goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageConvertVideoNTSC

Sub ImageConvertVideoNTSC()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageConvertVideoPAL

Sub ImageConvertVideoPAL()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageCrop

Sub ImageCrop(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageCropToMask

Sub ImageCropToMask()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageDeInterlace

Sub ImageDeInterlace(ByVal ReplaceMode As Long)

CorelScript

Description

Parameters	Description

ReplaceMode	Description of ReplaceMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageDesaturate

Sub ImageDesaturate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageDeskew

Sub ImageDeskew(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageDeskewCrop

Sub ImageDeskewCrop(ByVal Angle As Double, ByVal Width As Long, ByVal Height As Long, ByVal PointX As Long, ByVal PointY As Long)

CorelScript

Description

Parameters	Description

Angle	Description of Angle goes here

Width	Description of Width goes here

Height	Description of Height goes here

PointX	Description of PointX goes here

PointY	Description of PointY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageDuplicate

Sub ImageDuplicate(ByVal FileName As String, ByVal MergeObjects As Boolean)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

MergeObjects	Description of MergeObjects goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageEqualize

Sub ImageEqualize(ByVal Method As Long, ByVal AutoBlack As Long, ByVal AutoWhite As Long, ByVal AutoAdjust As Boolean)

CorelScript

Description

Parameters	Description

Method	Description of Method goes here

AutoBlack	Description of AutoBlack goes here

AutoWhite	Description of AutoWhite goes here

AutoAdjust	Description of AutoAdjust goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageEqualizeChannel

Sub ImageEqualizeChannel(ByVal Index As Long, ByVal InLow As Long, ByVal InHigh As Long, ByVal OutLow As Long, ByVal OutHigh As Long, ByVal Gamma As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

InLow	Description of InLow goes here

InHigh	Description of InHigh goes here

OutLow	Description of OutLow goes here

OutHigh	Description of OutHigh goes here

Gamma	Description of Gamma goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageFlipHorizontal

Sub ImageFlipHorizontal()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageFlipVertical

Sub ImageFlipVertical()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageGamma

Sub ImageGamma(ByVal Value As Long)

CorelScript

Description

Parameters	Description

Value	Description of Value goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageHSL

Sub ImageHSL(ByVal Hue As Long, ByVal Saturation As Long, ByVal Lightness As Long)

CorelScript

Description

Parameters	Description

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Lightness	Description of Lightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageHSLChannel

Sub ImageHSLChannel(ByVal Channel As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Lightness As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Lightness	Description of Lightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageInvert

Sub ImageInvert()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageLevelThreshold

Sub ImageLevelThreshold(ByVal Channel As Long, ByVal Low As Long, ByVal Threshold As Long, ByVal High As Long, ByVal BiLevel As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Low	Description of Low goes here

Threshold	Description of Threshold goes here

High	Description of High goes here

BiLevel	Description of BiLevel goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImagePapersize

Sub ImagePapersize(ByVal Width As Long, ByVal Height As Long, ByVal Xoffset As Long, ByVal Yoffset As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Xoffset	Description of Xoffset goes here

Yoffset	Description of Yoffset goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImagePosterize

Sub ImagePosterize(ByVal Level As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageReplaceColors

Sub ImageReplaceColors(ByVal TypeIn As Long, ByVal Comp1In As Long, ByVal Comp2In As Long, ByVal Comp3In As Long, ByVal Comp4In As Long, ByVal TypeOut As Long, ByVal Comp1Out As Long, ByVal Comp2Out As Long, ByVal Comp3Out As Long, ByVal Comp4Out As Long, ByVal Range As Long, ByVal IgnoreGrayscale As Boolean, ByVal SingleColor As Boolean)

CorelScript

Description

Parameters	Description

TypeIn	Description of TypeIn goes here

Comp1In	Description of Comp1In goes here

Comp2In	Description of Comp2In goes here

Comp3In	Description of Comp3In goes here

Comp4In	Description of Comp4In goes here

TypeOut	Description of TypeOut goes here

Comp1Out	Description of Comp1Out goes here

Comp2Out	Description of Comp2Out goes here

Comp3Out	Description of Comp3Out goes here

Comp4Out	Description of Comp4Out goes here

Range	Description of Range goes here

IgnoreGrayscale	Description of IgnoreGrayscale goes here

SingleColor	Description of SingleColor goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageResample

Sub ImageResample(ByVal Width As Long, ByVal Height As Long, ByVal HRes As Long, ByVal VRes As Long, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

HRes	Description of HRes goes here

VRes	Description of VRes goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageRotate

Sub ImageRotate(ByVal Angle As Double, ByVal Clip As Boolean, ByVal AntiAlias As Boolean, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Angle	Description of Angle goes here

Clip	Description of Clip goes here

AntiAlias	Description of AntiAlias goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSelectiveColor

Sub ImageSelectiveColor(ByVal Mode As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSelectiveColorChannel

Sub ImageSelectiveColorChannel(ByVal Channel As Long, ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Cyan	Description of Cyan goes here

Magenta	Description of Magenta goes here

Yellow	Description of Yellow goes here

Black	Description of Black goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSetChannel

Sub ImageSetChannel(ByVal Channel As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSplit

Sub ImageSplit(ByVal Type As Long)

CorelScript

Description

Parameters	Description

Type	Description of Type goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSprayerList

Sub ImageSprayerList(ByVal List As String)

CorelScript

Description

Parameters	Description

List	Description of List goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSprayerSettings

Sub ImageSprayerSettings(ByVal Dabs As Long, ByVal Spacing As Long, ByVal Spread As Long, ByVal FadeOut As Long, ByVal Type As Long, ByVal From As Long, ByVal To As Long, ByVal Start As Long)

CorelScript

Description

Parameters	Description

Dabs	Description of Dabs goes here

Spacing	Description of Spacing goes here

Spread	Description of Spread goes here

FadeOut	Description of FadeOut goes here

Type	Description of Type goes here

From	Description of From goes here

To	Description of To goes here

Start	Description of Start goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSprayerTool

Sub ImageSprayerTool(ByVal FileName As String, ByVal Row As Long, ByVal Column As Long, ByVal Size As Long, ByVal MergeMode As Long, ByVal Transparency As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Row	Description of Row goes here

Column	Description of Column goes here

Size	Description of Size goes here

MergeMode	Description of MergeMode goes here

Transparency	Description of Transparency goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSTBalance

Sub ImageSTBalance(ByVal Channel As Long, ByVal UseLow As Boolean, ByVal UseMid As Boolean, ByVal UseHigh As Boolean, ByVal UseAll As Boolean)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

UseLow	Description of UseLow goes here

UseMid	Description of UseMid goes here

UseHigh	Description of UseHigh goes here

UseAll	Description of UseAll goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageSTColor

Sub ImageSTColor(ByVal Index As Long, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Index	Description of Index goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageToneChannel

Sub ImageToneChannel(ByVal Channel As Long, ByVal Nodes As Long, ByVal Gamma As Long, ByVal Length As Long, ByVal DrawMode As Long, ByVal Orientation As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Nodes	Description of Nodes goes here

Gamma	Description of Gamma goes here

Length	Description of Length goes here

DrawMode	Description of DrawMode goes here

Orientation	Description of Orientation goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageToneCurve

Sub ImageToneCurve()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageTonePoint

Sub ImageTonePoint(ByVal Channel As Long, ByVal Index As Long, ByVal X As Long, ByVal Y As Long)

CorelScript

Description

Parameters	Description

Channel	Description of Channel goes here

Index	Description of Index goes here

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ImageToneTable

Sub ImageToneTable(ByVal Number As Long, ByVal Curve1 As Long, ByVal Curve2 As Long, ByVal Curve3 As Long, ByVal Curve4 As Long)

CorelScript

Description

Parameters	Description

Number	Description of Number goes here

Curve1	Description of Curve1 goes here

Curve2	Description of Curve2 goes here

Curve3	Description of Curve3 goes here

Curve4	Description of Curve4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISAddLine

Sub ISAddLine(ByVal nPtStart As Long, ByVal nPtEnd As Long, ByVal nPtPos As Long, ByVal bVertical As Boolean)

CorelScript

Description

Parameters	Description

nPtStart	Description of nPtStart goes here

nPtEnd	Description of nPtEnd goes here

nPtPos	Description of nPtPos goes here

bVertical	Description of bVertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISAssign

Sub ISAssign(ByVal Name As String, ByVal bName As Boolean, ByVal Url As String, ByVal bUrl As Boolean, ByVal Alt As String, ByVal bAlt As Boolean, ByVal Target As String, ByVal bTarget As Boolean, ByVal Format As String, ByVal bFormat As Boolean)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

bName	Description of bName goes here

Url	Description of Url goes here

bUrl	Description of bUrl goes here

Alt	Description of Alt goes here

bAlt	Description of bAlt goes here

Target	Description of Target goes here

bTarget	Description of bTarget goes here

Format	Description of Format goes here

bFormat	Description of bFormat goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISAutoSlice

Sub ISAutoSlice()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISClearAll

Sub ISClearAll()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISDelLine

Sub ISDelLine(ByVal nPtx As Long, ByVal nPty As Long, ByVal bVertical As Boolean)

CorelScript

Description

Parameters	Description

nPtx	Description of nPtx goes here

nPty	Description of nPty goes here

bVertical	Description of bVertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISEqual

Sub ISEqual(ByVal nCols As Long, ByVal nRows As Long)

CorelScript

Description

Parameters	Description

nCols	Description of nCols goes here

nRows	Description of nRows goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISExport

Sub ISExport(ByVal FileName As String)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISImport

Sub ISImport(ByVal FileName As String)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISMoveLine

Sub ISMoveLine(ByVal nPtSrcX As Long, ByVal nPtSrcY As Long, ByVal nPtDst As Long, ByVal bVertical As Boolean)

CorelScript

Description

Parameters	Description

nPtSrcX	Description of nPtSrcX goes here

nPtSrcY	Description of nPtSrcY goes here

nPtDst	Description of nPtDst goes here

bVertical	Description of bVertical goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ISSelect

Sub ISSelect(ByVal nPtx As Long, ByVal nPty As Long, ByVal bRenew As Boolean)

CorelScript

Description

Parameters	Description

nPtx	Description of nPtx goes here

nPty	Description of nPty goes here

bRenew	Description of bRenew goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.LensCreateFromMask

Sub LensCreateFromMask(ByVal Name As String)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.LensEdit

Sub LensEdit(ByVal ObjectID As Long, ByVal Name As String)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.LensNew

Sub LensNew(ByVal Name As String)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.LineTool

Sub LineTool(ByVal Width As Long, ByVal Transparency As Long, ByVal Joints As Long, ByVal MergeMode As Long, ByVal AntiAlias As Boolean, ByVal RenderObject As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Transparency	Description of Transparency goes here

Joints	Description of Joints goes here

MergeMode	Description of MergeMode goes here

AntiAlias	Description of AntiAlias goes here

RenderObject	Description of RenderObject goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.LocalUndo

Sub LocalUndo(ByVal Width As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal NibShape As Long, ByVal Transparency As Long, ByVal SoftEdge As Long, ByVal AntiAlias As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

NibShape	Description of NibShape goes here

Transparency	Description of Transparency goes here

SoftEdge	Description of SoftEdge goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskAffineDistort

Sub MaskAffineDistort(ByVal Xoffset As Long, ByVal Yoffset As Long, ByVal d11 As Double, ByVal d12 As Double, ByVal d21 As Double, ByVal d22 As Double, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Xoffset	Description of Xoffset goes here

Yoffset	Description of Yoffset goes here

d11	Description of d11 goes here

d12	Description of d12 goes here

d21	Description of d21 goes here

d22	Description of d22 goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskAlign

Sub MaskAlign(ByVal Horizontal As Long, ByVal Vertical As Long, ByVal Center As Boolean, ByVal Grid As Boolean, ByVal ActiveObject As Boolean, ByVal SelectedObject As Boolean, ByVal Background As Boolean)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Center	Description of Center goes here

Grid	Description of Grid goes here

ActiveObject	Description of ActiveObject goes here

SelectedObject	Description of SelectedObject goes here

Background	Description of Background goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskAntiAlias

Sub MaskAntiAlias(ByVal Tolerance As Long)

CorelScript

Description

Parameters	Description

Tolerance	Description of Tolerance goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskAverage

Sub MaskAverage(ByVal Radius As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskBorder

Sub MaskBorder(ByVal Width As Long, ByVal Edges As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Edges	Description of Edges goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskBrush

Sub MaskBrush(ByVal DrawMode As Long, ByVal Width As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal NibShape As Long, ByVal Transparency As Long, ByVal SoftEdge As Long, ByVal AntiAlias As Long)

CorelScript

Description

Parameters	Description

DrawMode	Description of DrawMode goes here

Width	Description of Width goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

NibShape	Description of NibShape goes here

Transparency	Description of Transparency goes here

SoftEdge	Description of SoftEdge goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelAdd

Sub MaskChannelAdd(ByVal MaskName As String)

CorelScript

Description

Parameters	Description

MaskName	Description of MaskName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelDelete

Sub MaskChannelDelete(ByVal MaskID As Long)

CorelScript

Description

Parameters	Description

MaskID	Description of MaskID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelLoad

Sub MaskChannelLoad(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

LoadType	Description of LoadType goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelName

Sub MaskChannelName(ByVal MaskID As Long, ByVal Name As String)

CorelScript

Description

Parameters	Description

MaskID	Description of MaskID goes here

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelSave

Sub MaskChannelSave(ByVal MaskID As Long, ByVal FileName As String, ByVal FilterID As Long, ByVal Compression As Long)

CorelScript

Description

Parameters	Description

MaskID	Description of MaskID goes here

FileName	Description of FileName goes here

FilterID	Description of FilterID goes here

Compression	Description of Compression goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskChannelToMask

Sub MaskChannelToMask(ByVal MaskID As Long, ByVal DrawMode As Long)

CorelScript

Description

Parameters	Description

MaskID	Description of MaskID goes here

DrawMode	Description of DrawMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskCreate

Sub MaskCreate(ByVal PreserveImage As Boolean, ByVal DrawMode As Long)

CorelScript

Description

Parameters	Description

PreserveImage	Description of PreserveImage goes here

DrawMode	Description of DrawMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskCreateFromPath

Sub MaskCreateFromPath(ByVal AntiAlias As Boolean, ByVal DrawMode As Long)

CorelScript

Description

Parameters	Description

AntiAlias	Description of AntiAlias goes here

DrawMode	Description of DrawMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskDeFloat

Sub MaskDeFloat()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskDefloatIntoSelection

Sub MaskDefloatIntoSelection()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskDistort

Sub MaskDistort(ByVal Corner1X As Long, ByVal Corner1Y As Long, ByVal Corner2X As Long, ByVal Corner2Y As Long, ByVal Corner3X As Long, ByVal Corner3Y As Long, ByVal Corner4X As Long, ByVal Corner4Y As Long, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Corner1X	Description of Corner1X goes here

Corner1Y	Description of Corner1Y goes here

Corner2X	Description of Corner2X goes here

Corner2Y	Description of Corner2Y goes here

Corner3X	Description of Corner3X goes here

Corner3Y	Description of Corner3Y goes here

Corner4X	Description of Corner4X goes here

Corner4Y	Description of Corner4Y goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskEllipse

Sub MaskEllipse(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal DrawMode As Long, ByVal Feather As Long, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

DrawMode	Description of DrawMode goes here

Feather	Description of Feather goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskExpand

Sub MaskExpand(ByVal Width As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFeather

Sub MaskFeather(ByVal Width As Long, ByVal Direction As Long, ByVal Type As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Direction	Description of Direction goes here

Type	Description of Type goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFlipHorizontal

Sub MaskFlipHorizontal()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFlipVertical

Sub MaskFlipVertical()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFloaterMoveTo

Sub MaskFloaterMoveTo(ByVal Left As Long, ByVal Bottom As Long, ByVal Copy As Boolean, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Bottom	Description of Bottom goes here

Copy	Description of Copy goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFloaterTranslate

Sub MaskFloaterTranslate(ByVal Left As Long, ByVal Bottom As Long, ByVal Copy As Boolean)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Bottom	Description of Bottom goes here

Copy	Description of Copy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskFreehand

Sub MaskFreehand(ByVal DrawMode As Long, ByVal Feather As Long, ByVal AntiAlias As Long)

CorelScript

Description

Parameters	Description

DrawMode	Description of DrawMode goes here

Feather	Description of Feather goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskGrow

Sub MaskGrow(ByVal AntiAlias As Boolean, ByVal MaskVisible As Boolean, ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

AntiAlias	Description of AntiAlias goes here

MaskVisible	Description of MaskVisible goes here

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskInvert

Sub MaskInvert()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskLasso

Sub MaskLasso(ByVal DrawMode As Long, ByVal AntiAlias As Boolean, ByVal MaskVisible As Boolean)

CorelScript

Description

Parameters	Description

DrawMode	Description of DrawMode goes here

AntiAlias	Description of AntiAlias goes here

MaskVisible	Description of MaskVisible goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskLoad

Sub MaskLoad(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

LoadType	Description of LoadType goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskMagicWand

Sub MaskMagicWand(ByVal X As Long, ByVal Y As Long, ByVal DrawMode As Long, ByVal AntiAlias As Boolean, ByVal MaskVisible As Boolean, ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

DrawMode	Description of DrawMode goes here

AntiAlias	Description of AntiAlias goes here

MaskVisible	Description of MaskVisible goes here

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskPaint

Sub MaskPaint(ByVal Mask As Long)

CorelScript

Description

Parameters	Description

Mask	Description of Mask goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskRectangle

Sub MaskRectangle(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal DrawMode As Long, ByVal Feather As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

DrawMode	Description of DrawMode goes here

Feather	Description of Feather goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskReduce

Sub MaskReduce(ByVal Width As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskRemove

Sub MaskRemove()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskRemoveHoles

Sub MaskRemoveHoles()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskRotate

Sub MaskRotate(ByVal XCenter As Long, ByVal YCenter As Long, ByVal Angle As Double, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

XCenter	Description of XCenter goes here

YCenter	Description of YCenter goes here

Angle	Description of Angle goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskSave

Sub MaskSave(ByVal FileName As String, ByVal FilterID As Long, ByVal Compression As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

FilterID	Description of FilterID goes here

Compression	Description of Compression goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskScissors

Sub MaskScissors(ByVal DrawMode As Long, ByVal Feather As Long, ByVal AntiAlias As Boolean, ByVal MaskVisible As Boolean)

CorelScript

Description

Parameters	Description

DrawMode	Description of DrawMode goes here

Feather	Description of Feather goes here

AntiAlias	Description of AntiAlias goes here

MaskVisible	Description of MaskVisible goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskSelectAll

Sub MaskSelectAll()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskSimilar

Sub MaskSimilar(ByVal AntiAlias As Boolean, ByVal MaskVisible As Boolean, ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

AntiAlias	Description of AntiAlias goes here

MaskVisible	Description of MaskVisible goes here

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskSkew

Sub MaskSkew(ByVal HorizontalAngle As Double, ByVal VerticalAngle As Double, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

HorizontalAngle	Description of HorizontalAngle goes here

VerticalAngle	Description of VerticalAngle goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskSmooth

Sub MaskSmooth(ByVal Radius As Long)

CorelScript

Description

Parameters	Description

Radius	Description of Radius goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskStretch

Sub MaskStretch(ByVal Left As Long, ByVal Top As Long, ByVal XScale As Double, ByVal YScale As Double, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

XScale	Description of XScale goes here

YScale	Description of YScale goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskStroke

Sub MaskStroke(ByVal Mode As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskThreshold

Sub MaskThreshold(ByVal Level As Long)

CorelScript

Description

Parameters	Description

Level	Description of Level goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskToMaskChannel

Sub MaskToMaskChannel(ByVal MaskID As Long)

CorelScript

Description

Parameters	Description

MaskID	Description of MaskID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MaskTranslate

Sub MaskTranslate(ByVal X As Long, ByVal Y As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieBackOne

Sub MovieBackOne()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieCreate

Sub MovieCreate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieDeleteFrame

Sub MovieDeleteFrame(ByVal FromFrame As Long, ByVal ToFrame As Long)

CorelScript

Description

Parameters	Description

FromFrame	Description of FromFrame goes here

ToFrame	Description of ToFrame goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieForward

Sub MovieForward()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieForwardOne

Sub MovieForwardOne()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieFrameDelay

Sub MovieFrameDelay(ByVal StartFrame As Long, ByVal EndFrame As Long, ByVal Delay As Long)

CorelScript

Description

Parameters	Description

StartFrame	Description of StartFrame goes here

EndFrame	Description of EndFrame goes here

Delay	Description of Delay goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieFrameRate

Sub MovieFrameRate(ByVal Frames As Long)

CorelScript

Description

Parameters	Description

Frames	Description of Frames goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieGotoFrame

Sub MovieGotoFrame(ByVal Frame As Long)

CorelScript

Description

Parameters	Description

Frame	Description of Frame goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieInsertFile

Sub MovieInsertFile(ByVal FileName As String, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long, ByVal LoadType As Long, ByVal StartFrame As Long, ByVal Before As Boolean)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

LoadType	Description of LoadType goes here

StartFrame	Description of StartFrame goes here

Before	Description of Before goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieInsertFrame

Sub MovieInsertFrame(ByVal StartFrame As Long, ByVal NumberOfFrames As Long, ByVal Before As Boolean, ByVal CopyCurrent As Boolean)

CorelScript

Description

Parameters	Description

StartFrame	Description of StartFrame goes here

NumberOfFrames	Description of NumberOfFrames goes here

Before	Description of Before goes here

CopyCurrent	Description of CopyCurrent goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieMoveFrame

Sub MovieMoveFrame(ByVal FromFrame As Long, ByVal ToFrame As Long, ByVal MoveToFrame As Long, ByVal Before As Boolean)

CorelScript

Description

Parameters	Description

FromFrame	Description of FromFrame goes here

ToFrame	Description of ToFrame goes here

MoveToFrame	Description of MoveToFrame goes here

Before	Description of Before goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieRewind

Sub MovieRewind()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.MovieSelectPartial

Sub MovieSelectPartial(ByVal StartFrame As Long, ByVal EndFrame As Long)

CorelScript

Description

Parameters	Description

StartFrame	Description of StartFrame goes here

EndFrame	Description of EndFrame goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.NibSettings

Sub NibSettings(ByVal FileName As String, ByVal NibIndex As Long)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

NibIndex	Description of NibIndex goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectAddClipMask

Sub ObjectAddClipMask(ByVal Value As Long)

CorelScript

Description

Parameters	Description

Value	Description of Value goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectAddClipMaskFromMask

Sub ObjectAddClipMaskFromMask(ByVal Inverted As Boolean)

CorelScript

Description

Parameters	Description

Inverted	Description of Inverted goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectAddClipMaskFromTransparency

Sub ObjectAddClipMaskFromTransparency()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectAffineDistort

Sub ObjectAffineDistort(ByVal Xoffset As Long, ByVal Yoffset As Long, ByVal d11 As Double, ByVal d12 As Double, ByVal d21 As Double, ByVal d22 As Double, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Xoffset	Description of Xoffset goes here

Yoffset	Description of Yoffset goes here

d11	Description of d11 goes here

d12	Description of d12 goes here

d21	Description of d21 goes here

d22	Description of d22 goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectAlign

Sub ObjectAlign(ByVal Horizontal As Long, ByVal Vertical As Long, ByVal Center As Boolean, ByVal Grid As Boolean, ByVal Active As Boolean, ByVal Selected As Boolean, ByVal DistributeBounds As Boolean, ByVal HorizontalAlign As Boolean, ByVal VerticalAlign As Boolean, ByVal ObjectSpacing As Boolean, ByVal XSpacing As Long, ByVal YSpacing As Long)

CorelScript

Description

Parameters	Description

Horizontal	Description of Horizontal goes here

Vertical	Description of Vertical goes here

Center	Description of Center goes here

Grid	Description of Grid goes here

Active	Description of Active goes here

Selected	Description of Selected goes here

DistributeBounds	Description of DistributeBounds goes here

HorizontalAlign	Description of HorizontalAlign goes here

VerticalAlign	Description of VerticalAlign goes here

ObjectSpacing	Description of ObjectSpacing goes here

XSpacing	Description of XSpacing goes here

YSpacing	Description of YSpacing goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectClip

Sub ObjectClip()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectClipToParent

Sub ObjectClipToParent(ByVal ObjectID As Long, ByVal Clip As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Clip	Description of Clip goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectColorTransparencyTool

Sub ObjectColorTransparencyTool(ByVal ToleranceMode As Long, ByVal ApplyToClipMask As Boolean, ByVal Smoothing As Long)

CorelScript

Description

Parameters	Description

ToleranceMode	Description of ToleranceMode goes here

ApplyToClipMask	Description of ApplyToClipMask goes here

Smoothing	Description of Smoothing goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectCombine

Sub ObjectCombine()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectCreate

Sub ObjectCreate(ByVal PreserveImage As Boolean)

CorelScript

Description

Parameters	Description

PreserveImage	Description of PreserveImage goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectCreateFromBackground

Sub ObjectCreateFromBackground()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectCutout

Sub ObjectCutout(ByVal FileName As String)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDefringe

Sub ObjectDefringe(ByVal Amount As Long)

CorelScript

Description

Parameters	Description

Amount	Description of Amount goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDelete

Sub ObjectDelete()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDistort

Sub ObjectDistort(ByVal Corner1X As Long, ByVal Corner1Y As Long, ByVal Corner2X As Long, ByVal Corner2Y As Long, ByVal Corner3X As Long, ByVal Corner3Y As Long, ByVal Corner4X As Long, ByVal Corner4Y As Long, ByVal AntiAlias As Boolean)

CorelScript

Description

Parameters	Description

Corner1X	Description of Corner1X goes here

Corner1Y	Description of Corner1Y goes here

Corner2X	Description of Corner2X goes here

Corner2Y	Description of Corner2Y goes here

Corner3X	Description of Corner3X goes here

Corner3Y	Description of Corner3Y goes here

Corner4X	Description of Corner4X goes here

Corner4Y	Description of Corner4Y goes here

AntiAlias	Description of AntiAlias goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDropShadow

Sub ObjectDropShadow(ByVal Mode As Boolean, ByVal Direction As Long, ByVal Distance As Long, ByVal Feather As Long, ByVal Type As Long, ByVal Edges As Long, ByVal Opacity As Long, ByVal Relative As Boolean, ByVal Fade As Long, ByVal Anchor As Long, ByVal Stretch As Double, ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Direction	Description of Direction goes here

Distance	Description of Distance goes here

Feather	Description of Feather goes here

Type	Description of Type goes here

Edges	Description of Edges goes here

Opacity	Description of Opacity goes here

Relative	Description of Relative goes here

Fade	Description of Fade goes here

Anchor	Description of Anchor goes here

Stretch	Description of Stretch goes here

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDropShadowCombine

Sub ObjectDropShadowCombine()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDropShadowDelete

Sub ObjectDropShadowDelete()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDropShadowSplit

Sub ObjectDropShadowSplit()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectDuplicate

Sub ObjectDuplicate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectEdit

Sub ObjectEdit(ByVal ObjectID As Long, ByVal Edit As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Edit	Description of Edit goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectEditAll

Sub ObjectEditAll()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectEditNone

Sub ObjectEditNone()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectEditSelected

Sub ObjectEditSelected()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectEditTransparency

Sub ObjectEditTransparency(ByVal Mode As Long)

CorelScript

Description

Parameters	Description

Mode	Description of Mode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectFeather

Sub ObjectFeather(ByVal Width As Long, ByVal Type As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Type	Description of Type goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectFlipHorizontal

Sub ObjectFlipHorizontal()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectFlipVertical

Sub ObjectFlipVertical()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectGroup

Sub ObjectGroup()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectMerge

Sub ObjectMerge(ByVal All As Boolean)

CorelScript

Description

Parameters	Description

All	Description of All goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectMergeMode

Sub ObjectMergeMode(ByVal MergeMode As Long)

CorelScript

Description

Parameters	Description

MergeMode	Description of MergeMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectName

Sub ObjectName(ByVal ObjectID As Long, ByVal Name As String)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Name	Description of Name goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectNew

Sub ObjectNew(ByVal Name As String, ByVal Opacity As Long, ByVal MergeMode As Long)

CorelScript

Description

Parameters	Description

Name	Description of Name goes here

Opacity	Description of Opacity goes here

MergeMode	Description of MergeMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectOpacity

Sub ObjectOpacity(ByVal Amount As Long)

CorelScript

Description

Parameters	Description

Amount	Description of Amount goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectOrder

Sub ObjectOrder(ByVal Order As Long)

CorelScript

Description

Parameters	Description

Order	Description of Order goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectOrderChange

Sub ObjectOrderChange(ByVal Source As Long, ByVal Destination As Long)

CorelScript

Description

Parameters	Description

Source	Description of Source goes here

Destination	Description of Destination goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectProperties

Sub ObjectProperties(ByVal ObjectID As Long, ByVal Name As String, ByVal Opacity As Long, ByVal MergeMode As Long, ByVal Visible As Boolean, ByVal Clip As Boolean, ByVal Enable As Boolean, ByVal Link As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Name	Description of Name goes here

Opacity	Description of Opacity goes here

MergeMode	Description of MergeMode goes here

Visible	Description of Visible goes here

Clip	Description of Clip goes here

Enable	Description of Enable goes here

Link	Description of Link goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectRemoveClipMask

Sub ObjectRemoveClipMask(ByVal Apply As Boolean)

CorelScript

Description

Parameters	Description

Apply	Description of Apply goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectRemoveMatte

Sub ObjectRemoveMatte(ByVal White As Boolean)

CorelScript

Description

Parameters	Description

White	Description of White goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectRotate

Sub ObjectRotate(ByVal XCenter As Double, ByVal YCenter As Double, ByVal Angle As Double, ByVal AntiAlias As Boolean, ByVal Copy As Boolean)

CorelScript

Description

Parameters	Description

XCenter	Description of XCenter goes here

YCenter	Description of YCenter goes here

Angle	Description of Angle goes here

AntiAlias	Description of AntiAlias goes here

Copy	Description of Copy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectSelect

Sub ObjectSelect(ByVal ObjectID As Long, ByVal Selected As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Selected	Description of Selected goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectSelectAll

Sub ObjectSelectAll()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectSelection

Sub ObjectSelection()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectSelectNone

Sub ObjectSelectNone()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectSkew

Sub ObjectSkew(ByVal HorizontalAngle As Double, ByVal VerticalAngle As Double, ByVal AntiAlias As Boolean, ByVal Copy As Boolean)

CorelScript

Description

Parameters	Description

HorizontalAngle	Description of HorizontalAngle goes here

VerticalAngle	Description of VerticalAngle goes here

AntiAlias	Description of AntiAlias goes here

Copy	Description of Copy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectStretch

Sub ObjectStretch(ByVal Left As Long, ByVal Top As Long, ByVal XScale As Double, ByVal YScale As Double, ByVal AntiAlias As Boolean, ByVal Copy As Boolean)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

XScale	Description of XScale goes here

YScale	Description of YScale goes here

AntiAlias	Description of AntiAlias goes here

Copy	Description of Copy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectTagWWWURL

Sub ObjectTagWWWURL()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectThreshold

Sub ObjectThreshold(ByVal Threshold As Long)

CorelScript

Description

Parameters	Description

Threshold	Description of Threshold goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectToggleClipMask

Sub ObjectToggleClipMask(ByVal Clip As Boolean)

CorelScript

Description

Parameters	Description

Clip	Description of Clip goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectToggleLinkClipMask

Sub ObjectToggleLinkClipMask(ByVal ObjectID As Long, ByVal Link As Boolean)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Link	Description of Link goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectTranslate

Sub ObjectTranslate(ByVal X As Long, ByVal Y As Long, ByVal Copy As Boolean)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Copy	Description of Copy goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectTransparencyTool

Sub ObjectTransparencyTool(ByVal Start As Long, ByVal End As Long, ByVal UseOriginal As Boolean, ByVal Handles As Long, ByVal ApplyToClipMask As Boolean)

CorelScript

Description

Parameters	Description

Start	Description of Start goes here

End	Description of End goes here

UseOriginal	Description of UseOriginal goes here

Handles	Description of Handles goes here

ApplyToClipMask	Description of ApplyToClipMask goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectUngroup

Sub ObjectUngroup()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectURLInfo

Sub ObjectURLInfo(ByVal ObjectID As Long, ByVal Region As Long, ByVal Address As String, ByVal Comments As String)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Region	Description of Region goes here

Address	Description of Address goes here

Comments	Description of Comments goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ObjectVisible

Sub ObjectVisible(ByVal StartIndex As Long, ByVal EndIndex As Long, ByVal Visible As Boolean)

CorelScript

Description

Parameters	Description

StartIndex	Description of StartIndex goes here

EndIndex	Description of EndIndex goes here

Visible	Description of Visible goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.OverprintColor

Sub OverprintColor(ByVal Number As Long, ByVal Cyan As Long, ByVal Magenta As Long, ByVal Yellow As Long, ByVal Black As Long)

CorelScript

Description

Parameters	Description

Number	Description of Number goes here

Cyan	Description of Cyan goes here

Magenta	Description of Magenta goes here

Yellow	Description of Yellow goes here

Black	Description of Black goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PaletteColor

Sub PaletteColor(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long, ByVal Index As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Index	Description of Index goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathCreate

Sub PathCreate(ByVal Nodes As Long)

CorelScript

Description

Parameters	Description

Nodes	Description of Nodes goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathCreateFromMask

Sub PathCreateFromMask(ByVal Tightness As Long, ByVal Threshold As Long)

CorelScript

Description

Parameters	Description

Tightness	Description of Tightness goes here

Threshold	Description of Threshold goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathDelete

Sub PathDelete(ByVal FromDisk As Boolean)

CorelScript

Description

Parameters	Description

FromDisk	Description of FromDisk goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathDuplicate

Sub PathDuplicate()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathEnd

Sub PathEnd()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathImportVector

Sub PathImportVector(ByVal FileName As String, ByVal ScaleX As Double, ByVal ScaleY As Double)

CorelScript

Description

Parameters	Description

FileName	Description of FileName goes here

ScaleX	Description of ScaleX goes here

ScaleY	Description of ScaleY goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathLoad

Sub PathLoad(ByVal PathName As String)

CorelScript

Description

Parameters	Description

PathName	Description of PathName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathNew

Sub PathNew()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathNode

Sub PathNode(ByVal X As Double, ByVal Y As Double, ByVal Closed As Boolean, ByVal Continuity As Long, ByVal Type As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Closed	Description of Closed goes here

Continuity	Description of Continuity goes here

Type	Description of Type goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathSave

Sub PathSave(ByVal PathName As String)

CorelScript

Description

Parameters	Description

PathName	Description of PathName goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathSetClippingPath

Sub PathSetClippingPath(ByVal PathID As Long)

CorelScript

Description

Parameters	Description

PathID	Description of PathID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathStroke

Sub PathStroke()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PathVisible

Sub PathVisible(ByVal Visible As Boolean)

CorelScript

Description

Parameters	Description

Visible	Description of Visible goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PolygonTool

Sub PolygonTool(ByVal Width As Long, ByVal Transparency As Long, ByVal Joints As Long, ByVal MergeMode As Long, ByVal AntiAlias As Boolean, ByVal RenderObject As Boolean, ByVal Fill As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Transparency	Description of Transparency goes here

Joints	Description of Joints goes here

MergeMode	Description of MergeMode goes here

AntiAlias	Description of AntiAlias goes here

RenderObject	Description of RenderObject goes here

Fill	Description of Fill goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.PressureSettings

Sub PressureSettings(ByVal Size As Long, ByVal Transparency As Long, ByVal Softness As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long, ByVal Texture As Long, ByVal Bleed As Long, ByVal Resaturate As Long, ByVal Mask As Long, ByVal Elongation As Long)

CorelScript

Description

Parameters	Description

Size	Description of Size goes here

Transparency	Description of Transparency goes here

Softness	Description of Softness goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Texture	Description of Texture goes here

Bleed	Description of Bleed goes here

Resaturate	Description of Resaturate goes here

Mask	Description of Mask goes here

Elongation	Description of Elongation goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.RandomSeed

Sub RandomSeed(ByVal Seed As Long)

CorelScript

Description

Parameters	Description

Seed	Description of Seed goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.Rectangle

Sub Rectangle(ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.RectangleTool

Sub RectangleTool(ByVal Width As Long, ByVal Transparency As Long, ByVal Roundness As Long, ByVal MergeMode As Long, ByVal AntiAlias As Boolean, ByVal RenderObject As Boolean, ByVal Fill As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Transparency	Description of Transparency goes here

Roundness	Description of Roundness goes here

MergeMode	Description of MergeMode goes here

AntiAlias	Description of AntiAlias goes here

RenderObject	Description of RenderObject goes here

Fill	Description of Fill goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.RedEyeTool

Sub RedEyeTool(ByVal Width As Long, ByVal NibShape As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal SoftEdge As Long, ByVal AntiAlias As Boolean, ByVal Tolerance As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

NibShape	Description of NibShape goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

SoftEdge	Description of SoftEdge goes here

AntiAlias	Description of AntiAlias goes here

Tolerance	Description of Tolerance goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.RegisterObject

Function RegisterObject(ByVal ObjectID As String) As Boolean

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.RepeatSettings

Sub RepeatSettings(ByVal Repeat As Long, ByVal Rotate As Long, ByVal RotateVar As Long, ByVal ColorFromImage As Long, ByVal Hue As Long, ByVal Lightness As Long, ByVal Saturation As Long, ByVal AccummulateAngle As Long, ByVal TangentToPath As Long, ByVal Scale As Long, ByVal ScaleVar As Long, ByVal StrokePath As Long, ByVal FromMask As Boolean, ByVal Left As Long, ByVal Top As Long, ByVal Right As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Repeat	Description of Repeat goes here

Rotate	Description of Rotate goes here

RotateVar	Description of RotateVar goes here

ColorFromImage	Description of ColorFromImage goes here

Hue	Description of Hue goes here

Lightness	Description of Lightness goes here

Saturation	Description of Saturation goes here

AccummulateAngle	Description of AccummulateAngle goes here

TangentToPath	Description of TangentToPath goes here

Scale	Description of Scale goes here

ScaleVar	Description of ScaleVar goes here

StrokePath	Description of StrokePath goes here

FromMask	Description of FromMask goes here

Left	Description of Left goes here

Top	Description of Top goes here

Right	Description of Right goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SelectionMoveTo

Sub SelectionMoveTo(ByVal Left As Long, ByVal Bottom As Long)

CorelScript

Description

Parameters	Description

Left	Description of Left goes here

Bottom	Description of Bottom goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SelectionPlugin

Sub SelectionPlugin(ByVal GroupName As String, ByVal EffectName As String, ByVal MemoryType As Long, ByVal MemorySize As Long, ByVal Parameters As String)

CorelScript

Description

Parameters	Description

GroupName	Description of GroupName goes here

EffectName	Description of EffectName goes here

MemoryType	Description of MemoryType goes here

MemorySize	Description of MemorySize goes here

Parameters	Description of Parameters goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetActiveTool

Sub SetActiveTool(ByVal ToolID As Long)

CorelScript

Description

Parameters	Description

ToolID	Description of ToolID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetDocumentInfo

Sub SetDocumentInfo(ByVal Width As Long, ByVal Height As Long)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Height	Description of Height goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetDocVisible

Sub SetDocVisible(ByVal Show As Boolean)

CorelScript

Description

Parameters	Description

Show	Description of Show goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetPaintColor

Sub SetPaintColor(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetPaperColor

Sub SetPaperColor(ByVal ColorModel As Long, ByVal Color1 As Long, ByVal Color2 As Long, ByVal Color3 As Long, ByVal Color4 As Long)

CorelScript

Description

Parameters	Description

ColorModel	Description of ColorModel goes here

Color1	Description of Color1 goes here

Color2	Description of Color2 goes here

Color3	Description of Color3 goes here

Color4	Description of Color4 goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SetVisible

Sub SetVisible(ByVal Show As Boolean)

CorelScript

Description

Parameters	Description

Show	Description of Show goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SnapToGrid

Sub SnapToGrid(ByVal SnapOn As Boolean)

CorelScript

Description

Parameters	Description

SnapOn	Description of SnapOn goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.StartCloneDraw

Sub StartCloneDraw(ByVal SrcPtX As Long, ByVal SrcPtY As Long, ByVal DestPtX As Long, ByVal DestPtY As Long, ByVal Timer As Long, ByVal Pressure As Long, ByVal Tilt As Long, ByVal Rotate As Long)

CorelScript

Description

Parameters	Description

SrcPtX	Description of SrcPtX goes here

SrcPtY	Description of SrcPtY goes here

DestPtX	Description of DestPtX goes here

DestPtY	Description of DestPtY goes here

Timer	Description of Timer goes here

Pressure	Description of Pressure goes here

Tilt	Description of Tilt goes here

Rotate	Description of Rotate goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.StartDraw

Sub StartDraw(ByVal X As Long, ByVal Y As Long, ByVal Timer As Long, ByVal Pressure As Long, ByVal Tilt As Long, ByVal Rotate As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

Timer	Description of Timer goes here

Pressure	Description of Pressure goes here

Tilt	Description of Tilt goes here

Rotate	Description of Rotate goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.StraightenText

Sub StraightenText()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.SymmetrySettings

Sub SymmetrySettings(ByVal CenterX As Long, ByVal CenterY As Long, ByVal Mode As Long, ByVal NumPoints As Long)

CorelScript

Description

Parameters	Description

CenterX	Description of CenterX goes here

CenterY	Description of CenterY goes here

Mode	Description of Mode goes here

NumPoints	Description of NumPoints goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextAppend

Sub TextAppend(ByVal Text As String)

CorelScript

Description

Parameters	Description

Text	Description of Text goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextEdit

Sub TextEdit(ByVal ObjectID As Long)

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextFitToPath

Sub TextFitToPath(ByVal PositionX As Long, ByVal PositionY As Long, ByVal SubPathID As Long)

CorelScript

Description

Parameters	Description

PositionX	Description of PositionX goes here

PositionY	Description of PositionY goes here

SubPathID	Description of SubPathID goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextRender

Sub TextRender()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextRenderObject

Sub TextRenderObject()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextSetting

Sub TextSetting(ByVal Arg As String, ByVal Value As String)

CorelScript

Description

Parameters	Description

Arg	Description of Arg goes here

Value	Description of Value goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TextTool

Sub TextTool(ByVal X As Long, ByVal Y As Long, ByVal RenderToMask As Boolean, ByVal AntiAlias As Boolean, ByVal DrawMode As Long)

CorelScript

Description

Parameters	Description

X	Description of X goes here

Y	Description of Y goes here

RenderToMask	Description of RenderToMask goes here

AntiAlias	Description of AntiAlias goes here

DrawMode	Description of DrawMode goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.ToleranceSettings

Sub ToleranceSettings(ByVal ToleranceMode As Long, ByVal Normal As Long, ByVal Hue As Long, ByVal Saturation As Long, ByVal Brightness As Long)

CorelScript

Description

Parameters	Description

ToleranceMode	Description of ToleranceMode goes here

Normal	Description of Normal goes here

Hue	Description of Hue goes here

Saturation	Description of Saturation goes here

Brightness	Description of Brightness goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.TransparencyBrushTool

Sub TransparencyBrushTool(ByVal Width As Long, ByVal Flatten As Long, ByVal Rotate As Long, ByVal NibShape As Long, ByVal Transparency As Long, ByVal SoftEdge As Long, ByVal Opacity As Long, ByVal UseOriginal As Boolean, ByVal AntiAlias As Boolean, ByVal ApplyToClipMask As Boolean)

CorelScript

Description

Parameters	Description

Width	Description of Width goes here

Flatten	Description of Flatten goes here

Rotate	Description of Rotate goes here

NibShape	Description of NibShape goes here

Transparency	Description of Transparency goes here

SoftEdge	Description of SoftEdge goes here

Opacity	Description of Opacity goes here

UseOriginal	Description of UseOriginal goes here

AntiAlias	Description of AntiAlias goes here

ApplyToClipMask	Description of ApplyToClipMask goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.UnRegisterObject

Function UnRegisterObject(ByVal ObjectID As String) As Boolean

CorelScript

Description

Parameters	Description

ObjectID	Description of ObjectID goes here

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebChangeRollover

Sub WebChangeRollover(ByVal EditState As Integer)

CorelScript

Description

Parameters	Description

EditState	Description of EditState goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebCreateRollover

Sub WebCreateRollover()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebEditRollover

Sub WebEditRollover(ByVal ViewOnly As Boolean, ByVal EditState As Integer)

CorelScript

Description

Parameters	Description

ViewOnly	Description of ViewOnly goes here

EditState	Description of EditState goes here

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebExtractRollover

Sub WebExtractRollover()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebFinishRollover

Sub WebFinishRollover()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebResetRollover

Sub WebResetRollover()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScript.WebTrashRollover

Sub WebTrashRollover()

CorelScript

Description

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptFile properties

CorelScriptFile     Legend

    Application
    FileName
      Name
    Parent


CorelScriptFile methods

CorelScriptFile     Legend

   Delete
   Play
   Translate


CorelScriptFile

Class CorelScriptFile

Properties     Methods     Referenced By

The CorelScriptFile class defines the characteristics of CorelSCRIPT file objects and describes the look and behavior of the objects through its properties and methods. Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. If you run a script for an application that is not running, Corel SCRIPT automatically starts the application.

A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

The Corel SCRIPT programming language is based on the BASIC programming language. If you're already familiar with a version of BASIC, you'll find the Corel SCRIPT programming language easy to read and understand.

For more information on Corel SCRIPT and its components, please view the Help File in the Corel SCRIPT Editor.

 Related Topics


CorelScriptFile.Application

Property Application As Object

CorelScriptFile

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


CorelScriptFile.FileName

Property FileName As String

CorelScriptFile

Description

The FileName property returns a string value that identifies the full computer location and file name of a Corel SCRIPT file in Corel PHOTO-PAINT. Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

The FileName property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptFile.Name

Property Name As String

CorelScriptFile

Description

The Name property returns or sets a string value that identifies a new VBA code module, when it is translated from a Corel SCRIPT file. Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

A VBA code module is a programming package of Visual Basic for Applications code segments. VBA is a subset of the Microsoft Visual Basic (VB) object-oriented programming environment. VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model. VBA can access other applications from within Corel PHOTO-PAINT  by referencing that application's object model components.

By default, the module name is set to the original SCRIPT name, without the script extension (.csc).

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptFile.Parent

Property Parent As Object

CorelScriptFile

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


CorelScriptFile.Delete

Sub Delete()

CorelScriptFile

Description

The Delete method removes the original Corel SCRIPT file from Corel PHOTO-PAINT.Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptFile.Play

Sub Play([ByVal Document As Object = Nothing])

CorelScriptFile

Description

The Play method runs a Corel SCRIPT file in the active document of Corel PHOTO-PAINT. Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

In order to use the Play method, you must pass the Document value as a parameter:

Parameters	Description

Document	The Document parameter specifies which document will run the script file and activates that document prior to running the script. If a document is not specified with the Play method, the active document with run the script. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptFile.Translate

Sub Translate([ByVal Document As Object = Nothing])

CorelScriptFile

Description

The Translate method converts a Corel SCRIPT file into a VBA code module in Corel PHOTO-PAINT. Corel SCRIPT files are individual packages of Corel SCRIPT programming procedures that perform a specific task when used within the Corel PHOTO-PAINT application.

Corel SCRIPT is an application included with some Corel applications to record, play, and run recordings and scripts. Corel SCRIPT starts automatically when you record or play a recording from a Corel application that supports scripts. A typical user can take advantage of Corel SCRIPT to automate repetitive tasks with scripts written in the Corel SCRIPT programming language. However, Corel SCRIPT is more than just a language that you can use to create and run application script files; it's also a powerful programming language that can be used as a standalone application.

A VBA code module is a programming package of Visual Basic for Applications code segments. VBA is a subset of the Microsoft Visual Basic (VB) object-oriented programming environment. VBA uses the Visual Basic Editor interactive development environment and the VB programming language to enhance applications by manipulating the application's objects, exposed by its object model. VBA can access other applications from within Corel PHOTO-PAINT by referencing that application's object model components.

In order to use the Translate method, you must pass the Document value as a parameter:

Parameters	Description

Document	The Document parameter specifies which document will contain the generated VBA code module. If a document is not specified with the Translate method, the generated VBA code module will be stored in Corel PHOTO-PAINT Global Macros. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


CorelScriptTools methods

CorelScriptTools     Legend

   AngleConvert
   ASin
   BeginWaitCursor
   BuildDate
   BuildTime
   Dec
   EndWaitCursor
   FileAttr
   FindFirstFolder
   FindNextFolder
   FormatTime
   FromCentimeters
   FromCiceros
   FromDidots
   FromInches
   FromPicas
   FromPoints
   GetAppHandle
   GetColor
   GetCommandLine
   GetCurrFolder
   GetDateInfo
   GetFileBox
   GetFolder
   GetFont
   GetProcessInfo
   GetScriptFolder
   GetTempFolder
   GetTimeInfo
   GetType
   GetVersion
   GetWinHandle
   Kill
   LengthConvert
   Log
   MkFolder
   RegistryQuery
   Rename
   RmFolder
   ToCentimeters
   ToCiceros
   ToDidots
   ToInches
   ToPicas
   ToPoints


CorelScriptTools

Class CorelScriptTools

Methods     Referenced By

CorelScriptTools Class

 Related Topics


CorelScriptTools.AngleConvert

Function AngleConvert(ByVal FromUnit As Long, ByVal ToUnit As Long, ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a number from one angle measurement to another.

Parameters	Description

FromUnit	Any number from 1 to 5 that indicates the unit of measurement from which to convert.
1 = degrees
2 = radians
3 = gradients
4 = Corel PHOTO-PAINT degrees (tenths of a degree)
5 = CorelDRAW degrees (millionths of a degree) [in]

ToUnit	Any number from 1 to 5 that indicates the unit of measurement to convert to.
1 = degrees
2 = radians
3 = gradients
4 = Corel PHOTO-PAINT degrees (tenths of a degree)
5 = CorelDRAW degrees (millionths of a degree) [in]

Value	Description of Value goes here [in]

Return value

Returns Double

Example

x_rads = ANGLECONVERT(1, 2, 90)

 Related Topics


CorelScriptTools.ASin

Function ASin(ByVal Value As Double) As Double

CorelScriptTools

Description

Returns the inverse sine (arc sine) of a given value. The result is an angle in radians bounded by -???????/2 and ???????/2.

 Note

• To convert the result from radians to degrees, use the ANGLECONVERTANGLECONVERT function or multiply the result by 180/3.14152.

Parameters	Description

Value	A numeric expression between -1 and 1. [in]

Return value

Returns Double

Example

w = ASIN(-0.75)

x = ASIN(0.75)

y = ASIN(0)

z = ASIN(1)

 Related Topics


CorelScriptTools.BeginWaitCursor

Sub BeginWaitCursor()

CorelScriptTools

Description

The BEGINWAITCURSOR statement sets the mouse pointer to Busy. The Busy pointer usually appears as an hour-glass on most systems. This command is useful for scripts that perform long operations. By setting the pointer to Busy, the user is alerted that the script is still executing.

 Note

• It is good programming practice to use an ENDWAITCURSOR statement with every BEGINWAITCURSOR statement.

Example

BEGINWAITCURSOR

WAIT FOR 30

ENDWAITCURSOR

 Related Topics


CorelScriptTools.BuildDate

Function BuildDate(ByVal Year As Long, ByVal Month As Long, ByVal Day As Long) As Date

CorelScriptTools

Description

Assigns a date value to a date variable.

 Note

• BUILDATE can only accept a date value between January 1, 1980 (date serial number 29221) and December 31, 2099 (date serial number 73050). If a date outside this range is specified, an error occurs.

Parameters	Description

Year	Numeric expression specifying the year to assign to a date variable. [in]

Month	Numeric expression specifying the month to assign to a date variable. Valid values are from 1 to 12 inclusive. [in]

Day	Numeric expression specifying the day to assign to a date variable. Valid values are from 1 to 31 inclusive, depending on the Month setting. [in]

Return value

Returns Date

Example

DIM BigDay AS DATE

BigDay = BUILDDATE(1996, 1, 14)

 Related Topics


CorelScriptTools.BuildTime

Function BuildTime(ByVal Hour As Long, ByVal Minute As Long, ByVal Second As Long) As Date

CorelScriptTools

Description

Assigns a time value to a date variable.

Parameters	Description

Hour	Numeric expression specifying the hour to assign to a date variable. This value is based on a 24-hour clock. For example, 5 PM equals 17. Valid values are from 0 to 23 inclusive. [in]

Minute	Numeric expression specifying the minute to assign to a date variable. Valid values are from 0 to 59 inclusive. [in]

Second	Numeric expression specifying the second to assign to a date variable. Valid values are from 0 to 59 inclusive. [in]

Return value

Returns Date

Example

DIM BigDay AS DATE

BigDay = BUILDTIME(14, 30, 0)

 Related Topics


CorelScriptTools.Dec

Function Dec(ByVal Hex As String) As Long

CorelScriptTools

Description

Returns the conversion of a hexadecimal value into decimal notation

 Notes

• Decimal notation is a numerical system based on groups of ten units.

• The highest value you can convert is 7FFFFFFF.

• The HEX function performs the opposite conversion, from decimal to hexadecimal.

Parameters	Description

Hex	A string expression representing a hexadecimal number. [in]

Return value

Returns Long

Example

x& = DEC("A27")

 Related Topics


CorelScriptTools.EndWaitCursor

Sub EndWaitCursor()

CorelScriptTools

Description

The ENDWAITCURSOR statement returns the pointer to its normal state. If the ENDWAITCURSOR statement is not in a script that uses the BEGINWAITCURSOR statement, the pointer reverts to its normal state after the script finishes executing.

 Note

• It is good programming practice to use an ENDWAITCURSOR statement with every BEGINWAITCURSOR statement.

Example

BEGINWAITCURSOR

WAIT FOR 30

ENDWAITCURSOR

 Related Topics


CorelScriptTools.FileAttr

Function FileAttr(ByVal FolderFile As String) As Long

CorelScriptTools

Description

This functions returns a file's or folder's attributes.

The FILEATTR function returns one of the following values:

• 0 [image] file doesn't exist

• 1 [image] read-only files or folder

• 2 [image] hidden files or folder

• 4 [image] system files or folder used by operating system

• 16 [image] folder

• 32 [image] archive files or folder

• 128 [image] normal files or folder

• 256 [image] temporary files or folder

• 2048 [image] compressed files and folders

Parameters	Description

FolderFile	Description of FolderFile goes here [in]

Return value

Returns Long

Example

retval = FILEATTR("C:\myfiles\mysetup.txt")

In cases where multiple attributes are returned, you can use the AND operator to determine specific attributes. To determine if MYSETUP.TXT was a read-only file you could use the following syntax:

IF 1 AND retval THEN readOnly$ = "Yes" ELSE readOnly$ = "No"

 Related Topics


CorelScriptTools.FindFirstFolder

Function FindFirstFolder(ByVal SearchCriteria As String, ByVal Attributes As Long) As String

CorelScriptTools

Description

Use the FINDFIRSTFOLDER and FINDNEXTFOLDER functions to assemble or perform an operation on a list of files, folders, or both. The FINDFIRSTFOLDER function is used to locate the first file or first folder in a folder that meets a specified search criteria. The FINDNEXTFOLDER function is used to locate the next file or next folder that meets the specified search criteria set by the FINDFIRSTFOLDER. The FINDNEXTFOLDER function must be used in conjunction with the FINDFIRSTFOLDER function.

String variable that is passed the name of the folder.

 Note

• Specifying folder in the attributes parameter (16) by itself does not specify a type of folder. You must use another parameter along with 16 to specify a folder type.

Parameters	Description

SearchCriteria	Lets you specify the files or folders for which to search. You can include wild-card characters (* or ?). [in]

Attributes	The type of files or folders you want to use. Use the OR operator to specify multiple file and folder types:
1	read-only
2	hidden
4	system
16	Lets you specify to use folders. If not specified, files are used.
32	archive
128	normal (not read-only, hidden, system or archive file or folder)
256	temporary
2048	compressed [in]

Return value

Returns String

Example

dim Dcount%, Fcount% 'creates 2 integer variables

dim FilesArr$(100), DirArr$(100) 'creates 2 string arrays

rem LOOP #1

REM Find all directories in the Samples folder

Dcount = 1

DirArr(Dcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\*", 16 or 128)

WHILE (DirArr(Dcount) <> "")

MESSAGE DirArr(Dcount)

IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1

DirArr(Dcount) = FINDNEXTFOLDER()

WEND

rem LOOP #2

REM Find all *.vp files in each Directory found in earlier loop

DIM i%

Fcount = 1

FOR i% = 1 TO Dcount-1

FilesArr(Fcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\" + DirArr(i%) + "\*.vp", 1 or 2 or 4 or 32 or 128)

WHILE (FilesArr(Fcount) <> "" )

MESSAGE DirArr(i%) & CHR(13) & FilesArr(Fcount)

Fcount = Fcount + 1

FilesArr(Fcount) = FINDNEXTFOLDER()

WEND

NEXT i%

The following statement in the first loop is used to remove the current (.) folder and parent (..) folder from being sent to the DIRARR array:

IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1

 Related Topics


CorelScriptTools.FindNextFolder

Function FindNextFolder() As String

CorelScriptTools

Description

Use the FINDFIRSTFOLDER and FINDNEXTFOLDER functions to assemble or perform an operation on a list of files, folders, or both. The FINDFIRSTFOLDER function is used to locate the first file or first folder in a folder that meets a specified search criteria. The FINDNEXTFOLDER function is used to locate the next file or next folder that meets the specified search criteria set by the FINDFIRSTFOLDER. The FINDNEXTFOLDER function must be used in conjunction with the FINDFIRSTFOLDER function.

String variable that is passed the name of the folder.

 Note

• Specifying folder in the attributes parameter (16) by itself does not specify a type of folder. You must use another parameter along with 16 to specify a folder type.

Return value

Returns String

Example

dim Dcount%, Fcount% 'creates 2 integer variables

dim FilesArr$(100), DirArr$(100) 'creates 2 string arrays

rem LOOP #1

REM Find all directories in the Samples folder

Dcount = 1

DirArr(Dcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\*", 16 or 128)

WHILE (DirArr(Dcount) <> "")

MESSAGE DirArr(Dcount)

IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1

DirArr(Dcount) = FINDNEXTFOLDER()

WEND

rem LOOP #2

REM Find all *.vp files in each Directory found in earlier loop

DIM i%

Fcount = 1

FOR i% = 1 TO Dcount-1

FilesArr(Fcount) = FINDFIRSTFOLDER("D:\Corel\Ventura\Samples\" + DirArr(i%) + "\*.vp", 1 or 2 or 4 or 32 or 128)

WHILE (FilesArr(Fcount) <> "" )

MESSAGE DirArr(i%) & CHR(13) & FilesArr(Fcount)

Fcount = Fcount + 1

FilesArr(Fcount) = FINDNEXTFOLDER()

WEND

NEXT i%

The following statement in the first loop is used to remove the current (.) folder and parent (..) folder from being sent to the DIRARR array:

IF DirArr(Dcount) <> "." AND DirArr(Dcount) <> ".." THEN Dcount = Dcount + 1

 Related Topics


CorelScriptTools.FormatTime

Function FormatTime(ByVal Time As Date, ByVal Format As String) As String

CorelScriptTools

Description

 Note

• You can insert spaces and punctuation between time elements within the formatting string. See the example below.

Parameters	Description

Time	Lets you specify the time expression to convert to a string. [in]

Format	Lets you specify a code, as a string, representing the format of the time. Formats are created by using and combining the following codes. [in]

Return value

Returns String

Example

DIM TimeNow AS DATE

TimeNow = GETCURRDATE()

StringTime = FORMATTIME (TimeNow, "HH:mm:ss tt")

MESSAGE StringTime

13:46:25 PM

 Related Topics


CorelScriptTools.FromCentimeters

Function FromCentimeters(ByVal Value As Double) As Double

CorelScriptTools

Description

From Centimeters

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMCENTIMETERS(8), FROMCENTIMETERS(-5), FROMCENTIMETERS(0), FROMCENTIMETERS(2.5), FROMCENTIMETERS(0.75)

 Related Topics


CorelScriptTools.FromCiceros

Function FromCiceros(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from ciceros to tenths of a micron.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMCICEROS(18), FROMCICEROS(-12), FROMCICEROS(8), FROMCICEROS(6), FROMCICEROS(1.5)

 Related Topics


CorelScriptTools.FromDidots

Function FromDidots(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from didots to tenths of a micron.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMDIDOTS(50), FROMDIDOTS(-70), FROMDIDOTS(0), FROMDIDOTS(30), FROMDIDOTS(20)

 Related Topics


CorelScriptTools.FromInches

Function FromInches(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from inches to tenths of a micron.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMINCHES(3), FROMINCHES(-2), FROMINCHES(0), FROMINCHES(1), FROMINCHES(0.25)

 Related Topics


CorelScriptTools.FromPicas

Function FromPicas(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from picas to tenths of a micron.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMPICAS(18), FROMPICAS(-12), FROMPICAS(8), FROMPICAS(6), FROMPICAS(2)

 Related Topics


CorelScriptTools.FromPoints

Function FromPoints(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from points to tenths of a micron.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.CreateRectangle FROMPOINTS(210), FROMPOINTS(-140), FROMPOINTS(90), FROMPOINTS(70), FROMPOINTS(1.75)

 Related Topics


CorelScriptTools.GetAppHandle

Function GetAppHandle() As Long

CorelScriptTools

Description

Returns the Application Instance Handle for the Corel application that is running a script. For example, if you are running the script from the Corel SCRIPT Editor, GETAPPHANDLE returns the Editor's Application Instance Handle. If you run a script from Corel VENTURA, GETAPPHANDLE returns VENTURA's Application Instance Handle. This function is used in conjunction with DLL calls that require the application's handle.

Lets you specify a numeric variable that is passed the Application Instance Handle.

Return value

Returns Long

Example

hand = GETAPPHANDLE()

 Related Topics


CorelScriptTools.GetColor

Function GetColor(ByRef Red As Long, ByRef Green As Long, ByRef Blue As Long) As Boolean

CorelScriptTools

Description

Displays a standard Windows Color dialog box and returns color setting values from the RGB color model (Red, Green, Blue).

The GETCOLOR function returns one of the following values

• TRUE (-1) [image] the Cancel button was not clicked

• FALSE (0) [image] the Cancel button was clicked

Parameters	Description

Red	Lets you specify the numeric variable that is passed the Red setting of the selected color (0 - 255). You can also use this variable to set an initial value. [in,out]

Green	Lets you specify the numeric variable that is passed the Green setting of the selected color (0 - 255). You can also use this variable to set an initial value. [in,out]

Blue	Lets you specify the numeric variable that is passed the Blue setting of the selected color (0 - 255). You can also use this variable to set an initial value. [in,out]

Return value

Returns Boolean

Example

GETCOLOR MyRed%, MyGreen%, MyBlue%

 Related Topics


CorelScriptTools.GetCommandLine

Function GetCommandLine() As String

CorelScriptTools

Description

Returns the parameters used in the command line that launch a script. To test this command, specify a command line in the Command Line text box in the Corel SCRIPT Editor's Options dialog box (click Tools, Options, Environment tab).

String variable that is passed the command line parameters.

Return value

Returns String

Example

CommandLine$ = GETCOMMANDLINE ( )

 Related Topics


CorelScriptTools.GetCurrFolder

Function GetCurrFolder() As String

CorelScriptTools

Description

Returns the name of the active Windows folder and path.

String variable that is passed the name of the active Windows folder and path.

 Notes

• You can set the active folder using the SETCURRFOLDERSETCURRFOLDER statement.

• In Corel SCRIPT version 7.0, the GETCURRFOLDER function and the SETCURRFOLDERSETCURRFOLDER statement replace the CURRFOLDER statement.

Return value

Returns String

Example

SETCURRFOLDER "c:\corel\graphics8\scripts\"

folder$ = GETCURRFOLDER ( )

MyFile$ = "\MyScript.csc"

MyPathFile = folder$ & MyFile&

 Related Topics


CorelScriptTools.GetDateInfo

Sub GetDateInfo(ByVal Date As Date, ByRef Year As Long, ByRef Month As Long, ByRef Day As Long, ByRef DayOfWeek As Long)

CorelScriptTools

Description

Extracts the components of a date expression to numeric variables.

 Note

• GETDATEINFO can only accept a date value between January 1, 1980 (date serial number 29221) and December 31, 2099 (date serial number 73050). If a date outside this range is specified, an error occurs.

Parameters	Description

Date	Description of Date goes here [in]

Year	Lets you specify the numeric variable that is assigned the year component from the specified date expression. [out]

Month	Lets you specify the numeric variable that is assigned the month component from the specified date expression. [out]

Day	Lets you specify the numeric variable that is assigned the day component from the specified date expression. [out]

DayOfWeek	Lets you specify the numeric variable that is assigned the day of week component from the specified date expression. Sunday corresponds to 1, Monday to 2, and so on. [out]

Example

DIM TodayDate AS DATE

TodayDate = GETCURRDATE()

GETDATEINFO TodayDate, Y&, M&, D&, DW&

 Related Topics


CorelScriptTools.GetFileBox

Function GetFileBox([ByVal Filter As String = "All Files (*.*)|*.*"], [ByVal Title As String = ""], [ByVal Type As Long = 0], [ByVal File As String = ""], [ByVal Extension As String = ""], [ByVal Folder As String = ""], [ByVal Button As String = ""]) As String

CorelScriptTools

Description

This function displays a standard Windows File Open or File Save As dialog box. Both dialog boxes allow users to choose a file from the file system. The GETFILEBOX function returns the selected filename and its full path, or an empty string if the user chooses Cancel. The GETFILEBOX statement by itself does not open or save a file; it only returns a string corresponding to the selected file.

Parameters	Description

Filter	String expression specifying the filters to use in the dialog box. For the Open dialog box, the filters are listed in the Files of Type list box. For the Save As dialog box, the filters are listed in the Save as Type list box. [in]
Optional
Default value = "All Files (*.*)|*.*"

Title	String expression specifying the title to display in the dialog box. If not specified, "Open" is displayed for an Open dialog box and "Save As" is displayed for a Save As dialog box. [in]
Optional
Default value = ""

Type	Numeric expression specifying the type of dialog box to display::
0	File Open dialog box (default if omitted):
1	File Save dialog box: [in]
Optional
Default value = 0

File	String expression specifying the text to display in the File name text box of the dialog box. If not specified, the text box is empty. [in]
Optional
Default value = ""

Extension	String expression specifying the default extension to append to a File name if the user omits the extension. [in]
Optional
Default value = ""

Folder	String expression specifying the default folder used by the dialog box. If not specified, or the specified folder does not exist, the current folder is used. [in]
Optional
Default value = ""

Button	String expression specifying a button name to override the Open or Save button in the dialog box. If not specified, the button's name remains unchanged. [in]
Optional
Default value = ""

Return value

Returns String

Example

SETCURRFOLDER = "c:\COREL50\DRAW\samples" 'set the current folder

Filename$=GETFILEBOX("Included Scripts|*.csc|All Files|*.*", "Scripts included...", 0,"animals")

 Related Topics


CorelScriptTools.GetFolder

Function GetFolder([ByVal InitFolder As String = ""]) As String

CorelScriptTools

Description

This function displays a Windows Choose Folder dialog box. The Choose Folder dialog box returns the folder and path a user chooses as a string.

 Note

• If the Cancel button is clicked, an empty string is returned.

Parameters	Description

InitFolder	String expression specifying the default path and folder to display in the dialog box. If not specified, the active folder is used. [in]
Optional
Default value = ""

Return value

Returns String

Example

NewFolder$ = GETFOLDER("D:\Corel60")

SETCURRFOLDER = NewFolder$

The selected folder is passed to the string variable NewFolder. The SETCURRFOLDER statement sets the current folder to the folder name passed to NewFolder.

 Related Topics


CorelScriptTools.GetFont

Function GetFont(ByRef FaceName As String, ByRef PointSize As Long, ByRef Weight As Long, ByRef Italic As Boolean, ByRef Underline As Boolean, ByRef StrikeOut As Boolean, ByRef Red As Long, ByRef Green As Long, ByRef Blue As Long) As Boolean

CorelScriptTools

Description

Displays a standard Windows Font dialog box and returns the selected font settings.

The GET font function returns one of the following values:

• TRUE (-1) [image] the Cancel button was not clicked

• FALSE (0) [image] the Cancel button was clicked

Parameters	Description

FaceName	Lets you specify a string variable that is passed the name of the selected font. You can also use this variable to set an initial value. [in,out]

PointSize	Lets you specify a numeric variable that is passed the font size in points. You can also use this variable to set an initial value. This parameter uses non-fractional values [in,out]

Weight	Lets you specify a numeric variable that is passed the font's weight setting (number of inked pixels per 1000 pixels). Common values and their corresponding names include::
100	Thin:
200	Extra Light, Ultra Light:
300	Light:
400	Normal, Regular:
500	Medium:
600	Semi Bold, Demi Bold:
700	Bold:
800	Extra Bold, Ultra Bold:
900	Black, Heavy [in,out]

Italic	Lets you specify a numeric variable that is passed the font's italic setting: TRUE (-1) if this setting is enabled; FALSE (0) otherwise. [in,out]

Underline	Lets you specify a numeric variable that is passed the font's underline setting: TRUE (-1) if this setting is enabled; FALSE (0) otherwise. [in,out]

StrikeOut	Lets you specify a numeric variable that is passed the font's strike out setting: TRUE (-1) if this setting is enabled; FALSE (0) otherwise. [in,out]

Red	Lets you specify the numeric variable that is passed the Red (RGB color model) setting of the selected font's color (0 - 255). You can also use this variable to set an initial value. [in,out]

Green	Lets you specify the numeric variable that is passed the Green (RGB color model) setting of the selected font's color (0 - 255). You can also use this variable to set an initial value. [in,out]

Blue	Lets you specify the numeric variable that is passed the Blue (RGB color model) setting of the selected font's color (0 - 255). You can also use this variable to set an initial value. [in,out]

Return value

Returns Boolean

Example

GETFONT FN, PS, Wt, Italic, UL, SO, R, G, B

 Related Topics


CorelScriptTools.GetProcessInfo

Function GetProcessInfo(ByVal ProcessHandle As Long) As Long

CorelScriptTools

Description

This function returns the status of an executable.

Numeric variable that is passed a value that indicates whether an executable is running. If the executable is running, this variable is passed the value 259.

Parameters	Description

ProcessHandle	Numeric expression specifying the Windows Process Handle of an executable. Use the STARTPROCESSSTARTPROCESS function to determine an executable's Windows Process Handle. [in]

Return value

Returns Long

Example

launch = STARTPROCESS ("C:\WINDOWS\CALC.EXE")

... 'other script statements

... 'other script statements

... 'other script statements

Calc_Status = GETPROCESSINFO (launch)

 Related Topics


CorelScriptTools.GetScriptFolder

Function GetScriptFolder() As String

CorelScriptTools

Description

Returns the path and the folder where the executing script resides. If this function is used in a Corel SCRIPT Executable, it returns the path and folder where the Executable resides.

String variable that is passed the path and folder of an executing script or Executable.

 Note

• If the script has not been previously saved to disk or a network, this function returns an empty string.

Return value

Returns String

Example

folder = GETSCRIPTFOLDER ( )

 Related Topics


CorelScriptTools.GetTempFolder

Function GetTempFolder() As String

CorelScriptTools

Description

Returns the path and the folder of the system's Windows temporary folder.

String variable that is passed the path and folder of the system's Windows temporary folder.

Return value

Returns String

Example

t_folder = GETTEMPFOLDER ( )

 Related Topics


CorelScriptTools.GetTimeInfo

Sub GetTimeInfo(ByVal Time As Date, ByRef Hour As Long, ByRef Minute As Long, ByRef Second As Long)

CorelScriptTools

Description

Extracts the components of a time expression to numeric variables.

Parameters	Description

Time	Lets you specify the time expression to extract components from. [in]

Hour	Lets you specify the numeric variable that is assigned the hour component from the specified time expression. The number assigned is based on a 24-hour clock. For example, 16 is the numeric variable for 4pm. [out]

Minute	Lets you specify the numeric variable that is assigned the minute component from the specified time expression. [out]

Second	Lets you specify the numeric variable that is assigned the second component from the specified time expression. [out]

Example

DIM TodayTime AS DATE

TodayTime = GETCURRDATE()

GETTIMEINFO TodayTime, H&, M&, S&

 Related Topics


CorelScriptTools.GetType

Function GetType(ByVal Expression As Variant) As Long

CorelScriptTools

Description

Returns an expression's data type. In the case of variants, the data subtype is returned.

The GETTYPE function returns one of the following values:

• 0 [image] Empty variant

• 2 [image] Boolean

• 3 [image] Integer

• 4 [image] Long

• 5 [image] Single

• 6 [image] Double

• 7 [image] Date

• 8 [image] Currency

• 9 [image] String

Parameters	Description

Expression	Lets you specify the expression to use. [in]

Return value

Returns Long

Example

x% = 66 'integer data type

y# = 14 'long data type

Z = x / y

A = GETTYPE (x / y)

B = GETTYPE (3)

C = GETTYPE (3.3)

 Related Topics


CorelScriptTools.GetVersion

Function GetVersion(ByVal Option As Long) As Long

CorelScriptTools

Description

Returns the system or Corel SCRIPT version numbers.

The GETVERSION function returns one of the following values:

• Option 0 - Corel SCRIPT run-time interpreter:

• Option 10 - Corel SCRIPT compiler version:

• Option 30 - Windows platform:

• Option 31 - Windows major version number:

• Option 32 - Windows minor version number:

• Option 33 - Windows build number:

 Note

• For a script, Executable, DLL, or Corel Add-on created with Corel SCRIPT to run, the major version numbers for Corel SCRIPT (the compiler) and the Corel SCRIPT run-time interpreter (SCINTxx.DLL) must be the same or else an error will occur. A difference in the minor version numbers will not cause an error.

Parameters	Description

Option	Lets you specify the system or Corel SCRIPT component to query::
0	Corel SCRIPT run-time interpreter version (the SCINTxx.DLL file being used with the current session of Corel SCRIPT):
10	Corel SCRIPT compiler version number:
30	Windows platform:
31	Windows major version number:
32	Windows minor version number:
33	Windows build number [in]

Return value

Returns Long

Example

CS_version = GETVERSION(10)

MESSAGE "Corel SCRIPT major version number " & LEFT (CS_version, 2)

MESSAGE "Corel SCRIPT minor version number " & RIGHT (CS_version, 2)

 Related Topics


CorelScriptTools.GetWinHandle

Function GetWinHandle() As Long

CorelScriptTools

Description

Returns the window handle for the window that is running the script. For example, if you are running the script from the Corel SCRIPT Editor, GETWINHANDLE returns the Editor's Windows handle. If you run a script from CorelDRAW, GETWINHANDLE returns DRAW's Windows handle. This function is used in conjunction with DLL calls that require the window's handle.

Lets you specify a numeric variable that is passed the window's handle.

 Note

• If you run a Corel SCRIPT Executable, the GETWINHANDLE function returns 0.

Return value

Returns Long

Example

hand = GETWINHANDLE()

 Related Topics


CorelScriptTools.Kill

Function Kill(ByVal FileName As String) As Boolean

CorelScriptTools

Description

Deletes a file. This statement is the same as clicking File, Delete in the Windows Explorer or in My Computer in Windows 95.

 Note

• An open file cannot be deleted.

Parameters	Description

FileName	String expression specifying the filename to delete. You can use wild cards (* and ?) if you want to delete a group of files. For example, script*.* deletes all the files in the current folder beginning with script. Using script?.* deletes all the files in the current folder that begin with script and are followed by only one more character. [in]

Return value

Returns Boolean

Example

KILL "temp.out"

KILL "C:\MyDocs\temp.out"

 Related Topics


CorelScriptTools.LengthConvert

Function LengthConvert(ByVal FromUnit As Long, ByVal ToUnit As Long, ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a number from one length measurement to another.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

FromUnit	Any number from 1 to 7 that indicates the unit of measurement from which to convert.:
1	inches:
2	centimeters:
3	points:
4	Ciceros:
5	didots:
6	picas:
7	CorelDRAW and VENTURA units (tenths of a micron): [in]

ToUnit	Any number from 1 to 7 that indicates the unit of measurement to convert to::
1	inches:
2	centimeters:
3	points:
4	Ciceros:
5	didots:
6	picas:
7	CorelDRAW and VENTURA units (tenths of a micron): [in]

Value	Description of Value goes here [in]

Return value

Returns Double

Example

x_microns = LENGTHCONVERT(1, 7, 1)

 Related Topics


CorelScriptTools.Log

Function Log(ByVal Value As Double) As Double

CorelScriptTools

Description

Returns the base-10 logarithm of a number.

 Note

• The LOG function uses a base of 10. If another base is needed, use LOG(x)/LOG(b) formula where b is the base.

Parameters	Description

Value	Description of Value goes here [in]

Return value

Returns Double

Example

x = LOG(25)

y = LOG(5)

 Related Topics


CorelScriptTools.MkFolder

Function MkFolder(ByVal Folder As String) As Boolean

CorelScriptTools

Description

Creates a new folder.

The MKFOLDER function returns one of the following values:

• TRUE (-1) [image] the folder was created

• FALSE (0) [image] the folder was not created

Parameters	Description

Folder	String expression specifying the name of the folder to be created. Path information is optional. [in]

Return value

Returns Boolean

Example

MKFOLDER "work"

success = MKFOLDER ("work")

 Related Topics


CorelScriptTools.RegistryQuery

Function RegistryQuery(ByVal MainKey As Long, ByVal SubKey As String, ByVal Value As String) As Variant

CorelScriptTools

Description

Returns the value data of a specified value key in the system's Windows registry. This function can help you determine where programs and files are installed on a user's system. This type of information is important when creating scripts that are to run on different system setups.

Lets you specify the variable that is passed the value data of a specified value key in the Windows registry. Since this function can pass a string or numeric value, the variable you specify should be a variant. You can use the GETTYPE function to determine a variant's subtype.

 Note

• You cannot use this command to query binary values except those that can be converted to a number.

Parameters	Description

MainKey	Lets you specify the main registry value key to query::
0	HKEY_CLASSES_ROOT:
1	HKEY_CURRENT_USER:
2	HKEY_LOCAL_MACHINE:
3	HKEY_USERS:
4	HKEY_PERFORMANCE_DATA:
5	HKEY_CURRENT_CONFIG:
6	HKEY_DYN_DATA [in]

SubKey	Lets you specify the sub registry value key to query. This must be a complete key path. In Windows 95 for example, "SOFTWARE" is a complete path. [in]

Value	Lets you specify the registry value key to query. To specify a default value, use an empty string. Specify an empty string by using two quotation marks (""). [in]

Return value

Returns Variant

Example

Config_Ventura = REGISTRYQUERY (2, "SOFTWARE\Corel\Corel Ventura\7.0", "ConfigDir")

Arial_file = REGISTRYQUERY (2, "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts", "Arial (TrueType)")

YourName$ = REGISTRYQUERY(2,"SOFTWARE\Corel","UserName")

CompanyName$ = REGISTRYQUERY(2,"SOFTWARE\Corel","ORGANIZATION")

Phone$ = REGISTRYQUERY(2,"SOFTWARE\Corel","PHONENUMBER")

 Related Topics


CorelScriptTools.Rename

Function Rename(ByVal Src As String, ByVal Dst As String, [ByVal Overwrite As Long = 1]) As Boolean

CorelScriptTools

Description

The RENAME statement changes the name of a file or folder, or can be used to move a file. You cannot move a folder using the RENAME statement.

You can also use RENAME as a function: it returns TRUE (-1) if the RENAME operation is successful, FALSE (0) if is not.

Parameters	Description

Src	String expression specifying the name of the file or folder to move. file_folder1 can include drive and folder path specifics [image] if path specifics are not included, RENAME assumes the current folder. [in]

Dst	String expression specifying the name of the file where file_folder1 is to be moved. file_folder2 can include drive and folder path specifics [image] if path specifics are not included, RENAME assumes the current folder. [in]

Overwrite	If file_folder2 already exists, determines whether to overwrite the existing file (you cannot overwrite existing folders):
0 = rename and overwrite
1 = overwrite fails (default if omitted) [in]
Optional
Default value = 1

Return value

Returns Boolean

Example

' statement example

DIM x AS STRING

DIM y AS STRING

x = "C:\work\example1.vp"

y = "D:\work\example1.vp"

RENAME x, y, 0

' statement example

DIM x AS STRING

DIM y AS STRING

x = "C:\work\example1.cdr"

y = "C:\work\example2.cdr"

success = RENAME (x, y, 0)

 Related Topics


CorelScriptTools.RmFolder

Function RmFolder(ByVal Folder As String) As Boolean

CorelScriptTools

Description

Removes an existing folder. The folder must be empty before it can be deleted. You can also use RMFOLDER as a function: it returns TRUE (-1) if the folder was removed, FALSE (0) if it was not.

Parameters	Description

Folder	String expression specifying the name of the folder to remove. folderName can include drive specifics [image] if drive specifics are not included, RENAME assumes the current drive. [in]

Return value

Returns Boolean

Example

RMFOLDER "C:\TEMP\WORK"

success% = RMFOLDER "C:\TEMP\WORK"

 Related Topics


CorelScriptTools.ToCentimeters

Function ToCentimeters(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to centimeters.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xCM = TOCENTIMETERS (x)

yCM = TOCENTIMETERS (y)

 Related Topics


CorelScriptTools.ToCiceros

Function ToCiceros(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to ciceros.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xCiceros = TOCICEROS (x)

yCiceros = TOCICEROS (y)

 Related Topics


CorelScriptTools.ToDidots

Function ToDidots(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to didots.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xDidots = TODIDOTS (x)

yDidots = TODIDOTS (y)

 Related Topics


CorelScriptTools.ToInches

Function ToInches(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to inches.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xInch = TOINCHES (x)

yInch = TOINCHES (y)

Inches

 Related Topics


CorelScriptTools.ToPicas

Function ToPicas(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to picas.

 Note

• Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xPica = TOPICAS (x)

yPica = TOPICAS (y)

 Related Topics


CorelScriptTools.ToPoints

Function ToPoints(ByVal Value As Double) As Double

CorelScriptTools

Description

Converts a numeric value from tenths of a micron to points.

Parameters	Description

Value	Any numeric expression specifying the value to be converted. [in]

Return value

Returns Double

Example

.GetPosition (x,y)

xPoint = TOPOINTS (x)

yPoint = TOPOINTS (y)

 Related Topics


Document properties

Document     Legend

    ActiveFrame
    ActiveLayer
    ActiveWindow
    Application
    Background
    Channels
    ColorTable
      Dirty
      DpiX
      DpiY
    FileName
    FilePath
    Frames
    FullFileName
    Grid
    Guides
    IsMovie
    Layers
      LockTransparency
    Mask
    Mode
    MovieFrameCount
    MovieStartFrame
      Name
    Parent
    PDFSettings
    PrintSettings
    Rulers
    SizeHeight
    SizeWidth
    Tools
      VirtualHeight
      VirtualWidth
    Windows


Document methods

Document     Legend

   Activate
   AddBackground
   ApplyICCProfile
   Checkpoint
   Close
   ConvertTo
   ConvertToBW
   ConvertToDuotone
   ConvertToMovie
   ConvertToNTSC
   ConvertToPAL
   ConvertToPaletted
   ConvertToPaletted2
   CreateGuide
   CreatePalette
   CreatePaletteFromVisible
   Crop
   CropToColor
   CropToMask
   DeskewCrop
   Duplicate
   Export
   Flip
   PaperSize
   PrintOut
   PublishToPDF
   Redo
   Repeat
   Resample
   RestoreCheckpoint
   Revert
   Rotate
   Save
   SaveAs
   SelectMovieFrames
   SetResolution
   Split
   Undo


Document

Class Document

Properties     Methods     Referenced By

The Document class defines the characteristics of document objects and describes the look and behavior of the collection objects through its properties and methods. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

New documents use the preset options built into the Corel PHOTO-PAINT application. Every new document allows you to save settings so that new images opened in Corel PHOTO-PAINT open to the settings established in this Document page. These options include:

• Options set in the Options dialog box

• Toolbar settings

• Docker window

• Color palette

You can add, delete, and rename pages in documents as well as create web documents. Detailed information about each Corel PHOTO-PAINT document can be viewed and saved in a text file within a word processing application for future use.

 Related Topics


Document.ActiveFrame

Property ActiveFrame As Frame

Document

Description

The ActiveFrame property returns a value associated with the active frame of a document in Corel PHOTO-PAINT.A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

The ActiveFrame property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.ActiveLayer

Property ActiveLayer As Layer

Document

Description

The ActiveLayer property returns a value associated with the active layer of a document in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

The ActiveLayer property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.ActiveWindow

Property ActiveWindow As Window

Document

Description

The ActiveWindow property returns a value associated with the active window of a document in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

The ActiveWindow property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Application

Property Application As Application

Document

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Document.Background

Property Background As Background

Document

Description

The Background property returns a value associated with the image background of a document in Corel PHOTO-PAINT. When you create an image, you specify the color mode and the background color you want to use. The color mode defines the number of colors in a bitmap image. For example, if you choose the Black-and-White color mode, there are two colors in the image (black and white). By default, the background is white; however, you can choose another color.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Channels

Property Channels As Channels

Document

Description

The Channels property returns a value associated with the Channels collection in a document in Corel PHOTO-PAINT. A channel is an 8-bit grayscale image that stores color or mask information for another image. There are two types of channels: color and mask. Images have one color channel for each component of the color model on which they are based. Each channel contains the color information for that component. Mask (alpha) channels store masks that you create for your images and are saved with images in formats that support mask information (e.g., .CPT).

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.ColorTable

Property ColorTable As ColorTable

Document

Description

The ColorTable property returns a value associated with a color table in a document in Corel PHOTO-PAINT. A color table is a feature in Corel PHOTO-PAINT that edits colors in a paletted image. A color table lets you edit a color in a paletted color image.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Dirty

Property Dirty As Boolean

Document

Description

The Dirty property returns or sets a True or False value that allows users to determine if the document is dirty and if so, set the dirty flag in the document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property determines whether the document was modified after it was last saved.

Example

Example of usage goes here

Code line

 Related Topics


Document.DpiX

Property DpiX As Long

Document

Description

The DpiX property returns or set the horizontal resolution of the active image, in dots per inch (dpi) in a document in Corel PHOTO-PAINT. Resolution refers to the amount of detail and information that an image file contains, as well as the level of detail that an input, output or display device is capable of producing. When you work with bitmaps, resolution affects the quality of your final output and the file size.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.DpiY

Property DpiY As Long

Document

Description

The DpiY property returns or set the vertical resolution of the active image, in dots per inch (dpi) in a document in Corel PHOTO-PAINT. Resolution refers to the amount of detail and information that an image file contains, as well as the level of detail that an input, output or display device is capable of producing. When you work with bitmaps, resolution affects the quality of your final output and the file size.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.FileName

Property FileName As String

Document

Description

The FileName property returns a string value associated with the name of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This value returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.FilePath

Property FilePath As String

Document

Description

The FilePath property returns a string value associated with the computer location of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This value returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Frames

Property Frames As Frames

Document

Description

The Frames property returns a value associated with the FramesIDH collection in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.FullFileName

Property FullFileName As String

Document

Description

The FullFileName property returns a string value associated with the file path and file name of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This value returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Grid

Property Grid As Grid

Document

Description

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Guides

Property Guides As Guides

Document

Description

The Guides property returns a value associated with the Guides collection of a document in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.IsMovie

Property IsMovie As Boolean

Document

Description

The IsMove property returns a True or False value that indicates whether or not a document is a move in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Layers

Property Layers As Layers

Document

Description

The Layers property returns a value associated with the Layers collection of a document in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in a drawing. You can control how objects in your drawing overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex drawing.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.LockTransparency

Property LockTransparency As Boolean

Document

Description

The LockTransparency property returns or sets a True or False value that indicates whether or a transparency in a document is locked in Corel PHOTO-PAINT. Transparency is the ability to see through an item. The opposite of transparent is opaque. Setting lower levels of transparency causes higher levels of opacity and less visibility of the underlying items or image.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Mask

Property Mask As Mask

Document

Description

The Mask property returns a value associated with a mask object in a document in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Mode

Property Mode As cdrImageMode

Document

Description

The Mode property returns the image mode in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns cdrImageMode and is a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.MovieFrameCount

Property MovieFrameCount As Long

Document

Description

The MovieFrameCount returns the total number of movie frames in a document in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.MovieStartFrame

Property MovieStartFrame As Long

Document

Description

The MovieStartFrame returns the index number of the first frame in a document in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Name

Property Name As String

Document

Description

The Name property returns or sets the name of the current document in Corel PHOTO-PAINT. The name of the current document appears in the title bar of the main application window after the application name.

The Name property returns a String value.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Parent

Property Parent As Documents

Document

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Document.PDFSettings

Property PDFSettings As PDFVBASettings

Document

Description

Gets PDF settings for the specified document

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.PrintSettings

Property PrintSettings As PrintSettings

Document

Description

Gets Print Settings

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Rulers

Property Rulers As Rulers

Document

Description

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.SizeHeight

Property SizeHeight As Long

Document

Description

The SizeHeight property returns or sets the height of a document in Corel PHOTO-PAINT, measured in pixels. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.SizeWidth

Property SizeWidth As Long

Document

Description

The SizeWidth property returns or sets the width of a document in Corel PHOTO-PAINT, measured in pixels. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Tools

Property Tools As Tools

Document

Description

The Tools property returns a value associated with the Tools collection in a document in Corel PHOTO-PAINT. The Corel PHOTO-PAINT Toolbox contains tools for creating and manipulating objects and selections in your image. The zoom tools let you view specific areas of your image, and the shaping and painting tools let you modify your image. The Toolbox also contains tools that let you apply modifications interactively.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.VirtualHeight

Property VirtualHeight As Long

Document

Description

The VirtualHeight property returns or sets the virtual, or relative, height of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.VirtualWidth

Property VirtualWidth As Long

Document

Description

The VirtualWIdth property returns or sets the virtual, or relative, width of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Windows

Property Windows As Windows

Document

Description

The Windows property returns a value associated with the Windows collection in a document in Corel PHOTO-PAINT.A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Document.Activate

Sub Activate()

Document

Description

The Activate method opens a document in the main application window in Corel PHOTO-PAINT, if the window is not currently open, and makes the document active. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.AddBackground

Sub AddBackground([ByVal Color As Color = Nothing])

Document

Description

The AddBackground method adds a background, if there is not one, to a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Color	Sets the color of the added background. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Document.ApplyICCProfile

Sub ApplyICCProfile(ByVal FileName As String)

Document

Description

The ApplyICCProfile method applies the specified ICC profile to a document in Corel PHOTO-PAINT. The ICC profile is information based on the International Color Consortium (ICC), an organization that sets standards for device characterization.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

FileName	Specifies the computer location of the ICC profile. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.Checkpoint

Sub Checkpoint()

Document

Description

The Checkpoint method stores the current state of a document in Corel PHOTO-PAINT. A checkpoint is a marked stage in your image's development to which you can return later.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Close

Sub Close()

Document

Description

The Close method closes the active document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertTo

Sub ConvertTo(ByVal Mode As cdrImageMode, [ByVal Flatten As Boolean = False])

Document

Description

The ConvertTo method converts a document into another mode in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Mode	Sets the new mode in the document. This value returns cdrImageMode. [in]

Flatten	Sets a True of False value that indicates whether or not to flatten the document. This value is optional and the default value is False. Values range from 0 to 99. [in]
Optional
Default value = False

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToBW

Sub ConvertToBW(ByVal RenderType As cdrRenderType, [ByVal Intensity As Long = 100], [ByVal Threshold As Long = 128], [ByVal Halftone As cdrHalftoneType = cdrHalftoneSquare (0)], [ByVal HalftoneAngle As Double = 45], [ByVal HalftoneSize As Long = 0])

Document

Description

Converts the document into the black-and-white mode

Parameters	Description

RenderType	Description of RenderType goes here [in]

Intensity	Description of Intensity goes here [in]
Optional
Default value = 100

Threshold	Description of Threshold goes here [in]
Optional
Default value = 128

Halftone	Description of Halftone goes here [in]
Optional
Default value = cdrHalftoneSquare (0)

HalftoneAngle	Description of HalftoneAngle goes here [in]
Optional
Default value = 45

HalftoneSize	Description of HalftoneSize goes here [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToDuotone

Sub ConvertToDuotone([ByVal DuotoneType As cdrDuotoneType = cdrMonotone (0)], [ByVal Color1 As Color = Nothing], [ByVal Color2 As Color = Nothing], [ByVal Color3 As Color = Nothing], [ByVal Color4 As Color = Nothing])

Document

Description

Converts the document into the duotone mode

Parameters	Description

DuotoneType	Description of DuotoneType goes here [in]
Optional
Default value = cdrMonotone (0)

Color1	Description of Color1 goes here [in]
Optional
Default value = Nothing

Color2	Description of Color2 goes here [in]
Optional
Default value = Nothing

Color3	Description of Color3 goes here [in]
Optional
Default value = Nothing

Color4	Description of Color4 goes here [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToMovie

Function ConvertToMovie() As Boolean

Document

Description

The ConvertToMovie method sets a True or False value that indicates whether or not to convert a document into a movie in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToNTSC

Sub ConvertToNTSC()

Document

Description

The ConvertToNTSC method converts the color in a 24-bit RGB image to colors that are suitable for NTSC standard television reproduction in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToPAL

Sub ConvertToPAL()

Document

Description

The ConvertToPAL method converts the color in a 24-bit RGB image to colors that are suitable for PAL standard television reproduction in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToPaletted

Sub ConvertToPaletted(ByVal PaletteType As cdrImagePaletteType, [ByVal Dithering As cdrDitherType = cdrDitherNone (0)], [ByVal DitherIntensity As Long = 100], [ByVal Smoothing As Long = 0], [ByVal NumColors As Long = 256], [ByVal Flatten As Boolean = False], [ByVal KeyColor As Color = Nothing], [ByVal KeyColorImportance As Long = 20], [ByVal SensitivityL As Long = 500], [ByVal SensitivityA As Long = 300], [ByVal SensitivityB As Long = 300], [ByVal PaletteFileName As String])

Document

Description

Converts the document into the paletted mode

Parameters	Description

PaletteType	Description of PaletteType goes here [in]

Dithering	Description of Dithering goes here [in]
Optional
Default value = cdrDitherNone (0)

DitherIntensity	Description of DitherIntensity goes here [in]
Optional
Default value = 100

Smoothing	Description of Smoothing goes here [in]
Optional
Default value = 0

NumColors	Description of NumColors goes here [in]
Optional
Default value = 256

Flatten	Description of Flatten goes here [in]
Optional
Default value = False

KeyColor	Description of KeyColor goes here [in]
Optional
Default value = Nothing

KeyColorImportance	Description of KeyColorImportance goes here [in]
Optional
Default value = 20

SensitivityL	Description of SensitivityL goes here [in]
Optional
Default value = 500

SensitivityA	Description of SensitivityA goes here [in]
Optional
Default value = 300

SensitivityB	Description of SensitivityB goes here [in]
Optional
Default value = 300

PaletteFileName	Description of PaletteFileName goes here [in]
Optional

Example

Example of usage goes here

Code line

 Related Topics


Document.ConvertToPaletted2

Sub ConvertToPaletted2([ByVal PaletteOptions As StructPaletteOptions])

Document

Description

Parameters	Description

PaletteOptions	Description of PaletteOptions goes here [in]
Optional

Example

Example of usage goes here

Code line

 Related Topics


Document.CreateGuide

Function CreateGuide(ByVal Type As pntGuideType, ByVal PositionX As Long, ByVal PositionY As Long) As Guide

Document

Description

The CreateGuide method creates a new guideline in a document in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Type	Sets the guideline type of the new guideline. This value returns pntGuideType. [in]

PositionX	Sets the horizontal position of the guideline, in document units. [in]

PositionY	Sets the vertical position of the guideline, in document units. [in]

Return value

Returns Guide

Example

Example of usage goes here

Code line

 Related Topics


Document.CreatePalette

Function CreatePalette(ByVal Name As String, [ByVal FileName As String], [ByVal Overwrite As Boolean = False]) As Palette

Document

Description

The CreatePalette method creates a new palette in a document in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Name	Sets a string value that names and uniquely identifies the new palette. [in]

FileName	Sets the file name of the new palette. This value is optional. [in]
Optional

Overwrite	Sets a True or False value that indicates if the new palette replaces another palette with the same file name. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Palette

Example

Example of usage goes here

Code line

 Related Topics


Document.CreatePaletteFromVisible

Function CreatePaletteFromVisible(ByVal Name As String, [ByVal FileName As String], [ByVal Overwrite As Boolean = False]) As Palette

Document

Description

The CreatePaletteFromVisible method creates a new color palette from the color available in the visible layer in a document in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Name	Sets a string value that names and uniquely identifies the new palette. [in]

FileName	Sets the file name of the new palette. This value is optional. [in]
Optional

Overwrite	Sets a True or False value that indicates if the new palette replaces another palette with the same file name. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Palette

Example

Example of usage goes here

Code line

 Related Topics


Document.Crop

Sub Crop(ByVal Left As Long, ByVal Top As Long, ByVal Width As Long, ByVal Height As Long)

Document

Description

The Crop method crops a document to a specified rectangle shape in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Left	Specifies the left position of the rectangle shape used to crop the document. [in]

Top	Specifies the top position of the rectangle shape used to crop the document. [in]

Width	Specifies the width of the rectangle shape used to crop the document. [in]

Height	Specifies the height of the rectangle shape used to crop the document. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.CropToColor

Sub CropToColor(ByVal Color As Color, [ByVal Tolerance As pntToleranceMode = pntToleranceNormal (0)], [ByVal NormalLevel As Long = 0], [ByVal Hue As Long = 0], [ByVal Saturation As Long = 0], [ByVal Brightness As Long = 0])

Document

Description

The CropToColor method crops a specific color border surrounding an image to the point where a different colored pixel is encountered in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Color	Specifies the color of the crop in the document. [in]

Tolerance	Sets the mode of tolerance in the crop. This value returns pntToleranceMode. This value is optional and the default value is pntToleranceNormal (0). [in]
Optional
Default value = pntToleranceNormal (0)

NormalLevel	Description of NormalLevel goes here [in]
Optional
Default value = 0

Hue	Sets the hue level of the new color. This value is optional and the default value is 0. Hue is the property of a color that allows us to classify it by its name. For example, blue, green, and red are all hues. [in]
Optional
Default value = 0

Saturation	Sets the saturation level of the new color. This value is optional and the default value is 0. Saturation is the purity or vividness of a color, expressed as the absence of white. A color that has 100% saturation contains no white. A color with 0% saturation is a shade of gray. [in]
Optional
Default value = 0

Brightness	Sets the brightness level of the new color. This value is optional and the default value is 0. Brightness is the amount of light that is transmitted or reflected from a given pixel. In the HSB color model, brightness is a measure of how much white a color contains. In this case, a brightness value of 0 produces black and a brightness value of 255 produces white. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Document.CropToMask

Sub CropToMask()

Document

Description

The CropToMask method crops the selected image to the bounding box of the current mask in a document in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.DeskewCrop

Sub DeskewCrop(ByVal Angle As Double, ByVal Width As Long, ByVal Height As Long, ByVal CenterX As Long, ByVal CenterY As Long)

Document

Description

The DeskewCrop method crops an image. If the angle is set to a value other than 0, the image is also deskewed in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Angle	Sets the angle of the crop. [in]

Width	Sets the width of the crop. [in]

Height	Sets the height of the crop. [in]

CenterX	Sets the horizontal position of the center of the crop image. [in]

CenterY	Sets the vertical position of the center of the crop image. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.Duplicate

Function Duplicate(ByVal FileName As String, [ByVal Flatten As Boolean = False]) As Document

Document

Description

The Duplicate method creates a copy of the image and assigns it the specified name in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

FileName	Specifies a new file name for the duplicated document. [in]

Flatten	Sets a True or False value that indicates whether or not to flatten the new document. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Document

Example

Example of usage goes here

Code line

 Related Topics


Document.Export

Function Export(ByVal FileName As String, ByVal Filter As cdrFilter, [ByVal Options As StructSaveOptions = Nothing], [ByVal PaletteOptions As StructPaletteOptions]) As Object

Document

Description

Parameters	Description

FileName	Description of FileName goes here [in]

Filter	Description of Filter goes here [in]

Options	Description of Options goes here [in]
Optional
Default value = Nothing

PaletteOptions	Description of PaletteOptions goes here [in]
Optional

Return value

Returns Object

Example

Example of usage goes here

Code line

 Related Topics


Document.Flip

Sub Flip(ByVal Axes As cdrFlipAxes)

Document

Description

The Flip method flips a document horizontally and/or vertically in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Axes	Sets the type of flip in the document. This value returns cdrFlipAxes. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.PaperSize

Sub PaperSize(ByVal Width As Long, ByVal Height As Long, [ByVal OffsetX As Long = 0], [ByVal OffsetY As Long = 0], [ByVal Color As Color = Nothing])

Document

Description

The PaperSize method adjusts the size of the paper behind an image using absolute width and height values. The image can be repositioned on the paper by setting a placement position in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Width	Sets the width of the paper. [in]

Height	Sets the height of the paper. [in]

OffsetX	Sets the horizontal offset value of the paper. This value is optional and the default value is False. [in]
Optional
Default value = 0

OffsetY	Sets the vertical offset value of the paper. This value is optional and the default value is False. [in]
Optional
Default value = 0

Color	Sets the paper color. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Document.PrintOut

Sub PrintOut()

Document

Description

The PrintOut method prints a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.PublishToPDF

Sub PublishToPDF(ByVal FileName As String)

Document

Description

Publishes the specified document to PDF

Parameters	Description

FileName	Description of FileName goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.Redo

Sub Redo()

Document

Description

The Redo method reverses the last Undo operation performed in the active document of Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Repeat

Sub Repeat()

Document

Description

The Repeat method repeats the last operations performed in the active document of Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Resample

Sub Resample([ByVal Width As Long = 0], [ByVal Height As Long = 0], [ByVal AntiAlias As Boolean = True])

Document

Description

The Resample method adjusts the dimensions and resolution of an image document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Width	Sets the new width of the document. This value is optional and the default value is 0. This value is measured in pixels. [in]
Optional
Default value = 0

Height	Sets the new height of the document. This value is optional and the default value is 0. This value is measured in pixels. [in]
Optional
Default value = 0

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not document images with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Document.RestoreCheckpoint

Sub RestoreCheckpoint()

Document

Description

The RestoreCheckpoint method restores the document as it was during the last checkpoint in Corel PHOTO-PAINT. A checkpoint is a marked stage in your image's development to which you can return later.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Revert

Sub Revert()

Document

Description

The Revert method opens the last saved version of the document from disk in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.Rotate

Sub Rotate(ByVal Angle As Double, [ByVal Clip As Boolean = False], [ByVal AntiAlias As Boolean = True], [ByVal Color As Color = Nothing])

Document

Description

The Rotate method rotates the image document to a specified degree in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Angle	Sets the angle of rotation, in degrees, to rotate the document. [in]

Clip	Sets a True or False value that indicates whether or not the document is clipped upon rotation. This value is optional and the default value is False. [in]
Optional
Default value = False

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not document images with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Color	Sets the color in the document. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Example

Example of usage goes here

Code line

 Related Topics


Document.Save

Sub Save()

Document

Description

The Save method saves the document using its current name and location in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Document.SaveAs

Function SaveAs(ByVal FileName As String, ByVal Filter As cdrFilter, [ByVal Options As StructSaveOptions = Nothing]) As Object

Document

Description

The SaveAs method saves the document under a new name or in a different location in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

FileName	Sets the new file name for the saved document. [in]

Filter	Sets the filter to use when saving the document. This value returns cdrFilter. [in]

Options	Description of Options goes here [in]
Optional
Default value = Nothing

Return value

Returns Object

Example

Example of usage goes here

Code line

 Related Topics


Document.SelectMovieFrames

Sub SelectMovieFrames(ByVal Start As Long, ByVal End As Long)

Document

Description

The SelectMovieFrames method selects a range of movie frames in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Start	Specifies the first frame in the range of selection frames. [in]

End	Specifies the last frame in the range of selection frames. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.SetResolution

Sub SetResolution(ByVal NewDPI As Long)

Document

Description

The SetResolution methods sets the resolution of the active image document in dots per inch (dpi) in Corel PHOTO-PAINT. Resolution refers to the amount of detail and information that an image file contains, as well as the level of detail that an input, output or display device is capable of producing. When you work with bitmaps, resolution affects the quality of your final output and the file size.

A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

NewDPI	Sets a new resolution value in the document. [in]

Example

Example of usage goes here

Code line

 Related Topics


Document.Split

Function Split(ByVal Mode As pntSplitMode) As Documents

Document

Description

The Split method separates an image document into the color channels corresponding to the specified color model in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Parameters	Description

Mode	Sets the split mode in the document. This value returns pntSplitMode. [in]

Return value

Returns Documents

Example

Example of usage goes here

Code line

 Related Topics


Document.Undo

Sub Undo()

Document

Description

The Undo method reverses the last operation performed in the active document of Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

Example

Example of usage goes here

Code line

 Related Topics


Documents properties

Documents     Legend

    Application
    Count
  Item
    Parent


Documents

Class Documents

Properties     Referenced By

The Documents class defines the characteristics of Documents collection objects and describes the look and behavior of the collection objects through its properties and methods. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A document page is often referred to as a page. You can access any page in a multi-page document by clicking on a page tab in the Navigator of the Image Window. Each page in a multi-page document is accessible through the Navigator, located in the bottom-left corner of the Image Window. The Navigator allows you to move through your document quickly and shows the total number of pages in your image and the number of the page currently displayed. You can move to a page in your document by clicking that page number in the Navigator.

New documents use the preset options built into the Corel PHOTO-PAINT application. Every new document allows you to save settings so that new images opened in Corel PHOTO-PAINT open to the settings established in this Document page. These options include:

• Options set in the Options dialog box

• Toolbar settings

• Docker window

• Color palette

You can add, delete, and rename pages in documents as well as create web documents. Detailed information about each Corel PHOTO-PAINT document can be viewed and saved in a text file within a word processing application for future use.

 Related Topics


Documents.Application

Property Application As Application

Documents

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub DocApp()

With Documents

 MsgBox .Application.Version

End With

End Sub

 Related Topics


Documents.Count

Property Count As Long

Documents

Description

The Count property returns the number of document objects in the Documents collection of Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

The Count property returns a Read-Only value.

Read-Only

Example

The following code example displays the number of documents in the Documents collection in a message box:

Sub DocsCount()

With Documents

 MsgBox .Count

End With

End Sub

 Related Topics


Documents.Item

Property Item(ByVal Index As Long) As Document

Documents

Description

The Item property returns a value associated with the index number of a document in the Documents collection of Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

Documents(2) refers to the second effect in the Documents collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Documents.Item(2) is the same as Documents(2) - they both reference the second document in the Documents collection.

You must reference a document in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each document in a Documents collection; it uniquely identifies each member of the collection. [in]

Example

The following code example sets a new name for the first document in the Documents collection in Corel PHOTO-PAINT. The new document name displays in a message box:

Sub DocsItem()

With Documents

 .Item(1).Name = "Corel PHOTO-PAINT_Document"

End With

End Sub

 Related Topics


Documents.Parent

Property Parent As Application

Documents

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the Documents collection's parent layer in a message box:

Sub DocParent()

With Documents

 MsgBox .Parent.ActiveLayer.Name

End With

End Sub

 Related Topics


DropShadow properties

DropShadow     Legend

    Angle
    Application
    Color
    Fade
    Feather
    FeatherEdge
    FeatherType
    Offset
    Opacity
    Parent
    PerspectiveStretch
    Type


DropShadow methods

DropShadow     Legend

   Combine
   Delete
   Split


DropShadow

Class DropShadow

Properties     Methods     Referenced By

The DropShadow class defines the characteristics of drop shadow objects and describes the look and behavior of the objects through its properties and methods.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

Additionally, you can edit drop shadows to customize their effects. For example, you can change the color of a drop shadow. The feathering and opacity values you specify are added cumulatively to the transparency attributes already contained in the original object. When you choose a feather direction other than Average, you can also change the shape of the feathered pixels by choosing Linear or Curved from the Feather Type list box. When you create a drop shadow of an object, an icon appears next to the object thumbnail in the Objects Docker window. The drop shadow of an object automatically changes to mirror changes made to the shape or transparency of the object.

You can also change the opacity of a shadow in the Image Window by dragging the opacity node on the direction arrow. You can also choose a color for the shadow by double-clicking the outlined direction node of the shadow.

 Related Topics


DropShadow.Angle

Property Angle As Double

DropShadow

Description

The Angle returns or sets a value that specifies the angle at which the shadow lies in relation to the object. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Application

Property Application As Application

DropShadow

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


DropShadow.Color

Property Color As Color

DropShadow

Description

The Color property returns the color of a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Fade

Property Fade As Long

DropShadow

Description

The Fade property returns the fade value of a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

The Fade property specifies the percentage by which the shadow fades as it moves away from the object. You cannot change the fade level of a drop shadow that has a Flat perspective.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Feather

Property Feather As Long

DropShadow

Description

The Feather property returns the feather length for a drop shadow in Corel PHOTO-PAINT. You can change a drop shadow's feathering edge style, the feathering direction, as well as the level of feathering. You can type values between 0 and 100. Low values create a more subtle feathering effect, while high values create a more pronounced effect.

Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.FeatherEdge

Property FeatherEdge As pntEdgeType

DropShadow

Description

The FeatherEdge property returns the feather edge for a drop shadow in Corel PHOTO-PAINT. You can change a drop shadow's feathering edge style, the feathering direction, as well as the level of feathering. You can type values between 0 and 100. Low values create a more subtle feathering effect, while high values create a more pronounced effect.

Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns a Read-Only value of cdrEdgeType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.FeatherType

Property FeatherType As pntFeatherType

DropShadow

Description

The FeatherType property returns the feather type for a drop shadow in Corel PHOTO-PAINT. You can change a drop shadow's feathering edge style, the feathering direction, as well as the level of feathering. You can type values between 0 and 100. Low values create a more subtle feathering effect, while high values create a more pronounced effect.

Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns Read-Only value of cdrFeatherType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Offset

Property Offset As Double

DropShadow

Description

The Offset property returns the flat offset value of a drop shadow in Corel PHOTO-PAINT. The offset value sets the distance between the drop shadow effect and its control object, based on the units of measurement of the image.

By adding drop shadows, you create the illusion of depth between objects. You can add drop shadows to most objects (or groups of objects) you create using Corel PHOTO-PAINT, including Artistic text, Paragraph text, and bitmap images. However, you cannot add drop shadows to link groups such as blended objects, contoured objects, beveled objects, extruded objects, or other drop shadows.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Opacity

Property Opacity As Long

DropShadow

Description

The Opacity property returns the opacity value of a drop shadow in Corel PHOTO-PAINT. Opacity determines the intensity of a drop shadow. You can type values between 0 and 100. Low values create a less opaque drop shadow, while high values create a more opaque drop shadow.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Parent

Property Parent As Object

DropShadow

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


DropShadow.PerspectiveStretch

Property PerspectiveStretch As Double

DropShadow

Description

The PerspectiveStretch returns the feather perspective stretch value in a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Type

Property Type As pntDropShadowType

DropShadow

Description

The Type property returns the drop shadow type in a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

This property returns cdrDropShadowType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Combine

Sub Combine()

DropShadow

Description

The Combine method combines a drop shadow effect with an object in Corel PHOTO-PAINT. When you combine objects, you permanently create one object from multiple objects. You can also combine objects with the background to decrease the file size of an image. When you combine objects with the background, they no longer float above the rest of the image, and they cannot be selected or changed individually.

By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Delete

Sub Delete()

DropShadow

Description

The Delete method deletes a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

Example

Example of usage goes here

Code line

 Related Topics


DropShadow.Split

Function Split() As Layer

DropShadow

Description

The Split method creates a new object with a drop shadow in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

Return value

Returns Layer

Example

Example of usage goes here

Code line

 Related Topics


Floater properties

Floater     Legend

    Application
    Parent
      PositionX
      PositionY
    SizeHeight
    SizeWidth


Floater methods

Floater     Legend

   CopyToClipboard
   CutToClipboard
   Defloat
   Delete
   GetPosition
   Move
   SetPosition


Floater

Class Floater

Properties     Methods     Referenced By

The Floater class defines the characteristics of floater objects and describes the look and behavior of the application through its properties and methods.

A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

 Related Topics


Floater.Application

Property Application As Application

Floater

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Floater.Parent

Property Parent As Document

Floater

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Floater.PositionX

Property PositionX As Long

Floater

Description

The PositionX property returns or sets the horizontal position of a floating object's center in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Example

Example of usage goes here

Code line

 Related Topics


Floater.PositionY

Property PositionY As Long

Floater

Description

The PositionY property returns or sets the vertical position of a floating object's center in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Example

Example of usage goes here

Code line

 Related Topics


Floater.SizeHeight

Property SizeHeight As Long

Floater

Description

The SizeHeight property returns or sets the height of a floater object in Corel PHOTO-PAINT, measured in documents units. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Floater.SizeWidth

Property SizeWidth As Long

Floater

Description

The SizeWidth property returns or sets the width of a floater object in Corel PHOTO-PAINT, measured in documents units. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Floater.CopyToClipboard

Sub CopyToClipboard()

Floater

Description

The CopyToClipboard method copies the contents of a floating selection in Corel PHOTO-PAINT into the system clipboard. The clipboard is a temporary storage area that is used to hold cut or copied information. The clipboard is always present in Windows and it stores information until it is replaced by another object or selection that has been cut or copied, or until you quit the current session of Windows.

A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Copying to the clipboard leaves the floating selection unchanged in Corel PHOTO-PAINT.

Example

Example of usage goes here

Code line

 Related Topics


Floater.CutToClipboard

Sub CutToClipboard()

Floater

Description

The CutToClipboard method cuts the contents of a floating selection in Corel PHOTO-PAINT into the system clipboard. The clipboard is a temporary storage area that is used to hold cut or copied information. The clipboard is always present in Windows and it stores information until it is replaced by another object or selection that has been cut or copied, or until you quit the current session of Windows.

A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Cutting to the clipboard removes the floating selection from Corel PHOTO-PAINT.

Example

Example of usage goes here

Code line

 Related Topics


Floater.Defloat

Sub Defloat()

Floater

Description

The Defloat method defloats the floater object in Corel PHOTO-PAINT. Defloating merges the pixels of the floating selection and its underlying image.

A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Example

Example of usage goes here

Code line

 Related Topics


Floater.Delete

Sub Delete()

Floater

Description

The Delete method deletes the floater object in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Example

Example of usage goes here

Code line

 Related Topics


Floater.GetPosition

Sub GetPosition(ByRef PositionX As Long, ByRef PositionY As Long)

Floater

Description

The GetPosition method gets the center point of a floater object in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Parameters	Description

PositionX	Gets the horizontal position of the floater's center point, in document units. [out]

PositionY	Gets the vertical position of the floater's center point, in document units. [out]

Example

Example of usage goes here

Code line

 Related Topics


Floater.Move

Sub Move(ByVal Dx As Long, ByVal Dy As Long)

Floater

Description

The Move method changes the position of a floater object by moving it a specified distance from its original location in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Parameters	Description

Dx	The Dx parameter specifies the horizontal distance to move a floater with the Move method. Delta refers to a limited incremental value in a variable. [in]

Dy	The Dy parameter specifies the vertical distance to move a floater with the Move method. Delta refers to a limited incremental value in a variable. [in]

Example

Example of usage goes here

Code line

 Related Topics


Floater.SetPosition

Sub SetPosition(ByVal PositionX As Long, ByVal PositionY As Long)

Floater

Description

The SetPosition method sets the center point of a floater object in Corel PHOTO-PAINT. A floater is a floating selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

Parameters	Description

PositionX	Sets the horizontal position of the floater's center point, in document units. [in]

PositionY	Sets the vertical position of the floater's center point, in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frame properties

Frame     Legend

    Application
    Background
      Delay
    Index
    Parent


Frame methods

Frame     Legend

   Activate
   Delete
   Move


Frame

Class Frame

Properties     Methods     Referenced By

The Frame class defines the characteristics of frame objects and describes the look and behavior of the application through its properties and methods. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

The Frame filter supports all color modes except 48-bit RGB, 16-bit grayscale, paletted, and black-and-white.

 Related Topics


Frame.Application

Property Application As Application

Frame

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Frame.Background

Property Background As Background

Frame

Description

The Background property returns a value associated with the background of a frame in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Frame.Delay

Property Delay As Long

Frame

Description

The Delay property returns or sets the frame rate of a frame in Corel PHOTO-PAINT. Frame rate is the amount of time that a movie frame appears on the screen. You can assign a display length to individual frames or to all the frames in a movie at once. Changing the frame rate lets you increase or decrease the speed of moving objects from one frame to another.

A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Example

Example of usage goes here

Code line

 Related Topics


Frame.Index

Property Index As Long

Frame

Description

The Index property returns a value associated with a frame object in the Frames collection of Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Frame.Parent

Property Parent As Frames

Frame

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Frame.Activate

Sub Activate()

Frame

Description

The Activate method activates a frame in Corel PHOTO-PAINT, making it the active frame in the application. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Example

Example of usage goes here

Code line

 Related Topics


Frame.Delete

Sub Delete()

Frame

Description

The Delete method deletes a frame in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Example

Example of usage goes here

Code line

 Related Topics


Frame.Move

Sub Move(ByVal Index As Long)

Frame

Description

The Move method moves the frame to a new position in the Frames collection by specifying a new index value for the frame in Corel PHOTO-PAINT.A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

Index	Specifies the new index number of the moved frame in the Frames collection. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frames properties

Frames     Legend

    Application
    Count
  Item
    Parent


Frames methods

Frames     Legend

   Activate
   Delete
   Insert
   InsertFromFile
   Move
   SetDelay


Frames

Class Frames

Properties     Methods     Referenced By

The Frames class defines the characteristics of Frames collection objects and describes the look and behavior of the application through its properties and methods. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

The Frame filter supports all color modes except 48-bit RGB, 16-bit grayscale, paletted, and black-and-white.

 Related Topics


Frames.Application

Property Application As Application

Frames

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Frames.Count

Property Count As Long

Frames

Description

The Count property returns the number of frames in the Frames collection of Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

The Count property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Frames.Item

Property Item(ByVal Index As Long) As Frame

Frames

Description

The Item property returns a value associated with the index number of a frame object in the Frames collection of Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Frames(2) refers to the second frame object in the Frames collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Frames.Item(2) is the same as Frames(2) - they both reference the second frame object in the Frames collection.

You must reference a frame in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each object in a Frames collection; it uniquely identifies each member of the collection. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frames.Parent

Property Parent As Document

Frames

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Frames.Activate

Sub Activate(ByVal FrameReference As pntFrameReference)

Frames

Description

The Activate method activates a frame in the Frames collection of Corel PHOTO-PAINT, making it the active frame in the application. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

FrameReference	Sets the frame to be activated with the Activate method. This value returns pntFrameReference. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frames.Delete

Sub Delete(ByVal StartIndex As Long, ByVal EndIndex As Long)

Frames

Description

The Delete method deletes a range of frames in Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

StartIndex	Specifies the index number of the first frame in a range of frames that are deleted with the Delete method. [in]

EndIndex	Specifies the index number of the last frame in a range of frames that are deleted with the Delete method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frames.Insert

Function Insert([ByVal Index As Long = 0], [ByVal Number As Long = 1], [ByVal Background As pntFrameBackground = pntFrameFill (0)], [ByVal Color As Color = Nothing], [ByVal Frame As Frame = Nothing]) As Frame

Frames

Description

The Insert method inserts a new frame in the Frames collection of Corel PHOTO-PAINT, at a specified index point in the collection. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

Index	Sets the index placeholder in the collection to insert the frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Number	Sets the number of inserted frames. This value is optional and the default value is 1. [in]
Optional
Default value = 1

Background	Sets the background of the inserted frame. This value returns pntFrameBackground . This value is optional and the default value is pntFrameFill (0). [in]
Optional
Default value = pntFrameFill (0)

Color	Sets the color of the inserted frame. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Frame	Sets the frame to be inserted with the Insert method. This value is optional and the default value is 0. [in]
Optional
Default value = Nothing

Return value

Returns Frame

Example

Example of usage goes here

Code line

 Related Topics


Frames.InsertFromFile

Function InsertFromFile(ByVal FileName As String, [ByVal Index As Long = 0], [ByVal Filter As cdrFilter = cdrAutoSense (0)], [ByVal LoadMode As pntLoadMode = pntLoadAll (0)], [ByVal Left As Long = 0], [ByVal Top As Long = 0], [ByVal Width As Long = 0], [ByVal Height As Long = 0]) As Frame

Frames

Description

The Insert method inserts a frame from a file into the Frames collection of Corel PHOTO-PAINT. A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

FileName	Secifies the file name of the file containing the frame that is inserted with the InsertFromFile method. [in]

Index	Sets the index placeholder in the collection to insert the frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Filter	Specifies the filter to use when inserting the frame. This value returns cdrFilter. This value is optional and the default value is cdrAutoSense (0). [in]
Optional
Default value = cdrAutoSense (0)

LoadMode	Sets the load mode of the inserted frame. This value returns pntLoadMode. This value is optional and the default value is pntLoadAll (0). [in]
Optional
Default value = pntLoadAll (0)

Left	Sets the left position of the inserted frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Top	Sets the top position of the inserted frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Width	Sets the width of the inserted frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Height	Sets the height of the inserted frame. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Return value

Returns Frame

Example

Example of usage goes here

Code line

 Related Topics


Frames.Move

Sub Move(ByVal StartIndex As Long, ByVal EndIndex As Long, ByVal ToIndex As Long)

Frames

Description

The Move method moves a range of frames within the Frames collection of Corel PHOTO-PAINT, by specifying a new index for the moved frame. Moves the specified frame to a given index.

A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

StartIndex	Specifies the index number of the first frame in a range of frames that are moved with the Move method. [in]

EndIndex	Specifies the index number of the last frame in a range of frames that are moved with the Move method. [in]

ToIndex	Specifies the new index number of the first frame in the range of frames that are moved with the Move method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Frames.SetDelay

Sub SetDelay(ByVal StartIndex As Long, ByVal EndIndex As Long, ByVal Delay As Long)

Frames

Description

The SetDelay method sets the frame rate for frames in Corel PHOTO-PAINT. Frame rate is the amount of time that a movie frame appears on the screen. You can assign a display length to individual frames or to all the frames in a movie at once. Changing the frame rate lets you increase or decrease the speed of moving objects from one frame to another.

A frame object frames your image using one of 150 preset frames, another image, or an area defined by a mask. You can preview, select, and apply multiple frames on your image. You can also change the color, opacity, and alignment of a frame.

Creative special effects filters use a variety of shapes and textures to transform your image into abstract art. Use craft items, crystals, fabric, glass, game pieces, frames, whirlpools, or raindrops as the foundation for creating something wild or wonderful with your image.

You can insert empty frames into a movie, or you can insert frames that have been copied from other frames. You can insert up to 100 frames into a movie at a time. You can insert more than 100 frames into a movie, but not all at once.

Parameters	Description

StartIndex	Specifies the index number of the first frame in a range of frames that have their delay value set with the SetDelay method. [in]

EndIndex	Specifies the index number of the last frame in a range of frames that have their delay value set with the SetDelay method. [in]

Delay	Sets the delay time for the selected frames. The delay value will measure the amount of time passed when moving from one frame to another in a movie. [in]

Example

Example of usage goes here

Code line

 Related Topics


Grid properties

Grid     Legend

    Application
    Parent
      SpacingX
      SpacingY


Grid methods

Grid     Legend

   SetFrequency


Grid

Class Grid

Properties     Methods     Referenced By

 Related Topics


Grid.Application

Property Application As Application

Grid

Description

Read-Only

 Related Topics


Grid.Parent

Property Parent As Document

Grid

Description

Read-Only

 Related Topics


Grid.SpacingX

Property SpacingX As Long

Grid

Description

Example

Example of usage goes here

Code line

 Related Topics


Grid.SpacingY

Property SpacingY As Long

Grid

Description

Example

Example of usage goes here

Code line

 Related Topics


Grid.SetFrequency

Sub SetFrequency(ByVal GridX As Double, ByVal GridY As Double, ByVal Units As cdrUnit)

Grid

Description

Parameters	Description

GridX	Description of GridX goes here [in]

GridY	Description of GridY goes here [in]

Units	Description of Units goes here [in]

Example

Example of usage goes here

Code line

 Related Topics


Guide properties

Guide     Legend

    Application
    Index
    Parent
      PositionX
      PositionY
      Selected
    Type


Guide methods

Guide     Legend

   Delete


Guide

Class Guide

Properties     Methods     Referenced By

The Guide class defines the characteristics of guideline objects and describes the look and behavior of the objects through its properties and methods. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

You can change the color of the guidelines to make them stand out against the image background.

The Snap To Guidelines command makes guidelines magnetic. This means that when you move an object or selection close to a guideline, the object or selection automatically jumps to align with that line. You can set the sensitivity of this feature so that if you move an object or selection within the specified number of pixels of a guideline, the object or selection snaps to that line.

You can set up guidelines by specifying precise locations on the Horizontal and Vertical pages in the Options dialog box. The values that you specify in the Options dialog box are measured in the same units as the rulers, and represent the location of the guidelines relative to the rulers' settings. You can also delete and move guidelines.

 Related Topics


Guide.Application

Property Application As Application

Guide

Description

The Application property returns a value associated with the main application object in Corel PHOTO-PAINT. Corel PHOTO-PAINT is a bitmap-based image editing and painting application that lets you retouch photographs, edit images and video files, and create original artwork. Corel PHOTO-PAINT provides special effects filters, painting, masking, and object handling tools.

Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

This property returns a Read-Only value.

Read-Only

 Related Topics


Guide.Index

Property Index As Long

Guide

Description

The Index property returns a value associated with a guideline object in the Guides collection of Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Guides(5) refers to the fifth guideline in the Guides collection of Corel PHOTO-PAINT.

The Index property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Guide.Parent

Property Parent As Guides

Guide

Description

The Parent property returns a value associated with the parent object of a guideline in Corel PHOTO-PAINT. A parent is an object that retains its shape but contains the color or texture of the child objects that are clipped to it in a clipping group. An object is always the parent to the objects that are listed above it in the Objects Docker window.

Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

This property returns a Read-Only value.

Read-Only

 Related Topics


Guide.PositionX

Property PositionX As Long

Guide

Description

The PositionX property returns or sets the horizontal position of a guide in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Example

Example of usage goes here

Code line

 Related Topics


Guide.PositionY

Property PositionY As Long

Guide

Description

The PositionY property returns or sets the vertical position of a guide in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Example

Example of usage goes here

Code line

 Related Topics


Guide.Selected

Property Selected As Boolean

Guide

Description

The Selected property returns or sets a True or False value that indicates whether or not a guideline is selected in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Example

Example of usage goes here

Code line

 Related Topics


Guide.Type

Property Type As pntGuideType

Guide

Description

The Type property returns the specific kind of guideline used in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

The Type property returns a Read-Only value and returns pntGuideType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Guide.Delete

Sub Delete()

Guide

Description

The Delete method deletes a guideline in Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Example

Example of usage goes here

Code line

 Related Topics


Guides properties

Guides     Legend

    Application
    Count
  Item
    Parent


Guides

Class Guides

Properties     Referenced By

The Guides class defines the characteristics of guideline collection objects and describes the look and behavior of the objects through its properties and methods. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

You can change the color of the guidelines to make them stand out against the image background.

The Snap To Guidelines command makes guidelines magnetic. This means that when you move an object or selection close to a guideline, the object or selection automatically jumps to align with that line. You can set the sensitivity of this feature so that if you move an object or selection within the specified number of pixels of a guideline, the object or selection snaps to that line.

You can set up guidelines by specifying precise locations on the Horizontal and Vertical pages in the Options dialog box. The values that you specify in the Options dialog box are measured in the same units as the rulers, and represent the location of the guidelines relative to the rulers' settings. You can also delete and move guidelines.

 Related Topics


Guides.Application

Property Application As Application

Guides

Description

The Application property returns a value associated with the main application object in Corel PHOTO-PAINT. Corel PHOTO-PAINT is a bitmap-based image editing and painting application that lets you retouch photographs, edit images and video files, and create original artwork. Corel PHOTO-PAINT provides special effects filters, painting, masking, and object handling tools.

Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

This property returns a Read-Only value.

Read-Only

 Related Topics


Guides.Count

Property Count As Long

Guides

Description

The Count property counts the number of guidelines in the Guides collection of Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Guides.Item

Property Item(ByVal Index As Long) As Guide

Guides

Description

The Item property returns a value associated with the index number of a guideline object in the Guides collection of Corel PHOTO-PAINT. Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

Guides(5) refers to the fifth guideline in the collection. The Item property returns a Read-Only value. The Item property is the default property and may be omitted when referencing items in the collection.

You must reference an arrowhead in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each object in the Guides collection; it uniquely identifies each member of the collection. [in]

Example

Example of usage goes here

Code line

 Related Topics


Guides.Parent

Property Parent As Document

Guides

Description

The Parent property returns a value associated with the parent object of a guideline collection object in Corel PHOTO-PAINT. A parent is an object that retains its shape but contains the color or texture of the child objects that are clipped to it in a clipping group. An object is always the parent to the objects that are listed above it in the Objects Docker window.

Guidelines are non-printing lines used to align objects. You can place guidelines anywhere in the Image Window by dragging them from the rulers or using the Guidelines Setup command in the Options dialog box.

Guidelines are vertical or horizontal lines that you can place anywhere in the Image Window to help you align and position image components. You can manually drag as many guidelines as you like from the ruler, or you can create them by using the Horizontal and Vertical pages in the Options dialog box. Once created, you can select, move, and delete guidelines in the Image Window. Snapping objects and selections to guidelines lets you automatically align objects and selections with the guidelines. When you save an image in Corel PHOTO-PAINT, the guidelines are saved too.

This property returns a Read-Only value.

Read-Only

 Related Topics


Layer properties

Layer     Legend

    Active
    Application
      ClipToParent
    Grouped
    LayerGroup
      MergeMode
      Name
    ObjectLayer
      Opacity
    Parent
      PositionX
      PositionY
      Selected
      SizeHeight
      SizeWidth
    Type
      URLAddress
      URLComment
      URLRegion
      Visible
      ZOrder


Layer methods

Layer     Legend

   Activate
   AffineDistort
   AlignToDocument
   AlignToDocumentCenter
   AlignToGrid
   AlignToLayer
   AlignToLayerRange
   AlignToPoint
   Copy
   CreateFloater
   CreateMask
   CreatePalette
   CreateSelection
   CropToMask
   Cut
   Delete
   Distort
   Duplicate
   Feather
   Flip
   GetPosition
   GetSize
   IsInFrontOf
   Merge
   Move
   OrderBackOf
   OrderBackOne
   OrderForwardOne
   OrderFrontOf
   OrderToBack
   OrderToFront
   PasteFloater
   Rotate
   SetPosition
   SetSize
   Skew
   Stretch
   Threshold
   Ungroup
   UngroupAll


Layer

Class Layer

Properties     Methods     Referenced By

The Layer class defines the characteristics of layer objects and describes the look and behavior of the objects through its properties and methods.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The layering feature of Corel PHOTO-PAINT gives you added flexibility for organizing and editing the objects in your images. You can divide an image into multiple layers, each containing a portion of the image's contents. Together, layers act as a hierarchy that helps determine the vertical arrangement of an image's components. In this arrangement (the stacking order), objects on the top layer always overlay objects on the layer below.

 Related Topics


Layer.Active

Property Active As Boolean

Layer

Description

The Active property returns a True or False value indicating the status of a layer in Corel PHOTO-PAINT. If the layer is active, a value of true is returned, indicating that it is currently in use. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

If the window is inactive, the return value is false, indicating that the layer is currently open but not in use.

Use the Activate method to change the inactive status of the main application window.

The Active property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layer.Application

Property Application As Application

Layer

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub LayerApp()

With ActiveLayer

 MsgBox .Application.Version

End With

End Sub

 Related Topics


Layer.ClipToParent

Property ClipToParent As Boolean

Layer

Description

The ClipToParent property returns or sets a True or False value that indicates whether or not to clip the pixels of a child layer to the shape of its parent layer. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Grouped

Property Grouped As Boolean

Layer

Description

The Grouped property returns a True or False value that indicates whether or not a layer is grouped in Corel PHOTO-PAINT. Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layer.LayerGroup

Property LayerGroup As LayerRange

Layer

Description

The LayerGroup property returns a value associated with a grouped layer range of Corel PHOTO-PAINT. Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layer.MergeMode

Property MergeMode As pntMergeMode

Layer

Description

The MergeMode property returns or sets the mode merge in a layer in Corel PHOTO-PAINT. A merge mode is an editing state that determines how the selected paint, object, or fill color combines with other colors in the image. For example, if you apply color or merge an object into the background using the Normal merge mode, the selected color replaces the original color in the image. If you apply color or merge an object into the background using the Add merge mode, the paint and paper colors are combined to produce a brighter color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a value of pntMergeMode.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Name

Property Name As String

Layer

Description

The Name property returns or sets a string value that names a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

The following code example displays the name of the active layer in a message box:

Sub Test()

 MsgBox "Active Layer is " & ActiveLayer.Name

End Sub

 Related Topics


Layer.ObjectLayer

Property ObjectLayer As ObjectLayer

Layer

Description

The ObjectLayer property returns a value associated with the object layer in Corel PHOTO-PAINT. An object layer is the layer containing an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This value returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layer.Opacity

Property Opacity As Long

Layer

Description

The Opacity property returns or set the level of opacity in a layer in Corel PHOTO-PAINT. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Parent

Property Parent As Document

Layer

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example counts the number of layer in the active layer's parent Layers collection in Corel PHOTO-PAINT:

Sub Layer()

MsgBox ActiveLayer.Parent.Count

End Sub

 Related Topics


Layer.PositionX

Property PositionX As Long

Layer

Description

The PositionX property returns or set the horizontal position of a layer's center in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.PositionY

Property PositionY As Long

Layer

Description

The PositionY property returns or set the vertical position of a layer's center in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Selected

Property Selected As Boolean

Layer

Description

The Selected property returns or set s a True or False value that indicates whether or not a layer is selected in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.SizeHeight

Property SizeHeight As Long

Layer

Description

The SizeHeight property returns or sets the height of a layer in Corel PHOTO-PAINT, measured in documents units. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.SizeWidth

Property SizeWidth As Long

Layer

Description

The SizeWidth property returns or sets the width of a layer in Corel PHOTO-PAINT, measured in documents units. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Type

Property Type As pntLayerType

Layer

Description

The Type property returns the layer type of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property is Read-Only and returns a value of pntLayerType.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layer.URLAddress

Property URLAddress As String

Layer

Description

The URLAddress property returns or sets the web address associated with a URL region in a layer in Corel PHOTO-PAINT. A URL is a unique address that defines where a Web page is located on the Internet. You can assign Internet addresses, or Uniform Resource Locators (URLs), to the objects in your images by defining clickable areas. When you click an area in your image that has an Internet address associated with it, you are linked to the specified URL. A clickable area can be a polygon that closely follows an object's shape, a rectangle that matches an object's highlighting box, an oval that fits within an object's highlighting box, or a circle that has a radius equal to the object's longest dimension from its center to its edges.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.URLComment

Property URLComment As String

Layer

Description

The URLComment property returns or sets a string value that describes a URL region in a layer in Corel PHOTO-PAINT. A URL is a unique address that defines where a Web page is located on the Internet. You can assign Internet addresses, or Uniform Resource Locators (URLs), to the objects in your images by defining clickable areas. When you click an area in your image that has an Internet address associated with it, you are linked to the specified URL. A clickable area can be a polygon that closely follows an object's shape, a rectangle that matches an object's highlighting box, an oval that fits within an object's highlighting box, or a circle that has a radius equal to the object's longest dimension from its center to its edges.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.URLRegion

Property URLRegion As pntURLRegion

Layer

Description

The URLRegion property returns or sets the type of URL region in a layer in Corel PHOTO-PAINT. A URL is a unique address that defines where a Web page is located on the Internet. You can assign Internet addresses, or Uniform Resource Locators (URLs), to the objects in your images by defining clickable areas. When you click an area in your image that has an Internet address associated with it, you are linked to the specified URL. A clickable area can be a polygon that closely follows an object's shape, a rectangle that matches an object's highlighting box, an oval that fits within an object's highlighting box, or a circle that has a radius equal to the object's longest dimension from its center to its edges.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a value of pntURLRegion.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Visible

Property Visible As Boolean

Layer

Description

The Visible property returns a True or False value that indicates the visibility status of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

If the Visible property is set the True, the layer is visible in Corel PHOTO-PAINT.

Example

The following code example makes the active layer visible:

Sub LayerVisible()

ActiveLayer.Visible = True

End Sub

 Related Topics


Layer.ZOrder

Property ZOrder As Long

Layer

Description

ZORDER

Example

Example of usage goes here

Code line

 Related Topics


Layer.Activate

Sub Activate()

Layer

Description

The Activate method opens a layer in Corel PHOTO-PAINT and makes that layer active in the current document. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

The following code example activates the active layer:

Sub Test()

 ActiveLayer.Activate

End Sub

 Related Topics


Layer.AffineDistort

Sub AffineDistort(ByVal OffsetX As Long, ByVal OffsetY As Long, ByVal d11 As Double, ByVal d12 As Double, ByVal d21 As Double, ByVal d22 As Double, [ByVal AntiAlias As Boolean = True])

Layer

Description

The AffineDistort method distorts a layer in Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

OffsetX	Sets the horizontal offset of the distortion. [in]

OffsetY	Sets the vertical offset of the distortion. [in]

d11	Sets a value that creates the distortion of one side of the layer. [in]

d12	Sets a value that creates the distortion of one side of the layer. [in]

d21	Sets a value that creates the distortion of one side of the layer. [in]

d22	Sets a value that creates the distortion of one side of the layer. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToDocument

Sub AlignToDocument(ByVal Type As pntAlignType)

Layer

Description

The AlignToDocument method sets the alignment of a layer, according to the alignment type in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToDocumentCenter

Sub AlignToDocumentCenter(ByVal Type As pntAlignType)

Layer

Description

The AlignToDocumentCenter aligns a layer to the center of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToGrid

Sub AlignToGrid(ByVal Type As pntAlignType)

Layer

Description

The AlignToGrid method aligns a layer to the grid in Corel PHOTO-PAINT. A Grid is a series of evenly spaced horizontal and vertical dots that are used to help draw and arrange objects. You can use the controls on the Grid and Ruler Setup dialog box to set the grid's parameters. For greater accuracy, you can also have objects in your illustration snap to the grid when you move, or draw them.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToLayer

Sub AlignToLayer(ByVal Type As pntAlignType, ByVal Layer As Layer)

Layer

Description

The AlignToLayer method aligns the active layer to another layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Layer	The Layer parameter identifies the layer to which the active layer is aligned with the AlignToLayer method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToLayerRange

Sub AlignToLayerRange(ByVal Type As pntAlignType, ByVal LayerRange As LayerRange)

Layer

Description

The AlignToLayerRange method aligns the active layer to a range of layers in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

LayerRange	The LayerRange parameter identifies the range of layers to which the active layer is aligned with the AlignToLayerRange method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.AlignToPoint

Sub AlignToPoint(ByVal Type As pntAlignType, ByVal X As Long, ByVal Y As Long)

Layer

Description

The AlignToPoint method aligns the active layer to a specified point in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

X	Sets the horizontal coordinate of a point, measured in document units. [in]

Y	Sets the horizontal coordinate of a point, measured in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.Copy

Function Copy() As Boolean

Layer

Description

The Copy method copies a layer object in Corel PHOTO-PAINT. Copying the object places it in the system clipboard where is can be pasted at a later time. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.CreateFloater

Function CreateFloater([ByVal Preserve As Boolean = False]) As Boolean

Layer

Description

The CreateFloater method sets a True or False value that indicates whether or not to create a floating selection in the active layer of Corel PHOTO-PAINT. A floating selection is a selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Preserve	The Preserve parameter sets a True or False value that indicates whether or not to maintain the aspect ratio between a floater and the image. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.CreateMask

Sub CreateMask([ByVal MaskMode As pntMaskMode = pntMaskNormal (0)])

Layer

Description

The CreateMask method creates a mask on a layer in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

MaskMode	Sets the mask mode in the new mask. This value returns pntMaskMode and is optional. The default value is pntMaskNormal (0) [in]
Optional
Default value = pntMaskNormal (0)

Example

Example of usage goes here

Code line

 Related Topics


Layer.CreatePalette

Function CreatePalette(ByVal Name As String, [ByVal FileName As String], [ByVal Overwrite As Boolean = False]) As Palette

Layer

Description

The CreatePalette method creates a new color palette from the colors used in a layer in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Name	Sets a string value that names and uniquely identifies the new palette. [in]

FileName	Sets the file name of the new palette. This value is optional. [in]
Optional

Overwrite	Sets a True or False value that indicates if the new palette replaces another palette with the same file name. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Palette

Example

Example of usage goes here

Code line

 Related Topics


Layer.CreateSelection

Sub CreateSelection()

Layer

Description

The CreateSelection method creates a selection from the active layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.CropToMask

Function CropToMask() As Boolean

Layer

Description

The CropToMask method sets a True or False value that indicates whether or not to crop a layer's image around a mask in Corel PHOTO-PAINT. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.Cut

Function Cut() As Boolean

Layer

Description

The Cut method cuts a layer object in Corel PHOTO-PAINT. Cutting the object places it in the system clipboard where is can be pasted at a later time. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.Delete

Sub Delete()

Layer

Description

The Delete method removes a layer, and its contents, from a document in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

The following code example deletes the active layer:

Sub Test()

 ActiveLayer.Delete

End Sub

 Related Topics


Layer.Distort

Sub Distort(ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long, ByVal x3 As Long, ByVal y3 As Long, ByVal x4 As Long, ByVal y4 As Long, [ByVal AntiAlias As Boolean = True])

Layer

Description

The Distort method distorts the shape of the selected layer in Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

x1	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y1	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x2	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y2	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x3	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y3	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x4	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y4	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Layer.Duplicate

Function Duplicate([ByVal OffsetX As Long = 0], [ByVal OffsetY As Long = 0]) As Layer

Layer

Description

The Duplicate method duplicates the selected layer in Corel PHOTO-PAINT. The new layers are placed in front of existing layers and remain selected. The original layers are deselected.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

OffsetX	The OffsetX parameter specifies the horizontal distance to offset the duplicated layer object. This value is optional and the default value is 0. [in]
Optional
Default value = 0

OffsetY	The OffsetY parameter specifies the vertical distance to offset the duplicated layer object. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Return value

Returns Layer

Example

Example of usage goes here

Code line

 Related Topics


Layer.Feather

Sub Feather(ByVal Width As Long, [ByVal Type As pntFeatherType = pntFeatherAverage (0)], [ByVal Edges As pntEdgeType = pntEdgeLinear (0)])

Layer

Description

The Feather method feathers the edges of a layer in Corel PHOTO-PAINT. Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	Sets the width of a feather effect of a layer's edges, measured in document units. [in]

Type	Sets the feather type, which returns a value of pntFeatherType. This value is optional and the default value is pntFeatherAverage (0). [in]
Optional
Default value = pntFeatherAverage (0)

Edges	Sets the feather edge, which returns a value of pntEdgeType. This value is optional and the default value is pntEdgeLinear (0) [in]
Optional
Default value = pntEdgeLinear (0)

Example

Example of usage goes here

Code line

 Related Topics


Layer.Flip

Sub Flip(ByVal Axes As cdrFlipAxes)

Layer

Description

The Flip method flips a layer object in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

A layer can be flipped horizontally, vertically, or both.

Parameters	Description

Axes	Sets the manner of the flip in the layer object. This value returns cdrFlipAxes. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.GetPosition

Sub GetPosition(ByRef PositionX As Long, ByRef PositionY As Long)

Layer

Description

The GetPosition method gets the center point of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

PositionX	Sets the horizontal position of the layer's center point, in document units. [out]

PositionY	Sets the vertical position of the layer's center point, in document units. [out]

Example

Example of usage goes here

Code line

 Related Topics


Layer.GetSize

Sub GetSize(ByRef Width As Long, ByRef Height As Long)

Layer

Description

The GetSize method gets the width and height of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	The Width parameter sets the width of a layer, measured in document units. This value is optional and the default value is 0. [out]

Height	The Height parameter sets the height of a layer, measured in document units. This value is optional and the default value is 0. [out]

Example

Example of usage goes here

Code line

 Related Topics


Layer.IsInFrontOf

Function IsInFrontOf(ByVal Layer As Layer) As Boolean

Layer

Description

The IsInFrontOf method returns or sets a True or False value that indicates whether or not a layer is in front of a specified layer in the stacking order of Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Parameters	Description

Layer	The Layer parameter identifies the layer object to see if another layer is in front of this specified layer in the stacking order of Corel PHOTO-PAINT. [in]

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.Merge

Sub Merge()

Layer

Description

The Merge method merges the selected layer with the background in Corel PHOTO-PAINT. The layer becomes part of the image and cannot be selected again. The manner of a merge depends on the merge mode of the active layer. A merge mode is an editing state that determines how the selected paint, object, or fill color combines with other colors in the image. For example, if you apply color or merge an object into the background using the Normal merge mode, the selected color replaces the original color in the image. If you apply color or merge an object into the background using the Add merge mode, the paint and paper colors are combined to produce a brighter color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.Move

Sub Move(ByVal Dx As Long, ByVal Dy As Long)

Layer

Description

The Move method changes the position of a layer by moving it a specified distance from its original location in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Dx	The Dx parameter specifies the horizontal distance to move a layer with the Move method. Delta refers to a limited incremental value in a variable. [in]

Dy	The Dy parameter specifies the vertical distance to move a layer with the Move method. Delta refers to a limited incremental value in a variable. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderBackOf

Sub OrderBackOf(ByVal Layer As Layer)

Layer

Description

The OrderBackOf method arranges the stacking order of a layer object by moving it in back of a specified layer in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Parameters	Description

Layer	The Layer parameter identifies the layer object that will have another layer placed in back of it in the stacking order of Corel PHOTO-PAINT. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderBackOne

Sub OrderBackOne()

Layer

Description

The OrderBackwardOne method arranges the stacking order of a layer object by moving it back one in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderForwardOne

Sub OrderForwardOne()

Layer

Description

The OrderForwardOne method arranges the stacking order of a layer object by moving it forward one in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderFrontOf

Sub OrderFrontOf(ByVal Layer As Layer)

Layer

Description

The OrderFrontOf method arranges the stacking order of a layer object by moving it in front of a specified layer in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Parameters	Description

Layer	The Layer parameter identifies the layer object that will have another layer placed in front of it in the stacking order of Corel PHOTO-PAINT. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderToBack

Sub OrderToBack()

Layer

Description

The OrderToBack method arranges the stacking order of a layer object by moving it to the back of the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


Layer.OrderToFront

Sub OrderToFront()

Layer

Description

The OrderToFront method arranges the stacking order of a layer object by moving it to the front of the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


Layer.PasteFloater

Function PasteFloater([ByVal X As Variant], [ByVal Y As Variant]) As Boolean

Layer

Description

The PasteFloater method sets a True or False value that indicates whether or not to paste a selection as a floater selection on a layer in Corel PHOTO-PAINT. A floating selection is a selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

X	Sets the horizontal position of the pasted floater selection, measured in document units. This value is optional. [in]
Optional

Y	Sets the vertical position of the pasted floater selection, measured in document units. This value is optional. [in]
Optional

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


Layer.Rotate

Sub Rotate(ByVal Angle As Double, ByVal CenterX As Long, ByVal CenterY As Long, [ByVal AntiAlias As Boolean = True])

Layer

Description

The Rotate method rotates a layer by a specified angle around a rotation point in Corel PHOTO-PAINT. Rotating an object means to reposition and reorient the object by turning it around its center of rotation.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Angle	Sets the rotation angle, measured in degrees. [in]

CenterX	Sets the horizontal coordinate of the center or rotation, measured in document units. [in]

CenterY	Sets the vertical coordinate of the center or rotation, measured in document units. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Layer.SetPosition

Sub SetPosition(ByVal PositionX As Long, ByVal PositionY As Long)

Layer

Description

The SetPosition method sets the center point of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

PositionX	Sets the horizontal position of the layer's center point, in document units. [in]

PositionY	Sets the vertical position of the layer's center point, in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.SetSize

Sub SetSize([ByVal Width As Long = 0], [ByVal Height As Long = 0])

Layer

Description

The SetSize method sets the width and height of a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	The Width parameter sets the width of a layer, measured in document units. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Height	The Height parameter sets the height of a layer, measured in document units. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Layer.Skew

Sub Skew(ByVal HAngle As Double, ByVal VAngle As Double, [ByVal AntiAlias As Boolean = True])

Layer

Description

The Skew method skews a layer in Corel PHOTO-PAINT. Skewing refers to a slant of an object. Skewing a layer slants the layer in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

HAngle	The HAngle parameter specifies the degree in which to slant the layer horizontally. [in]

VAngle	The VAngle parameter specifies the degree in which to slant the layer vertically. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Layer.Stretch

Sub Stretch(ByVal XOrigin As Long, ByVal YOrigin As Long, ByVal XScale As Double, ByVal YScale As Double, [ByVal AntiAlias As Boolean = True])

Layer

Description

The Stretch method stretches a layer in Corel PHOTO-PAINT. Stretching an object means to size an object horizontally or vertically. Stretching changes the size of an object in one direction only, as opposed to sizing, which maintains the aspect ratio (the ratio of height to width).

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

XOrigin	The XOrigin parameter specifies the horizontal position of the anchor point when stretching a layer. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

YOrigin	The YOrigin parameter specifies the vertical position of the anchor point when stretching a layer. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

XScale	The XScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

YScale	The YScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Layer.Threshold

Sub Threshold(ByVal Threshold As Long)

Layer

Description

The Threshold method alters the edges of mask selections or objects by removing the smooth transition between a selection, or a layer, and the underlying image in Corel PHOTO-PAINT. Threshold is a level of tolerance for tonal variation in a bitmap image. For example, when you convert an image to the Black-and-White color mode, the threshold you set determines how many tonal values are converted to black and how many to white. Threshold settings are also used in color-sensitive masks and some Effects filters.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Threshold	The Threshold parameter lets you change threshold values for the colors in an image by converting a range of colors to black or white. The threshold values that you set determine which pixels become black and which pixels become white. If you convert colors to black, only pixels with a brightness value that is lower than the threshold value are converted to black. If you convert colors to white, only pixels with a brightness value that is higher than the threshold value are converted to white. The Threshold brightness values range from 0 (black) to 255 (white). [in]

Example

Example of usage goes here

Code line

 Related Topics


Layer.Ungroup

Sub Ungroup()

Layer

Description

The Ungroup method breaks up the selected group into its individual objects in a layer in Corel PHOTO-PAINT. Ungrouping is a command that causes a set of objects acting as one unit to behave as individual objects. If you have more than one sublevel of grouping, Ungroup breaks up one level of grouping at a time. A group is a set of objects that behave as one unit. Also refers to the Group command. Most operations you perform on a group apply equally to each of its components.

Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layer.UngroupAll

Sub UngroupAll()

Layer

Description

The UngroupAll method removes the grouping feature from all nested groups of layer objects in Corel PHOTO-PAINT. A group is a set of objects that behave as one unit. Also refers to the Group command. Most operations you perform on a group apply equally to each of its components.

Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange properties

LayerRange     Legend

    Application
    Count
  Item
    Parent
      PositionX
      PositionY
    SizeHeight
    SizeWidth


LayerRange methods

LayerRange     Legend

   Add
   AddClipMask
   AddRange
   AddToSelection
   AffineDistort
   AlignToDocument
   AlignToDocumentCenter
   AlignToGrid
   AlignToLayer
   AlignToLayerRange
   AlignToPoint
   Combine
   Copy
   CreateMask
   CreatePalette
   CreateSelection
   CropToMask
   Cut
   Defringe
   Delete
   Distort
   Distribute
   DistributeSpace
   Duplicate
   Feather
   Flip
   GetPosition
   GetSize
   Group
   Merge
   Move
   OrderBackOf
   OrderBackOne
   OrderForwardOne
   OrderFrontOf
   OrderReverse
   OrderToBack
   OrderToFront
   Remove
   RemoveAll
   RemoveFromSelection
   RemoveMatte
   Rotate
   SetMergeMode
   SetOpacity
   SetOrder
   SetPosition
   SetSize
   Skew
   Stretch
   Threshold
   UngroupAll


LayerRange

Class LayerRange

Properties     Methods     Referenced By

The LayerRange class defines the characteristics of a range of layer objects and describes the look and behavior of the objects through its properties and methods.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The layering feature of Corel PHOTO-PAINT gives you added flexibility for organizing and editing the objects in your images. You can divide an image into multiple layers, each containing a portion of the image's contents. Together, layers act as a hierarchy that helps determine the vertical arrangement of an image's components. In this arrangement (the stacking order), objects on the top layer always overlay objects on the layer below.

 Related Topics


LayerRange.Application

Property Application As Application

LayerRange

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


LayerRange.Count

Property Count As Long

LayerRange

Description

The Count property returns the number of layers in a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Item

Property Item(ByVal IndexOrName As Variant) As Layer

LayerRange

Description

The Item property returns a value associated with the index number of a layer object in a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the range. You must reference a layer in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in a Layer Range; it uniquely identifies each member of the range. Name is the unique string value that identifies each layer. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Parent

Property Parent As Document

LayerRange

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


LayerRange.PositionX

Property PositionX As Long

LayerRange

Description

The PositionX property returns or set the horizontal position of the center of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.PositionY

Property PositionY As Long

LayerRange

Description

The PositionY property returns or set the vertical position of the center of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SizeHeight

Property SizeHeight As Long

LayerRange

Description

The SizeHeight property returns the height of a layer in Corel PHOTO-PAINT, measured in documents units. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SizeWidth

Property SizeWidth As Long

LayerRange

Description

The SizeWidth property returns or sets the width of a layer in Corel PHOTO-PAINT, measured in documents units. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Add

Sub Add(ByVal Layer As Layer)

LayerRange

Description

The Add method adds a layer to the layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Layer	The Layer parameter identifies the layer to which is added to the layer range with the Add method. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AddClipMask

Sub AddClipMask(ByVal CreationMode As pntClipMaskMode, [ByVal OpacityLevel As Long = 0])

LayerRange

Description

The AddClipMask method adds a clip mask object to a layer rangein Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

CreationMode	Sets the creation mode for the new clip mask on the object layer. This value returns pntClipMaskMode. [in]

OpacityLevel	Sets the level of opacity in the new clip mask on the object layer. This value is optional and the default value is 0. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AddRange

Sub AddRange(ByVal LayerRange As LayerRange)

LayerRange

Description

The AddRange method adds a layer rangeto an existing layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

LayerRange	The LayerRange parameter is a range of index numbers that identify and group specific layers. By selecting a range of index numbers, you are selecting specific layer objects that become members of the array. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AddToSelection

Sub AddToSelection()

LayerRange

Description

The AddToSelection method adds the layer rangefrom the current selection in Corel PHOTO-PAINT. A selection is an area of an image that is not protected by a mask and that is, therefore, available for editing. The selection is affected by the use of painting and editing tools, special effects, and image commands.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AffineDistort

Sub AffineDistort(ByVal OffsetX As Long, ByVal OffsetY As Long, ByVal d11 As Double, ByVal d12 As Double, ByVal d21 As Double, ByVal d22 As Double, [ByVal AntiAlias As Boolean = True])

LayerRange

Description

The AffineDistort method distorts a layer rangein Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

OffsetX	Sets the horizontal offset of the distortion. [in]

OffsetY	Sets the vertical offset of the distortion. [in]

d11	Sets a value that creates the distortion of one side of the layer. [in]

d12	Sets a value that creates the distortion of one side of the layer. [in]

d21	Sets a value that creates the distortion of one side of the layer. [in]

d22	Sets a value that creates the distortion of one side of the layer. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToDocument

Sub AlignToDocument(ByVal Type As pntAlignType)

LayerRange

Description

The AlignToDocument method sets the alignment of a layer range, according to the alignment type in a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToDocumentCenter

Sub AlignToDocumentCenter(ByVal Type As pntAlignType)

LayerRange

Description

The AlignToDocumentCenter aligns a layer rangeto the center of a document in Corel PHOTO-PAINT. A document in Corel PHOTO-PAINT is single page image or a collection of single-page images that make up a multi-page document.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToGrid

Sub AlignToGrid(ByVal Type As pntAlignType)

LayerRange

Description

The AlignToGrid method aligns a layer rangeto the grid in Corel PHOTO-PAINT. A Grid is a series of evenly spaced horizontal and vertical dots that are used to help draw and arrange objects. You can use the controls on the Grid and Ruler Setup dialog box to set the grid's parameters. For greater accuracy, you can also have objects in your illustration snap to the grid when you move, or draw them.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToLayer

Sub AlignToLayer(ByVal Type As pntAlignType, ByVal Layer As Layer)

LayerRange

Description

The AlignToLayer method aligns the layer range to another layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Layer	The Layer parameter identifies the layer to which the active layer is aligned with the AlignToLayer method. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToLayerRange

Sub AlignToLayerRange(ByVal Type As pntAlignType, ByVal LayerRange As LayerRange)

LayerRange

Description

The AlignToLayerRange method aligns the active layer to a range of layers in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

LayerRange	The LayerRange parameter identifies the range of layers to which the active layer is aligned with the AlignToLayerRange method. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.AlignToPoint

Sub AlignToPoint(ByVal Type As pntAlignType, ByVal X As Long, ByVal Y As Long)

LayerRange

Description

The AlignToPoint method aligns the layer range to a specified point in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

X	Sets the horizontal coordinate of a point, measured in document units. [in]

Y	Sets the horizontal coordinate of a point, measured in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Combine

Function Combine() As Layer

LayerRange

Description

The Combine method combines the layers of a layer rangewith an object in Corel PHOTO-PAINT. When you combine objects, you permanently create one object from multiple objects. You can also combine objects with the background to decrease the file size of an image. When you combine objects with the background, they no longer float above the rest of the image, and they cannot be selected or changed individually.

Return value

Returns Layer

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Copy

Function Copy() As Boolean

LayerRange

Description

The Copy method returns a True or False value that indicates whether or not to copy a layer rangein Corel PHOTO-PAINT. Copying the object places it in the system clipboard where is can be pasted at a later time. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.CreateMask

Sub CreateMask([ByVal MaskMode As pntMaskMode = pntMaskNormal (0)])

LayerRange

Description

The CreateMask method creates a mask on a range of layers in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

MaskMode	Sets the mask mode in the new mask. This value returns pntMaskMode and is optional. The default value is pntMaskNormal (0) [in]
Optional
Default value = pntMaskNormal (0)

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.CreatePalette

Function CreatePalette(ByVal Name As String, [ByVal FileName As String], [ByVal Overwrite As Boolean = False]) As Palette

LayerRange

Description

The CreatePalette method creates a new color palette from the colors used in a layer rangein Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Name	Sets a string value that names and uniquely identifies the new palette. [in]

FileName	Sets the file name of the new palette. This value is optional. [in]
Optional

Overwrite	Sets a True or False value that indicates if the new palette replaces another palette with the same file name. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns Palette

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.CreateSelection

Sub CreateSelection()

LayerRange

Description

The CreateSelection method creates a selection from the layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.CropToMask

Sub CropToMask()

LayerRange

Description

The CropToMask method sets a True or False value that indicates whether or not to crop a layer's image, in a layer range around a mask in Corel PHOTO-PAINT. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Cut

Function Cut() As Boolean

LayerRange

Description

The Cut method sets a True or False value that indicates whether of not to cut a layer rangein Corel PHOTO-PAINT. Cutting the object places it in the system clipboard where is can be pasted at a later time. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Defringe

Sub Defringe(ByVal Amount As Long)

LayerRange

Description

The Defringe method defringes the edges of the layers in a layer rangein Corel PHOTO-PAINT. The Defringe method replaces the color of the pixels that lie along the outside edge of an object with the color of the pixels that lie inside the boundaries of the object.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

An object can have stray pixels along its edges; these strays contrast with neighboring pixels, giving the object a slightly ragged effect. Defringing stray pixels blends the object with the background to create a smooth, polished appearance.

Parameters	Description

Amount	Sets the level of the defringe effect in the edges of the object layer. Large defringe values create a gradual transition between the edges of the object and the background. Values range from 1 to 100. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Delete

Sub Delete()

LayerRange

Description

The Delete method removes a layer range, and its contents, from a document in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Distort

Sub Distort(ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long, ByVal x3 As Long, ByVal y3 As Long, ByVal x4 As Long, ByVal y4 As Long, [ByVal AntiAlias As Boolean = True])

LayerRange

Description

The Distort method distorts the shape of the layer range in Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

x1	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y1	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x2	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y2	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x3	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y3	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

x4	Sets the distortion value for the horizontal coordinate of a layer's corner. [in]

y4	Sets the distortion value for the vertical coordinate of a layer's corner. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Distribute

Sub Distribute(ByVal Type As pntDistributeType, [ByVal DocumentExtent As Boolean = False])

LayerRange

Description

DISTRIBUTE

Parameters	Description

Type	Description of Type goes here [in]

DocumentExtent	Description of DocumentExtent goes here [in]
Optional
Default value = False

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.DistributeSpace

Sub DistributeSpace(ByVal Type As pntDistributeType, [ByVal SpaceX As Long = 0], [ByVal SpaceY As Long = 0])

LayerRange

Description

DISTRIBUTESPACE

Parameters	Description

Type	Description of Type goes here [in]

SpaceX	Description of SpaceX goes here [in]
Optional
Default value = 0

SpaceY	Description of SpaceY goes here [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Duplicate

Function Duplicate([ByVal OffsetX As Long = 0], [ByVal OffsetY As Long = 0]) As LayerRange

LayerRange

Description

The Duplicate method duplicates the layer range in Corel PHOTO-PAINT. The new layers are placed in front of existing layers and remain selected. The original layers are deselected.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

OffsetX	The OffsetX parameter specifies the horizontal distance to offset the duplicated layer object. This value is optional and the default value is 0. [in]
Optional
Default value = 0

OffsetY	The OffsetY parameter specifies the vertical distance to offset the duplicated layer object. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Feather

Sub Feather(ByVal Width As Long, [ByVal Type As pntFeatherType = pntFeatherAverage (0)], [ByVal Edges As pntEdgeType = pntEdgeLinear (0)])

LayerRange

Description

The Feather method feathers the edges of a layer range in Corel PHOTO-PAINT. Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	Sets the width of a feather effect of a layer's edges, measured in document units. [in]

Type	Sets the feather type, which returns a value of pntFeatherType. This value is optional and the default value is pntFeatherAverage (0). [in]
Optional
Default value = pntFeatherAverage (0)

Edges	Sets the feather edge, which returns a value of pntEdgeType. This value is optional and the default value is pntEdgeLinear (0) [in]
Optional
Default value = pntEdgeLinear (0)

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Flip

Sub Flip(ByVal Axes As cdrFlipAxes)

LayerRange

Description

The Flip method flips a layer rangein Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

A layer can be flipped horizontally, vertically, or both.

Parameters	Description

Axes	Sets the manner of the flip in the layer object. This value returns cdrFlipAxes. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.GetPosition

Sub GetPosition(ByRef PositionX As Long, ByRef PositionY As Long)

LayerRange

Description

The GetPosition method gets the center point of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

PositionX	Sets the horizontal position of the layer's center point, in document units. [out]

PositionY	Sets the vertical position of the layer's center point, in document units. [out]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.GetSize

Sub GetSize(ByRef Width As Long, ByRef Height As Long)

LayerRange

Description

The GetSize method gets the width and height of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	The Width parameter sets the width of a layer, measured in document units. This value is optional and the default value is 0. [out]

Height	The Height parameter sets the height of a layer, measured in document units. This value is optional and the default value is 0. [out]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Group

Sub Group()

LayerRange

Description

The Group method groups a layer rangein Corel PHOTO-PAINT. Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Merge

Sub Merge()

LayerRange

Description

The Merge method merges the layer range with the background in Corel PHOTO-PAINT. The layer becomes part of the image and cannot be selected again. The manner of a merge depends on the merge mode of the active layer. A merge mode is an editing state that determines how the selected paint, object, or fill color combines with other colors in the image. For example, if you apply color or merge an object into the background using the Normal merge mode, the selected color replaces the original color in the image. If you apply color or merge an object into the background using the Add merge mode, the paint and paper colors are combined to produce a brighter color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Move

Sub Move(ByVal Dx As Long, ByVal Dy As Long)

LayerRange

Description

The Move method changes the position of a layer range by moving it a specified distance from its original location in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Dx	The Dx parameter specifies the horizontal distance to move a layer with the Move method. Delta refers to a limited incremental value in a variable. [in]

Dy	The Dy parameter specifies the vertical distance to move a layer with the Move method. Delta refers to a limited incremental value in a variable. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderBackOf

Sub OrderBackOf(ByVal Layer As Layer)

LayerRange

Description

The OrderBackOf method arranges the stacking order of a layer rangeby moving it in back of a specified layer in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Parameters	Description

Layer	The Layer parameter identifies the layer object that will have another layer placed in back of it in the stacking order of Corel PHOTO-PAINT. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderBackOne

Sub OrderBackOne()

LayerRange

Description

The OrderBackwardOne method arranges the stacking order of a layer rangeby moving it back one in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderForwardOne

Sub OrderForwardOne()

LayerRange

Description

The OrderForwardOne method arranges the stacking order of a layer rangeby moving it forward one in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderFrontOf

Sub OrderFrontOf(ByVal Layer As Layer)

LayerRange

Description

The OrderFrontOf method arranges the stacking order of a layer rangeby moving it in front of a specified layer in the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Parameters	Description

Layer	The Layer parameter identifies the layer object that will have another layer placed in front of it in the stacking order of Corel PHOTO-PAINT. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderReverse

Sub OrderReverse()

LayerRange

Description

The OrderReverse method reverses the stacking order of layers in a layer rangein Corel PHOTO-PAINT. Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderToBack

Sub OrderToBack()

LayerRange

Description

The OrderToBack method arranges the stacking order of a layer rangeby moving it to the back of the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.OrderToFront

Sub OrderToFront()

LayerRange

Description

The OrderToFront method arranges the stacking order of a layer rangeby moving it to the front of the stacking order in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Stacking order is the sequence in which objects are created in the Image Window. This order determines the relationship between objects and, therefore, the appearance of your image. The first object you create appears on the bottom; the last object appears on the top. You can use the Order commands to place the objects where you want them; however, the background object always appears on the bottom and cannot be reordered.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Remove

Sub Remove(ByVal Index As Long)

LayerRange

Description

The Remove method removes a layer from a layer range in Corel PHOTO-PAINT, by referencing the index of the layer. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Index	The Index parameter specifies the index number of the layer in the layer range that is removed with the Remove method. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.RemoveAll

Sub RemoveAll()

LayerRange

Description

The RemoveAll method removes all layers from a layer rangein Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.RemoveFromSelection

Sub RemoveFromSelection()

LayerRange

Description

The RemoveFromSelection method removes the layer rangefrom the current selection in Corel PHOTO-PAINT. A selection is an area of an image that is not protected by a mask and that is, therefore, available for editing. The selection is affected by the use of painting and editing tools, special effects, and image commands.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.RemoveMatte

Sub RemoveMatte(ByVal Type As pntMatteType)

LayerRange

Description

The RemoveMatte method removes a matte from the layer range in Corel PHOTO-PAINT. You can change the transparency of the pixels along the edge of a feathered object using the Remove Matte commands. The more transparent the pixels are, the more you can see through them. The Remove Black Matte command makes semitransparent pixels more transparent. The Remove White Matte command makes semitransparent pixels less transparent.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	Sets the type of matte that is removed from an object layer. This value returns pntMatteType. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Rotate

Sub Rotate(ByVal Angle As Double, ByVal CenterX As Long, ByVal CenterY As Long, [ByVal AntiAlias As Boolean = True])

LayerRange

Description

The Rotate method rotates a layer range by a specified angle around a rotation point in Corel PHOTO-PAINT. Rotating an object means to reposition and reorient the object by turning it around its center of rotation.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Angle	Sets the rotation angle, measured in degrees. [in]

CenterX	Sets the horizontal coordinate of the center or rotation, measured in document units. [in]

CenterY	Sets the vertical coordinate of the center or rotation, measured in document units. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SetMergeMode

Sub SetMergeMode(ByVal MergeMode As pntMergeMode)

LayerRange

Description

The SetMergeMode method sets the merge mode in a layer rangein Corel PHOTO-PAINT. A merge mode is an editing state that determines how the selected paint, object, or fill color combines with other colors in the image. For example, if you apply color or merge an object into the background using the Normal merge mode, the selected color replaces the original color in the image. If you apply color or merge an object into the background using the Add merge mode, the paint and paper colors are combined to produce a brighter color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

MergeMode	The MergeMode parameter sets the merge mode of the new layer range. This value returns pntMergeMode. This value is optional and the default value is pntMergeNormal (0) [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SetOpacity

Sub SetOpacity(ByVal Opacity As Long)

LayerRange

Description

The SetOpacity method sets the level of opacity in a layer rangein Corel PHOTO-PAINT. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Opacity	The Opacity parameter sets the opacity level of the new layer range. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. This value is optional and the default value is 100. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SetOrder

Sub SetOrder(ByVal Order As Long)

LayerRange

Description

The SetOrder method sets the order of layers in a layer rangein Corel PHOTO-PAINT. When you create multiple objects in an image, they are stacked on top of one another in the order in which they are created. The most recently created object is at the top of the stack, and the image background is always at the bottom. This stacking order determines the relationship between objects according to the sequence in which they are drawn. For example, you can move an object in the Image Window to cover an object that is lower in the stacking order. You can change the order of objects in the stack using the Order commands in the Object menu or using the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Order	Sets the stacking order of layers in a layer range. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SetPosition

Sub SetPosition(ByVal PositionX As Long, ByVal PositionY As Long)

LayerRange

Description

The SetPosition method sets the center point of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

PositionX	Sets the horizontal position of the layer's center point, in document units. [in]

PositionY	Sets the vertical position of the layer's center point, in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.SetSize

Sub SetSize([ByVal Width As Long = 0], [ByVal Height As Long = 0])

LayerRange

Description

The SetSize method sets the width and height of a layer range in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Width	The Width parameter sets the width of a layer, measured in document units. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Height	The Height parameter sets the height of a layer, measured in document units. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Skew

Sub Skew(ByVal HAngle As Double, ByVal VAngle As Double, [ByVal AntiAlias As Boolean = True])

LayerRange

Description

The Skew method skews a layer rangein Corel PHOTO-PAINT. Skewing refers to a slant of an object. Skewing a layer slants the layer in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

HAngle	The HAngle parameter specifies the degree in which to slant the layer horizontally. [in]

VAngle	The VAngle parameter specifies the degree in which to slant the layer vertically. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Stretch

Sub Stretch(ByVal XOrigin As Long, ByVal YOrigin As Long, ByVal XScale As Double, ByVal YScale As Double, [ByVal AntiAlias As Boolean = True], [ByVal Relative As Boolean = False])

LayerRange

Description

The Stretch method stretches a layer range in Corel PHOTO-PAINT. Stretching an object means to size an object horizontally or vertically. Stretching changes the size of an object in one direction only, as opposed to sizing, which maintains the aspect ratio (the ratio of height to width).

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

XOrigin	The XOrigin parameter specifies the horizontal position of the anchor point when stretching a layer. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

YOrigin	The YOrigin parameter specifies the vertical position of the anchor point when stretching a layer. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

XScale	The XScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

YScale	The YScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Relative	Description of Relative goes here [in]
Optional
Default value = False

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.Threshold

Sub Threshold(ByVal Threshold As Long)

LayerRange

Description

The Threshold method alters the edges of mask selections or objects by removing the smooth transition between a selection, or a layer range, and the underlying image in Corel PHOTO-PAINT. Threshold is a level of tolerance for tonal variation in a bitmap image. For example, when you convert an image to the Black-and-White color mode, the threshold you set determines how many tonal values are converted to black and how many to white. Threshold settings are also used in color-sensitive masks and some Effects filters.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Threshold	The Threshold parameter lets you change threshold values for the colors in an image by converting a range of colors to black or white. The threshold values that you set determine which pixels become black and which pixels become white. If you convert colors to black, only pixels with a brightness value that is lower than the threshold value are converted to black. If you convert colors to white, only pixels with a brightness value that is higher than the threshold value are converted to white. The Threshold brightness values range from 0 (black) to 255 (white). [in]

Example

Example of usage goes here

Code line

 Related Topics


LayerRange.UngroupAll

Sub UngroupAll()

LayerRange

Description

The UngroupAll method removes the grouping feature from all nested groups of a layer range in Corel PHOTO-PAINT. A group is a set of objects that behave as one unit. Also refers to the Group command. Most operations you perform on a group apply equally to each of its components.

Grouping objects lets you move, delete, or transform objects as a single entity. When you group objects, a highlighting box appears around them in the Image Window and a thick, black line connects the objects in the Objects Docker window.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Example

Example of usage goes here

Code line

 Related Topics


Layers properties

Layers     Legend

    Application
    Count
  Item
    Parent


Layers methods

Layers     Legend

   Add
   All
   AllExcluding
   Merge
   Paste
   Range
   Selection


Layers

Class Layers

Properties     Methods     Referenced By

The Layers class defines the characteristics of Layers collection objects and describes the look and behavior of the objects through its properties and methods.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The layering feature of Corel PHOTO-PAINT gives you added flexibility for organizing and editing the objects in your images. You can divide an image into multiple layers, each containing a portion of the image's contents. Together, layers act as a hierarchy that helps determine the vertical arrangement of an image's components. In this arrangement (the stacking order), objects on the top layer always overlay objects on the layer below.

 Related Topics


Layers.Application

Property Application As Application

Layers

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Layers.Count

Property Count As Long

Layers

Description

The Count property returns the number of layers in the Layers collection of Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain.

The Count property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Layers.Item

Property Item(ByVal IndexOrName As Variant) As Layer

Layers

Description

The Item property returns a value associated with the index number of a layer object in the Layers collection of Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain.

Layers(2) refers to the second layer object in the Layers collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Layers.Item(2) is the same as Layers(2) - they both reference the second layer object in the Layers collection.

You must reference a layer in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in a Layers collection; it uniquely identifies each member of the collection. Name is the unique string value that identifies each layer. [in]

Example

Example of usage goes here

Code line

 Related Topics


Layers.Parent

Property Parent As Document

Layers

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Layers.Add

Function Add([ByVal Name As String], [ByVal Opacity As Long = 100], [ByVal MergeMode As pntMergeMode = pntMergeNormal (0)], [ByVal CreationMode As pntCreationMode = pntEmptyLayer (0)], [ByVal Source As Object = Nothing]) As Layer

Layers

Description

The Add method adds a layer to the Layers collection in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Name	The Name parameter sets the name of the new layer in the collection. This value is optional. [in]
Optional

Opacity	The Opacity parameter sets the opacity level of the new layer in the collection. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. This value is optional and the default value is 100. [in]
Optional
Default value = 100

MergeMode	The MergeMode parameter sets the merge mode of the new layer in the collection. This value returns pntMergeMode. This value is optional and the default value is pntMergeNormal (0) [in]
Optional
Default value = pntMergeNormal (0)

CreationMode	The CreationMode parameter sets the creation mode of the new layer in the collection. This value returns pntCreationMode. This value is optional and the default value is pntEmptyLayer (0) [in]
Optional
Default value = pntEmptyLayer (0)

Source	The Source parameter sets the source of the new layer in the collection. This value is optional and the new value is Nothing. [in]
Optional
Default value = Nothing

Return value

Returns Layer

Example

Example of usage goes here

Code line

 Related Topics


Layers.All

Function All() As LayerRange

Layers

Description

The All method returns or sets a value associated with all layer objects in the Layers collection in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The All method allows you to reference all layers concurrently. The use of the All method makes it easier and faster to find, sort, and edit all layers in the Layers collection.

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


Layers.AllExcluding

Function AllExcluding(ByRef IndexArray() As Variant) As LayerRange

Layers

Description

The AllExcluding method returns or sets a value associated with a series of layer objects in the Layers collection in Corel PHOTO-PAINT, with the exception of the layers identified by their index numbers in the method parameters.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

You must reference the layers in the range by passing an index array as a parameter:

Parameters	Description

IndexArray	An IndexArray is a range of index numbers that identify and group specific layers in the Layers collection. By selecting a range of index numbers, you are selecting specific layer objects that become members of the array. [in]

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


Layers.Merge

Sub Merge()

Layers

Description

The Merge method merges a layer in the Layers collection with the background in Corel PHOTO-PAINT. The manner of a merge depends on the merge mode of the active layer. A merge mode is an editing state that determines how the selected paint, object, or fill color combines with other colors in the image. For example, if you apply color or merge an object into the background using the Normal merge mode, the selected color replaces the original color in the image. If you apply color or merge an object into the background using the Add merge mode, the paint and paper colors are combined to produce a brighter color.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

button , ALink(CLS_Layers;FNC_Merge) Related Topics

Example

Example of usage goes here

Code line

 Related Topics


Layers.Paste

Function Paste([ByVal X As Variant], [ByVal Y As Variant], [ByVal IntoMask As Boolean = False]) As LayerRange

Layers

Description

The Paste method pastes an object into all layers in the Layers collection of Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

X	Specifies the horizontal location of the pasted object in the Layers collection. This value is optional and is measured in document units. [in]
Optional

Y	Specifies the vertical location of the pasted object in the Layers collection. This value is optional and is measured in document units. [in]
Optional

IntoMask	Specifies a True or False value that indicates in an object is pasted into a specific mask in Layers collection. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. This value is optional and the default value is False. [in]
Optional
Default value = False

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


Layers.Range

Function Range(ByRef IndexArray() As Variant) As LayerRange

Layers

Description

The Range method returns or sets a value associated with a series of layer objects in the Layers collection in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

The Range method allows you to reference several layers concurrently. The use of an index range makes it easier and faster to find, sort, and edit multiple layers in the collection.

You must reference the layers in the range by passing an index array as a parameter:

Parameters	Description

IndexArray	An IndexArray is a range of index numbers that identify and group specific layers in the Layers collection. By selecting a range of index numbers, you are selecting specific layer objects that become members of the array. [in]

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


Layers.Selection

Function Selection() As LayerRange

Layers

Description

The Selection method creates a range of layers from the active selection of layers in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Return value

Returns LayerRange

Example

Example of usage goes here

Code line

 Related Topics


Mask properties

Mask     Legend

    Application
    Floater
    Floating
    IsEmpty
      Overlay
      PaintOnMask
    Parent
      PositionX
      PositionY
      SizeHeight
      SizeWidth


Mask methods

Mask     Legend

   AffineDistort
   AlignToDocument
   AlignToDocumentCenter
   AlignToGrid
   AlignToLayer
   AlignToLayerRange
   AlignToPoint
   Average
   Border
   CreateFromColorMask
   Delete
   Distort
   Expand
   Feather
   Flip
   GetPosition
   GetSize
   Grow
   Invert
   Load
   Move
   Reduce
   RemoveHoles
   Rotate
   SaveToNewChannel
   SelectAll
   SetPosition
   SetSize
   Similar
   Skew
   Smooth
   Stretch
   Threshold


Mask

Class Mask

Properties     Methods     Referenced By

The Mask class defines the characteristics of mask objects and describes the look and behavior of the objects through its properties and methods.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

A mask mode is a mask tool operation mode you must choose before you create or fine-tune a mask or selection. There are four mask modes: Normal, Additive, Subtractive, and XOR. The Normal mode (default) lets you select an area in an image. The Additive mode lets you expand the editable regions by selecting multiple areas in an image. The Subtractive mode lets you reduce the editable regions by removing areas from a selection. The XOR mode lets you select multiple areas in an image. If areas overlap, the overlapping regions are excluded from the selection and added to the mask.

 Related Topics


Mask.Application

Property Application As Application

Mask

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Mask.Floater

Property Floater As Floater

Mask

Description

The Floater property returns a value associated with a floater selection in a mask in Corel PHOTO-PAINT. A floating selection is a selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Mask.Floating

Property Floating As Boolean

Mask

Description

The Floating property returns a True or False value that indicates whether or not a mask is a floating selection in Corel PHOTO-PAINT. A floating selection is a selection that hovers or floats above an image and can be moved and modified without affecting the underlying pixels. You can paste information stored in the Clipboard as a floating selection in an image. When you defloat a selection, the pixels contained in the floating selection are merged with those in the underlying image.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Mask.IsEmpty

Property IsEmpty As Boolean

Mask

Description

The IsEmpty property returns a True or False value that indicates whether or not a mask is empty in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Mask.Overlay

Property Overlay As Boolean

Mask

Description

The IsEmpty property returns a True or False value that indicates whether or not a mask is an overlay mask in Corel PHOTO-PAINT. An overlay mask is a red-tinted, transparent sheet that you can superimpose on the protected areas in an image. The mask overlay makes it easy to distinguish between the selected and the masked regions in an image. When the overlay is applied, the masked areas are displayed in varying degrees of red (according to their transparency). The deeper the saturation of the red tint, the greater the degree of protection.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

This property returns a Read-Only value.

Example

Example of usage goes here

Code line

 Related Topics


Mask.PaintOnMask

Property PaintOnMask As Boolean

Mask

Description

The PaintOnMask property returns or sets a True or False value that indicates whether a mask is in Paint On Mask mode. The Paint On Mask mode lets you expand or reduce a selection by using a grayscale representation of the pixels: protected areas appear in black, editable areas in white, and areas that are partially masked or partially selected appear in gray.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.Parent

Property Parent As Document

Mask

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


Mask.PositionX

Property PositionX As Long

Mask

Description

The PositionX property returns or sets the horizontal position of a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_PositionX) Related Topics

Example

Example of usage goes here

Code line

 Related Topics


Mask.PositionY

Property PositionY As Long

Mask

Description

The PositionY property returns or sets the vertical position of a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.SizeHeight

Property SizeHeight As Long

Mask

Description

The SizeHeight property returns or sets the height of a mask object in Corel PHOTO-PAINT, measured in documents units. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.SizeWidth

Property SizeWidth As Long

Mask

Description

The SizeWidth property returns or sets the width of a mask object in Corel PHOTO-PAINT, measured in documents units. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.AffineDistort

Sub AffineDistort(ByVal OffsetX As Long, ByVal OffsetY As Long, ByVal d11 As Double, ByVal d12 As Double, ByVal d21 As Double, ByVal d22 As Double, [ByVal AntiAlias As Boolean = True])

Mask

Description

The AffineDistort method distorts a mask in Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles. This method is used by CorelSCRIPT to record manual manipulation of a mask area. If you want to distort a mask in Corel SCRIPT, use the MaskDistort command.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Parameters	Description

OffsetX	Sets the horizontal offset of the distortion. [in]

OffsetY	Sets the vertical offset of the distortion. [in]

d11	Sets a value that creates the distortion of one side of the layer. [in]

d12	Sets a value that creates the distortion of one side of the layer. [in]

d21	Sets a value that creates the distortion of one side of the layer. [in]

d22	Sets a value that creates the distortion of one side of the layer. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToDocument

Sub AlignToDocument(ByVal Type As pntAlignType)

Mask

Description

The AlignToDocument method sets the alignment of a mask, according to the alignment type in a document in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_AlignToDocument) Related Topics

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToDocumentCenter

Sub AlignToDocumentCenter(ByVal Type As pntAlignType)

Mask

Description

The AlignToDocumentCenter aligns a mask to the center of a document in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToGrid

Sub AlignToGrid(ByVal Type As pntAlignType)

Mask

Description

The AlignToGrid method aligns a mask to the grid in Corel PHOTO-PAINT. A Grid is a series of evenly spaced horizontal and vertical dots that are used to help draw and arrange objects. You can use the controls on the Grid and Ruler Setup dialog box to set the grid's parameters. For greater accuracy, you can also have objects in your illustration snap to the grid when you move, or draw them.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToLayer

Sub AlignToLayer(ByVal Type As pntAlignType, ByVal Layer As Layer)

Mask

Description

The AlignToLayer method aligns a mask to a layer in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_AlignToLayer) Related Topics

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

Layer	The Layer parameter identifies the layer to which the mask is aligned with the AlignToLayer method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToLayerRange

Sub AlignToLayerRange(ByVal Type As pntAlignType, ByVal LayerRange As LayerRange)

Mask

Description

The AlignToLayerRange method aligns a mask to a range of layers in Corel PHOTO-PAINT. A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

LayerRange	The LayerRange parameter identifies the range of layers to which the active layer is aligned with the AlignToLayerRange method. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.AlignToPoint

Sub AlignToPoint(ByVal Type As pntAlignType, ByVal X As Long, ByVal Y As Long)

Mask

Description

The AlignToPoint method aligns a mask to a specified point in Corel PHOTO-PAINT.A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_AlignToPoint) Related Topics

Parameters	Description

Type	The Type parameter sets the alignment type and returns a value of pntAlignType. [in]

X	Sets the horizontal coordinate of a point, measured in document units. [in]

Y	Sets the horizontal coordinate of a point, measured in document units. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Average

Sub Average(ByVal Radius As Long)

Mask

Description

The Average method samples all the pixels in the specified area of a mask and assigns an average color value to each one in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Radius	Defines the radius value in a mask. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Border

Sub Border(ByVal Width As Long, [ByVal Type As pntBorderType = pntBorderHard (0)])

Mask

Description

The Border method creates a new mask border along the edges of the original mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Width	Sets the width of the border. [in]

Type	Sets the border type. This value returns pntBorderType. This value is optional and the default value is pntBorderHard (0). [in]
Optional
Default value = pntBorderHard (0)

Example

Example of usage goes here

Code line

 Related Topics


Mask.CreateFromColorMask

Sub CreateFromColorMask(ByVal ColorMask As ColorMask, [ByVal MaskMode As pntMaskMode = pntMaskNormal (0)])

Mask

Description

The CreateFromColorMask method creates a new mask from a color mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A color mask is a mask that you use to protect colors in an image. Only pixels that fall within the color range you specify are included in the color mask. You can use the Magic Wand Mask tool, the Lasso Mask tool, or the Color Mask command to create color masks.

Parameters	Description

ColorMask	Specifies the color mask to use when creating a new mask. [in]

MaskMode	Sets the mask mode when creating a new mask. This value returns pntMaskMode. This value is optional and the default value is pntMaskNormal (0). [in]
Optional
Default value = pntMaskNormal (0)

Example

Example of usage goes here

Code line

 Related Topics


Mask.Delete

Sub Delete()

Mask

Description

The Delete method deletes a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.Distort

Sub Distort(ByVal x1 As Long, ByVal y1 As Long, ByVal x2 As Long, ByVal y2 As Long, ByVal x3 As Long, ByVal y3 As Long, ByVal x4 As Long, ByVal y4 As Long, [ByVal AntiAlias As Boolean = True])

Mask

Description

The Distort method distorts the shape of the current mask in Corel PHOTO-PAINT. Distorting an object lets you stretch it non-proportionately. You can distort an object in the Image Window using the distortion handles.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_Distort) Related Topics

Parameters	Description

x1	Sets the distortion value for the horizontal coordinate of a mask's corner. [in]

y1	Sets the distortion value for the vertical coordinate of a mask's corner. [in]

x2	Sets the distortion value for the horizontal coordinate of a mask's corner. [in]

y2	Sets the distortion value for the vertical coordinate of a mask's corner. [in]

x3	Sets the distortion value for the horizontal coordinate of a mask's corner. [in]

y3	Sets the distortion value for the vertical coordinate of a mask's corner. [in]

x4	Sets the distortion value for the horizontal coordinate of a mask's corner. [in]

y4	Sets the distortion value for the vertical coordinate of a mask's corner. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Mask.Expand

Sub Expand(ByVal Width As Long)

Mask

Description

The Expand method extends transparent areas of the mask into opaque areas by a given number of pixels in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Width	Defines the new with of the mask, measured in pixels. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Feather

Sub Feather(ByVal Width As Long, [ByVal Type As pntFeatherType = pntFeatherAverage (0)], [ByVal Edges As pntEdgeType = pntEdgeLinear (0)])

Mask

Description

The Feather method feathers the edges of a mask in Corel PHOTO-PAINT. Feathering is the gradual blending of pixels between a selection or an object and the surrounding background. Feathering produces a softer, more natural-looking edge.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Width	Sets the width of a feather effect of a mask's edges. [in]

Type	Sets the feather type, which returns a value of pntFeatherType. This value is optional and the default value is pntFeatherAverage (0). [in]
Optional
Default value = pntFeatherAverage (0)

Edges	Sets the feather edge, which returns a value of pntEdgeType. This value is optional and the default value is pntEdgeLinear (0) [in]
Optional
Default value = pntEdgeLinear (0)

Example

Example of usage goes here

Code line

 Related Topics


Mask.Flip

Sub Flip(ByVal Axes As cdrFlipAxes)

Mask

Description

The Flip method flips a mask object in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

A mask can be flipped horizontally, vertically, or both.

Parameters	Description

Axes	Sets the manner of the flip in the layer object. This value returns cdrFlipAxes. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.GetPosition

Sub GetPosition(ByRef PositionX As Long, ByRef PositionY As Long)

Mask

Description

The GetPosition method gets the position of a mask object in Corel PHOTO-PAINT.A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_GetPosition) Related Topics

Parameters	Description

PositionX	Gets the horizontal position of the mask's center point, in document units. [out]

PositionY	Gets the vertical position of the mask's center point, in document units. . [out]

Example

Example of usage goes here

Code line

 Related Topics


Mask.GetSize

Sub GetSize(ByRef Width As Long, ByRef Height As Long)

Mask

Description

The GetSize method gets the width and height of a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Width	The Width parameter gets the width of a mask, measured in document units. [out]

Height	The Height parameter gets the height of a mask, measured in document units. [out]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Grow

Sub Grow([ByVal AntiAlias As Boolean = True], [ByVal UseLayer As Boolean = False], [ByVal Layer As Layer = Nothing], [ByVal Tolerance As pntToleranceMode = pntToleranceNormal (0)], [ByVal Normal As Long = 0], [ByVal Hue As Long = 0], [ByVal Saturation As Long = 0], [ByVal Brightness As Long = 0])

Mask

Description

Expands a mask to include areas of the image with similar pixel colors. The mask continues to expand until all of the adjacent colors that meet the selection criteria are included.

Parameters	Description

AntiAlias	Description of AntiAlias goes here [in]
Optional
Default value = True

UseLayer	Description of UseLayer goes here [in]
Optional
Default value = False

Layer	Description of Layer goes here [in]
Optional
Default value = Nothing

Tolerance	Description of Tolerance goes here [in]
Optional
Default value = pntToleranceNormal (0)

Normal	Description of Normal goes here [in]
Optional
Default value = 0

Hue	Description of Hue goes here [in]
Optional
Default value = 0

Saturation	Description of Saturation goes here [in]
Optional
Default value = 0

Brightness	Description of Brightness goes here [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Mask.Invert

Sub Invert()

Mask

Description

The Invert method reverses the area included in the mask in Corel PHOTO-PAINT. Often, it is easier to select the areas you want to protect from changes and then invert the selection. For example, if you want to edit a complex, irregularly shaped area, you can begin by selecting the surrounding area. Then, you can reverse the mask so that the area that was initially selected is protected, and the area that was masked is selected, i.e., available for editing.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.Load

Sub Load(ByVal FileName As String, [ByVal LoadMode As pntLoadMode = pntLoadAll (0)], [ByVal Left As Long = 0], [ByVal Top As Long = 0], [ByVal Width As Long = 0], [ByVal Height As Long = 0], [ByVal CropLeft As Long = 0], [ByVal CropTop As Long = 0], [ByVal CropWidth As Long = 0], [ByVal CropHeight As Long = 0])

Mask

Description

The Load method loads a mask from a file outside of Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_Load) Related Topics

Parameters	Description

FileName	Specifies the computer location of the file containing the mask object that is loaded into Corel PHOTO-PAINT. [in]

LoadMode	Sets the load mode of the mask. This value returns pntLoadMode. This value is optional and the default value is pntLoadAll (0). [in]
Optional
Default value = pntLoadAll (0)

Left	Sets the left position of the mask. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Top	Sets the top position of the mask. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Width	Sets the width of the mask. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Height	Sets the height of the mask. This value is optional and the default value is 0. [in]
Optional
Default value = 0

CropLeft	Sets the left position of the mask if cropped. This value is optional and the default value is 0. [in]
Optional
Default value = 0

CropTop	Sets the top position of the mask if cropped. This value is optional and the default value is 0. [in]
Optional
Default value = 0

CropWidth	Sets the width of the mask if cropped. This value is optional and the default value is 0. [in]
Optional
Default value = 0

CropHeight	Sets the height of the mask if cropped. This value is optional and the default value is 0. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Mask.Move

Sub Move(ByVal Dx As Long, ByVal Dy As Long)

Mask

Description

The Move method changes the position of a mask object by moving it a specified distance from its original location in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_Move) Related Topics

Parameters	Description

Dx	The Dx parameter specifies the horizontal distance to move a mask with the Move method. Delta refers to a limited incremental value in a variable. [in]

Dy	The Dy parameter specifies the vertical distance to move a mask with the Move method. Delta refers to a limited incremental value in a variable. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Reduce

Sub Reduce(ByVal Width As Long)

Mask

Description

The Reduce method extends opaque areas of the mask into transparent areas by a given number of pixels in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Parameters	Description

Width	Sets the new width of the mask, measured in pixels. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.RemoveHoles

Sub RemoveHoles()

Mask

Description

The RemoveHoles method removes the holes in a mask in Corel PHOTO-PAINT. When you use the Lasso Mask tool, the Magic Wand Mask tool, or the Color Mask command to select areas on an image, you often end up with masked regions that are completely surrounded by the selection. You can unmask these "holes" and make them part of the selection and editable.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.Rotate

Sub Rotate(ByVal Angle As Double, ByVal CenterX As Long, ByVal CenterY As Long, [ByVal AntiAlias As Boolean = True])

Mask

Description

The Rotate method rotates the mask a specified degree in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Angle	Sets the angle of rotation, in degrees. [in]

CenterX	Sets the horizontal position for the center of rotation. [in]

CenterY	Sets the vertical position for the center of rotation. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Mask.SaveToNewChannel

Function SaveToNewChannel([ByVal Name As String], [ByVal Opacity As Long = 50], [ByVal Color As Color = Nothing], [ByVal InvertOverlay As Boolean = False]) As Channel

Mask

Description

SAVE TO NEW CHANNEL

Parameters	Description

Name	Description of Name goes here [in]
Optional

Opacity	Description of Opacity goes here [in]
Optional
Default value = 50

Color	Description of Color goes here [in]
Optional
Default value = Nothing

InvertOverlay	Description of InvertOverlay goes here [in]
Optional
Default value = False

Return value

Returns Channel

Example

Example of usage goes here

Code line

 Related Topics


Mask.SelectAll

Sub SelectAll()

Mask

Description

The SelectAll method selects all mask objects in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Example

Example of usage goes here

Code line

 Related Topics


Mask.SetPosition

Sub SetPosition(ByVal PositionX As Long, ByVal PositionY As Long)

Mask

Description

The SetPosition method sets the position of a mask object in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

PositionX	Sets the horizontal position of the mask's center point, in document units. [in]

PositionY	Sets the vertical position of the mask's center point, in document units. . [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.SetSize

Sub SetSize([ByVal Width As Long = 0], [ByVal Height As Long = 0])

Mask

Description

The SetSize method sets the width and height of a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Width	The Width parameter sets the width of a mask, measured in document units. [in]
Optional
Default value = 0

Height	The Height parameter sets the height of a mask, measured in document units. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Mask.Similar

Sub Similar([ByVal AntiAlias As Boolean = True], [ByVal UseLayer As Boolean = False], [ByVal Layer As Layer = Nothing], [ByVal Tolerance As pntToleranceMode = pntToleranceNormal (0)], [ByVal Normal As Long = 0], [ByVal Hue As Long = 0], [ByVal Saturation As Long = 0], [ByVal Brightness As Long = 0])

Mask

Description

Adds to the current mask area any areas of the image having colors similar to the image color within the current mask area.

Parameters	Description

AntiAlias	Description of AntiAlias goes here [in]
Optional
Default value = True

UseLayer	Description of UseLayer goes here [in]
Optional
Default value = False

Layer	Description of Layer goes here [in]
Optional
Default value = Nothing

Tolerance	Description of Tolerance goes here [in]
Optional
Default value = pntToleranceNormal (0)

Normal	Description of Normal goes here [in]
Optional
Default value = 0

Hue	Description of Hue goes here [in]
Optional
Default value = 0

Saturation	Description of Saturation goes here [in]
Optional
Default value = 0

Brightness	Description of Brightness goes here [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


Mask.Skew

Sub Skew(ByVal HAngle As Double, ByVal VAngle As Double, [ByVal AntiAlias As Boolean = True])

Mask

Description

The Skew method skews the active mask in Corel PHOTO-PAINT. Skewing refers to a slant of an object. Skewing a layer slants the layer in Corel PHOTO-PAINT.

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_Skew) Related Topics

Parameters	Description

HAngle	The HAngle parameter specifies the degree in which to slant the mask horizontally. [in]

VAngle	The VAngle parameter specifies the degree in which to slant the mask vertically. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Mask.Smooth

Sub Smooth(ByVal Radius As Long)

Mask

Description

The Smooth method smoothes over or rounds off the sharp angles of a mask in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Radius	Sets the degree of smoothness in the mask. [in]

Example

Example of usage goes here

Code line

 Related Topics


Mask.Stretch

Sub Stretch(ByVal XOrigin As Long, ByVal YOrigin As Long, ByVal XScale As Double, ByVal YScale As Double, [ByVal AntiAlias As Boolean = True])

Mask

Description

The Stretch method stretches the active mask in Corel PHOTO-PAINT. Stretching an object means to size an object horizontally or vertically. Stretching changes the size of an object in one direction only, as opposed to sizing, which maintains the aspect ratio (the ratio of height to width).

A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

button , ALink(CLS_Mask;FNC_Stretch) Related Topics

Parameters	Description

XOrigin	The XOrigin parameter specifies the horizontal position of the anchor point when stretching a mask. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

YOrigin	The YOrigin parameter specifies the vertical position of the anchor point when stretching a mask. The anchor point is the point that remains stationary when you stretch, scale, mirror, or skew an object. This value is optional and the default value is 0. This value is measured in document units. [in]

XScale	The XScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

YScale	The YScale parameter specifies the width value of the aspect ratio used when stretching objects. The aspect ratio is the ratio of the width of an image to its height (expressed mathematically as x:y). For example, the aspect ratio of an image that is 640 x 480 pixels is 4:3. This value is optional and the default value is 100. [in]

AntiAlias	The AntiAlias parameter sets a True or False value that indicates whether or not selections with curved and diagonal lines have their jagged edges removed. Anti-Aliasing is a method of smoothing the curved and diagonal edges contained in bitmap images. Anti-aliasing partially fills intermediate pixels along those edges to smooth the transition between the edge and the surrounding image. Anti-aliasing reduces or eliminates jagged edges. This value is optional and the default value is True. [in]
Optional
Default value = True

Example

Example of usage goes here

Code line

 Related Topics


Mask.Threshold

Sub Threshold(ByVal Threshold As Long)

Mask

Description

The Threshold method converts grayscale to a black and white (or bi-level) mask using the specified threshold value in Corel PHOTO-PAINT. A mask is a selection tool that isolates the area that you want to protect from changes when you apply color, filters, or other effects to an image. A mask acts as a protective layer or sheet that covers the area on an image that should not be affected by your editing. When you select an area on an image using a mask tool, this area is available for editing, while the rest of the image is masked, i.e., protected from changes. You can create regular and color masks.

Parameters	Description

Threshold	The Threshold parameter lets you change threshold values for the colors in an image by converting a range of colors to black or white. The threshold values that you set determine which pixels become black and which pixels become white. If you convert colors to black, only pixels with a brightness value that is lower than the threshold value are converted to black. If you convert colors to white, only pixels with a brightness value that is higher than the threshold value are converted to white. The Threshold brightness values range from 0 (black) to 255 (white). [in]

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer properties

ObjectLayer     Legend

    Application
    ClipMask
    DropShadow
    IsTextLayer
    Parent


ObjectLayer methods

ObjectLayer     Legend

   AddClipMask
   Defringe
   RemoveMatte


ObjectLayer

Class ObjectLayer

Properties     Methods     Referenced By

The ObjectLayer class defines the characteristics of object layers and describes the look and behavior of the objects through its properties and methods. An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

 Related Topics


ObjectLayer.Application

Property Application As Application

ObjectLayer

Description

The ObjectLayer class defines the characteristics of object layers and describes the look and behavior of the objects through its properties and methods. An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Read-Only

 Related Topics


ObjectLayer.ClipMask

Property ClipMask As ClipMask

ObjectLayer

Description

The ClipMask property returns a value associated with a clip mask object on the object layer in Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer.DropShadow

Property DropShadow As DropShadow

ObjectLayer

Description

The DropShadow property returns a value associated with a drop shadow effect object on the object layer in Corel PHOTO-PAINT. By adding drop shadows, you create the illusion of depth between objects. You can create two types of object drop shadows: flat and perspective. Flat drop shadows silhouette objects. Perspective drop shadows create three-dimensional depth.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer.IsTextLayer

Property IsTextLayer As Boolean

ObjectLayer

Description

The IsTextLayer property returns a True or False value that indicates whether or not an object layer is a text layer in Corel PHOTO-PAINT. An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

This property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer.Parent

Property Parent As Layer

ObjectLayer

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


ObjectLayer.AddClipMask

Sub AddClipMask(ByVal CreationMode As pntClipMaskMode, [ByVal OpacityLevel As Long = 0])

ObjectLayer

Description

The AddClipMask method adds a clip masks object to an object layer in Corel PHOTO-PAINT. A clip mask is a mask that lets you edit an object's transparency levels without affecting the pixels in the object. You can change the transparency levels directly on the object and then add the clip mask, or add the clip mask before making the changes.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

CreationMode	Sets the creation mode for the new clip mask on the object layer. This value returns pntClipMaskMode. [in]

OpacityLevel	Sets the level of opacity in the new clip mask on the object layer. This value is optional and the default value is 0. Opacity is the opposite of transparency. If an area is 100% opaque, you cannot see through it. Levels under 100% increase the ability to see through objects. [in]
Optional
Default value = 0

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer.Defringe

Sub Defringe(ByVal Amount As Long)

ObjectLayer

Description

The Defringe method defringes the edges of the object layer in Corel PHOTO-PAINT. The Defringe method replaces the color of the pixels that lie along the outside edge of an object with the color of the pixels that lie inside the boundaries of the object.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

An object can have stray pixels along its edges; these strays contrast with neighboring pixels, giving the object a slightly ragged effect. Defringing stray pixels blends the object with the background to create a smooth, polished appearance.

Parameters	Description

Amount	Sets the level of the defringe effect in the edges of the object layer. Large defringe values create a gradual transition between the edges of the object and the background. Values range from 1 to 100. [in]

Example

Example of usage goes here

Code line

 Related Topics


ObjectLayer.RemoveMatte

Sub RemoveMatte(ByVal Type As pntMatteType)

ObjectLayer

Description

The RemoveMatte method removes a matte from the object layer in Corel PHOTO-PAINT. You can change the transparency of the pixels along the edge of a feathered object using the Remove Matte commands. The more transparent the pixels are, the more you can see through them. The Remove Black Matte command makes semitransparent pixels more transparent. The Remove White Matte command makes semitransparent pixels less transparent.

An object is an independent bitmap that is layered above the background image. Transformations applied to objects do not affect the underlying image. The object layer is the layer containing an object in Corel PHOTO-PAINT.

A layer is one of a series of transparent planes on which you can place objects in an image. You can control how objects in your image overlay one another by moving the layer and the objects they contain. You can also lock layers and make them invisible and nonprintable. Use layers to help you organize different components of a complex image.

Parameters	Description

Type	Sets the type of matte that is removed from an object layer. This value returns pntMatteType. [in]

Example

Example of usage goes here

Code line

 Related Topics


Palette properties

Palette     Legend

    Application
      Color
    ColorCount
    DuplicatePresent
    FileName
      Name
    PaletteID
    Parent
    Type


Palette methods

Palette     Legend

   AddColor
   Close
   Colors
   FindColor
   GetIndexOfColor
   InsertColor
   MatchColor
   RemoveColor
   Save


Palette

Class Palette

Properties     Methods     Referenced By

The Palette class defines the characteristics of palette objects and describes the look and behavior of the objects through its properties and methods.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The on-screen color palette is a toolbar that displays a series of color swatches. It is used to select colors for use in Corel PHOTO-PAINT. You can display multiple on-screen Color Palettes. They can be docked or left floating in the Application Window.

The Default on-screen Color Palette is the color palette that you will see in any of the drop down color pickers. You can select any Color Palette to be the Default on-screen Color Palette.

You have the ability to display multiple on-screen Color Palettes, and keep them floating, or dock them to any edge of the Application Window.

There are two types of color palettes from which you can choose colors: fixed color palettes and custom color palettes. On-screen Color Palettes are used to display and select colors from both fixed and custom color palettes.

Fixed color palettes

Fixed color palettes are provided by third-party manufacturers and are most useful when accompanied by a color swatch book. A swatch book is a collection of color samples that shows exactly what each color looks like when printed.

Custom color palettes are collections of colors you have chosen to save as a color palette file (.CPL extension).You have the ability to copy a color swatch by dragging a color swatch from any palette into your custom palettes. There is no limit to the number of custom palettes you can create.

When you create a custom palette, the palette is empty and ready for you to choose the colors you want to include in it. You can create a custom palette that includes all the colors from the object that you selected or from the current document.

 Related Topics


Palette.Application

Property Application As Object

Palette

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub PaletteApp()

With ActivePalette

 MsgBox .Application.Version

End With

End Sub

 Related Topics


Palette.Color

Property Color(ByVal Index As Long) As Color

Palette

Description

The Color property returns or set a value associated with a specific color in a palette in Corel PHOTO-PAINT. The color is identified by its index number.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

You must reference a color in the palette by passing its index number as a parameter:

Parameters	Description

Index	Index is a preset placeholder for each color object in a Palette; it uniquely identifies each color in the palette object. [in]

Example

The following code example displays the name of the first color in the active palette in a message box:

Sub PaletteColorName()

With ActivePalette

 MsgBox .Color(1).Name

End With

End Sub

 Related Topics


Palette.ColorCount

Property ColorCount As Long

Palette

Description

The ColorCount property returns a value associated with the number of colors in a color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The ColorCount property returns a Read-Only value.

The following code example displays the total number of colors found in the active palette of Corel PHOTO-PAINT:

Sub PaletteColorCount()

With ActivePalette

 MsgBox .ColorCount

End With

End Sub

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Palette.DuplicatePresent

Property DuplicatePresent As Boolean

Palette

Description

The DuplicatePresent property returns a True or False value indicating if a color is repeated in a color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

If the value returned is True, the color is duplicated in the color palette. If the value is False, the color is unique within the palette.

The DuplicatePresent property returns a Read-Only value.

The following code example displays a true or false value in a message box, indicating the presence of a duplicated color in the active palette of Corel PHOTO-PAINT:

Sub PaletteDuplicate()

With ActivePalette

 MsgBox .DuplicatePresent

End With

End Sub

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Palette.FileName

Property FileName As String

Palette

Description

Gets the filename of the palette

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Palette.Name

Property Name As String

Palette

Description

The Name property returns or sets a string value associated with the name of a palette object in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The palette name can only be set with the Name property if the palette is a custom palette.

Example

The following code example displays the name of the active palette in Corel PHOTO-PAINT:

Sub PaletteName()

With ActivePalette

 MsgBox .Name

End With\line End Sub

 Related Topics


Palette.PaletteID

Property PaletteID As cdrPaletteID

Palette

Description

The PaletteID property returns a value associated with the type of a palette in Corel PHOTO-PAINT. The value returned is cdrPaletteID.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The PaletteID returns a Read-Only value.

The following code example displays the ID number of the active palette in a message box. The ID number references a type of palette in Corel PHOTO-PAINT:

Sub IDPalette()

With ActivePalette

 MsgBox .PaletteID

End With

End Sub

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Palette.Parent

Property Parent As Object

Palette

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the parent object of a color in the active palette of Corel PHOTO-PAINT:

Sub PaletteParent(0

With ActivePalette

 MsgBox .Colors.Parent.Name

End With

End Sub

 Related Topics


Palette.Type

Property Type As cdrPaletteType

Palette

Description

The Type property returns a value indicating if a color palette is a custom or fixed color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The value returned is cdrPaletteType.

The Type property returns a Read-Only value.

Read-Only

Example

The following code example displays the type of the active palette in Corel PHOTO-PAINT:

Sub PaletteType()

With ActivePalette

 MsgBox .Type

End With

End Sub

 Related Topics


Palette.AddColor

Sub AddColor(ByVal Color As Color)

Palette

Description

The AddColor method adds a color swatch to a custom palette in Corel PHOTO-PAINT.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

In order to add a color to a custom palette, you must pass the color name as a parameter in the AddColor method:

Parameters	Description

Parameters	Description

Color	Color creates a new color in a palette object in Corel PHOTO-PAINT. [in]

Example

The following code example adds a new color to the active color palette using the CreateColorEx method. The new color is added to the active color palette in Corel PHOTO-PAINT:

Sub CreatePaletteColor()

ActivePalette.AddColor CreateColorEx(2, 90, 90, 0, 0)

End Sub

 Related Topics


Palette.Close

Sub Close()

Palette

Description

The Close method closes a specified color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Example

The following code example closes the active palette in Corel PHOTO-PAINT:

Sub PaletteClose()

ActivePalette.Close

End Sub

 Related Topics


Palette.Colors

Function Colors() As Colors

Palette

Description

The Colors property returns or sets a value associated with the Colors collection in a palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Return value

Returns Colors

Example

The following code example displays the number of colors in the colors collection of the active palette in Corel PHOTO-PAINT:

Sub PaletteColors()

With ActivePalette

 MsgBox .Colors.Count

End With

End Sub

 Related Topics


Palette.FindColor

Function FindColor(ByVal Name As String) As Long

Palette

Description

Finds the color by name

Parameters	Description

Name	Description of Name goes here [in]

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


Palette.GetIndexOfColor

Function GetIndexOfColor(ByVal Color As Color) As Long

Palette

Description

The GetIndexOfColor property returns a value associated with the index number of a color in a palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The GetIndexOfColor property returns a Read-Only value.

Parameters	Description

Color	Specifies a color swatch in a palette object in Corel PHOTO-PAINT. [in]

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


Palette.InsertColor

Sub InsertColor(ByVal Index As Long, ByVal Color As Color)

Palette

Description

The InsertColor method places an existing color into a custom palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

In order to insert a color with the InsertColor method, you must past the index and color values as parameters:

Parameters	Description

Index	Index is a preset placeholder for each color object in a Palette; it uniquely identifies each color in the palette object. [in]

Color	Color creates a new color in a palette object in Corel PHOTO-PAINT. [in]

Example

Example of usage goes here

Code line

 Related Topics


Palette.MatchColor

Function MatchColor(ByVal Color As Color) As Long

Palette

Description

Finds the closest match for the color from the given palette

Parameters	Description

Color	Description of Color goes here [in]

Return value

Returns Long

Example

Example of usage goes here

Code line

 Related Topics


Palette.RemoveColor

Sub RemoveColor(ByVal Index As Long)

Palette

Description

The RemoveColor method removes a color from a custom palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

In order to remove a color with the RemoveColor method, you must pass the color's index number as a parameter:

Parameters	Description

Index	Index is a preset placeholder for each color object in a Palette; it uniquely identifies each color in the palette object. [in]

Example

The following code example removed the first color from the active palette in Corel PHOTO-PAINT:

Sub PaletteRemove()

With ActivePalette

 .RemoveColor(1)

End With

End Sub

 Related Topics


Palette.Save

Sub Save()

Palette

Description

The Save method saves a color palette for future use in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Example

The following code example saves the current color palette in Corel PHOTO-PAINT:

Sub PaletteSave()

ActivePalette.Save

End Sub

 Related Topics


Palettes properties

Palettes     Legend

    Application
    Count
  Item
    Parent


Palettes methods

Palettes     Legend

   Create
   Open
   OpenFixed


Palettes

Class Palettes

Properties     Methods     Referenced By

The Palette class defines the characteristics of Palettes collection objects and describes the look and behavior of the objects through its properties and methods.

A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The on-screen color palette is a toolbar that displays a series of color swatches. It is used to select colors for use in Corel PHOTO-PAINT. You can display multiple on-screen Color Palettes. They can be docked or left floating in the Application Window.

The Default on-screen Color Palette is the color palette that you will see in any of the drop down color pickers. You can select any Color Palette to be the Default on-screen Color Palette.

You have the ability to display multiple on-screen Color Palettes, and keep them floating, or dock them to any edge of the Application Window.

There are two types of color palettes from which you can choose colors: fixed color palettes and custom color palettes. On-screen Color Palettes are used to display and select colors from both fixed and custom color palettes.

Fixed color palettes

Fixed color palettes are provided by third-party manufacturers and are most useful when accompanied by a color swatch book. A swatch book is a collection of color samples that shows exactly what each color looks like when printed.

Custom color palettes are collections of colors you have chosen to save as a color palette file (.CPL extension).You have the ability to copy a color swatch by dragging a color swatch from any palette into your custom palettes. There is no limit to the number of custom palettes you can create.

When you create a custom palette, the palette is empty and ready for you to choose the colors you want to include in it. You can create a custom palette that includes all the colors from the object that you selected or from the current document.

 Related Topics


Palettes.Application

Property Application As Object

Palettes

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub PalettesApp()

With Palettes

 MsgBox "You are using Corel PHOTO-PAINT " & .Application.Version

End With

End Sub

 Related Topics


Palettes.Count

Property Count As Long

Palettes

Description

The Count property returns the number of palettes in the Palettes collection of Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

The Count property returns a Read-Only value.

Read-Only

Example

The following code example displays the number of open color palettes in the current session of Corel PHOTO-PAINT in a message box:

Sub PalettesCount()

MsgBox Palettes.Count

End Sub

 Related Topics


Palettes.Item

Property Item(ByVal IndexOrName As Variant) As Palette

Palettes

Description

The Item property returns a value associated with the index number of a Palette object in the Palettes collection of Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

Palettes(2) refers to the second palette object in the Palettes collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Palettes.Item(2) is the same as Palettes(2) - they both reference the second palette object in the Palettes collection.

You must reference a palette in the collection by passing its index number or name as a parameter:

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in a Palettes collection; it uniquely identifies each member of the collection. Name is the unique text name given to each palette. [in]

Example

The following code example displays the number of colors in the first palette in the Palettes collection in a message box:

Sub PalettesItem()

With Palettes.Item(1)

'Palettes(1) may be used here

 MsgBox .Colors.Count

End With

End Sub

 Related Topics


Palettes.Parent

Property Parent As Object

Palettes

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the parent object of the first palettes' colors in a message box:

Sub PalettesParent()

With Palettes.Item(1)

 MsgBox .Colors.Parent.Name

End With

End Sub

 Related Topics


Palettes.Create

Function Create(ByVal Name As String, [ByVal FileName As String], [ByVal Overwrite As Boolean = False]) As Palette

Palettes

Description

The Create method creates a new empty custom color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper. Once a new palette is created, you can add colors to it according to your needs.

In order to create a new custom palette with the Create method, you must pass a palette name and an overwrite specification as parameters:

Parameters	Description

Name	Name is a string value that identifies the new custom palette. Since the palette is new, you must give it a new name when you use the Create method. [in]

FileName	Description of FileName goes here [in]
Optional

Overwrite	The Overwrite parameter allows you to remove the existing palette in Corel PHOTO-PAINT and replace it with the new palette created with the Create method. By setting the value to True, you will replace the default palette with the new palette. If set to False, the new palette co-exists with the default palette. The default value is False.
 [in]
Optional
Default value = False

Return value

Returns Palette

Example

The following code example creates an empty custom color palette in Corel PHOTO-PAINT. Since the Overwrite parameter is False by default, it does not need to be specified in the expression:

Sub PalettesCreate()

Palettes.Create ("My New Palette")

End Sub

 Related Topics


Palettes.Open

Function Open(ByVal FileName As String) As Palette

Palettes

Description

The Open method opens an existing color palette in Corel PHOTO-PAINT. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

In Corel PHOTO-PAINT, you may have several palettes open at the same time. Opening a palette will not close the currently opened palette.

In order to open a color palette with the Open method, you must specify the file name of the palette as a parameter:

Parameters	Description

FileName	FileName refers to the full path name (with a .cpl extension) of a color palette in Corel PHOTO-PAINT. It is a unique identifier of each palette in the Palettes collection. If the Default CMYK Palette is stored on the root of C, its FileName is C:CMYK Palette.cpl [in]

Return value

Returns Palette

Example

The following code example opens the Gray256 palette in Corel PHOTO-PAINT.

Sub PalettesOpen()

Palettes.Open ("C:\ProgramFiles\Corel\Graphics10\Custom\Palettes\Gray256.cpl")

End Sub

 Related Topics


Palettes.OpenFixed

Function OpenFixed(ByVal PaletteID As cdrPaletteID) As Palette

Palettes

Description

The OpenFixed method opens an existing fixed palette in Corel PHOTO-PAINT, according to its palette ID.. A Color Palette is a collection of solid colors. In Corel PHOTO-PAINT, you can use the on-screen Color Palette, the Select Color dialog box, or the Color Docker to choose colors for fills, outlines, and paper.

In order to open a fixed palette with the OpenFixed method, you must pass the ID of the palette as a parameter.

When passing the PaletteID parameter, you have two options. You may pass the numerical ID of the fixed palette or you may pass the Corel PHOTO-PAINT constant name of the fixed palette. For example, OpenFixed (7) and OpenFixed (cdrUniform) both open the Uniform Colors fixed palette in Corel PHOTO-PAINT.

Parameters	Description

PaletteID	The PaletteID property returns a value associated with the type of a palette in Corel PHOTO-PAINT. The value returned is cdrPaletteID. [in]

Return value

Returns Palette

Example

The following code example opens the Uniform Colors fixed palette in Corel PHOTO-PAINT:

Sub OpenFixedPalette()

Palettes.OpenFixed (cdrUniform)

'you may also use Palettes.OpenFixed (7)

End Sub

 Related Topics


PDFVBASettings properties

PDFVBASettings     Legend

      Author
      BitmapCompression
      Bleed
      Bookmarks
      ColorMode
      ColorProfile
      ColorResolution
      ComplexFillsAsBitmaps
      CompressText
      CropMarks
      DensitometerScales
      DownsampleColor
      DownsampleGray
      DownsampleMono
      EmbedBaseFonts
      EmbedFonts
      EPSAs
      FileInformation
      FountainSteps
    GetEmbedFile
    GetEmbedFilename
    GetEncoding
      GrayResolution
      Halftones
      Hyperlinks
      IncludeBleed
      JPEGQualityFactor
      Keywords
      Linearize
      MaintainOPILinks
      MonoResolution
      Overprints
      PageRange
      pdfVersion
      PublishRange
      RegistrationMarks
      SetEmbedFile
      SetEmbedFilename
      SetEncoding
      SpotColors
      Startup
      Subject
      SubsetFonts
      SubsetPct
      TextAsCurves
      Thumbnails
      TrueTypeToType1
      UseColorProfile


PDFVBASettings methods

PDFVBASettings     Legend

   Load
   Reset
   Save
   ShowDialog


PDFVBASettings

Class PDFVBASettings

Properties     Methods     Referenced By

The PDFVBASettings class represents all the options used when publishing a document to PDF.

 Related Topics


PDFVBASettings.Author

Property Author As String

PDFVBASettings

Description

The Author property sets or returns the author of a PDF.

Example

The following example publishes the active document to PDF, and specifies the file's author, subject, and keywords.

Sub Test()

With ActiveDocument.PDFSettings

.Author = "Graphix Design, Inc"

.Keywords = "Animals, Farm, Bulls"

.Subject = "Animal Farms"

End With

ActiveDocument.PublishToPDF "C:\MyFarm.pdf"

End Sub

 Related Topics


PDFVBASettings.BitmapCompression

Property BitmapCompression As pdfBitmapCompressionType

PDFVBASettings

Description

The BitmapCompression property sets the compression algorithm for bitmaps.

Example

The following example publishes the active document to PDF using JPEG bitmap compression with a compression factor of 30.

Sub Test()

With ActiveDocument.PDFSettings

.BitmapCompression = pdfJPEG

.JPEGQualityFactor = 30

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Bleed

Property Bleed As Integer

PDFVBASettings

Description

The Bleed property sets the bleed value, measured in tenths of a micron. In order to include a bleed for a document, the IncludeBleed property must be set to True.

Example

The following example creates a 1" bleed area around the page and then publishes the active document to PDF.

Sub Test()

With ActiveDocument.PDFSettings

.IncludeBleed = True

.Bleed = CorelScriptTools.FromInches(1)

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Bookmarks

Property Bookmarks As Boolean

PDFVBASettings

Description

The Bookmarks property determines whether to include bookmarks in the PDF.

Example

The following example publishes the active document to PDF. The resulting document includes bookmarks, hyperlinks, and thumbnails.

Sub Test()

With ActiveDocument.PDFSettings

.Bookmarks = True

.Hyperlinks = True

.Thumbnails = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.ColorMode

Property ColorMode As pdfColorMode

PDFVBASettings

Description

The ColorMode property sets the color mode for objects when published to PDF.

Example

The following example publishes the active document to PDF. All objects are exported using the RGB color model, and the color profile of the composite printer is applied.

Sub Test()

With ActiveDocument.PDFSettings

.ColorMode = pdfRGB

.UseColorProfile = True

.ColorProfile = pdfCompositeProfile

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.ColorProfile

Property ColorProfile As pdfColorProfile

PDFVBASettings

Description

The ColorProfile property sets the color profile when publishing to PDF. In order to apply a color profile, the UseColorProfile property must be set to True.

Example

The following example publishes the active document to PDF. All objects are exported using the RGB color model, and the color profile of the composite printer is applied.

Sub Test()

With ActiveDocument.PDFSettings

.ColorMode = pdfRGB

.UseColorProfile = True

.ColorProfile = pdfCompositeProfile

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.ColorResolution

Property ColorResolution As Long

PDFVBASettings

Description

The ColorResolution property sets the resolution for downsampled color bitmaps when publishing to PDF. In order to apply the resolution, the DownsampleColor option must be set to True.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.ComplexFillsAsBitmaps

Property ComplexFillsAsBitmaps As Boolean

PDFVBASettings

Description

The ComplexFillsAsBitmaps property determines whether comples fills are rendered as bitmaps when publishing to PDF.

Example

The following example sets options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while OPI links and spot colors are not maintained.

Sub Test()

With ActiveDocument.PDFSettings

.ComplexFillsAsBitmaps = True

.Halftones = True

.MaintainOPILinks = False

.Overprints = True

.SpotColors = False

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.CompressText

Property CompressText As Boolean

PDFVBASettings

Description

The CompressText property determines whether to compress text and line art when publishing to PDF.

Example

The following example compresses text and line art when publishing the active document to PDF.

Sub Test()

With ActiveDocument

.PDFSettings.CompressText = True

.PublishToPDF "C:\MyDocument.pdf"

End With

End Sub

 Related Topics


PDFVBASettings.CropMarks

Property CropMarks As Boolean

PDFVBASettings

Description

The CropMarks property determines whether crop marks are included in the final document when publishing to PDF.

Example

The following example publishes the document to PDF. Crop marks, densitometer scales, file information, and color registration marks are included in the PDF.

Sub Test()

With ActiveDocument.PDFSettings

.CropMarks = True

.DensitometerScales = True

.FileInformation = True

.RegistrationMarks = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.DensitometerScales

Property DensitometerScales As Boolean

PDFVBASettings

Description

The DensitometerScales property determines whether densitometer scales are included in the final document when publishing to PDF.

Example

The following example publishes the document to PDF. Crop marks, densitometer scales, file information, and color registration marks are included in the PDF.

Sub Test()

With ActiveDocument.PDFSettings

.CropMarks = True

.DensitometerScales = True

.FileInformation = True

.RegistrationMarks = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.DownsampleColor

Property DownsampleColor As Boolean

PDFVBASettings

Description

The DownsampleColor property determines whether color bitmaps are downsampled for publishing to PDF. You can use the ColorResolution property to set the resolution.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.DownsampleGray

Property DownsampleGray As Boolean

PDFVBASettings

Description

The DownsampleGray property determines whether gray bitmaps are downsampled for publishing to PDF. You can use the GrayResolution property to set the resolution.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.DownsampleMono

Property DownsampleMono As Boolean

PDFVBASettings

Description

The DownsampleMono property determines whether monochrome bitmaps are downsampled for publishing to PDF. You can use the MonoResolution property to set the resolution.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.EmbedBaseFonts

Property EmbedBaseFonts As Boolean

PDFVBASettings

Description

The EmbedBaseFonts property determines whether the base 14 fonts are embedded in the document when publishing to PDF.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.EmbedFonts

Property EmbedFonts As Boolean

PDFVBASettings

Description

The EmbedFonts property determines whether fonts are embedded in the document when publishing to PDF.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.EPSAs

Property EPSAs As pdfEPSAs

PDFVBASettings

Description

The EPSAs property determines how embedded EPS files are published to PDF.

Example

The following example publishes the document to PDF and specifies that only previews of EPS art are published.

Sub Test()

ActiveDocument.PDFSettings.EPSAs = pdfPreview

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.FileInformation

Property FileInformation As Boolean

PDFVBASettings

Description

The FileInformation property determines whether file information is included in the final document when publishing to PDF.

Example

The following example publishes the document to PDF. Crop marks, densitometer scales, file information, and color registration marks are included in the PDF.

Sub Test()

With ActiveDocument.PDFSettings

.CropMarks = True

.DensitometerScales = True

.FileInformation = True

.RegistrationMarks = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.FountainSteps

Property FountainSteps As Long

PDFVBASettings

Description

The FountainSteps property sets the number of steps to use when banding fountain fills.

Example

The following example publishes the active document to PDF and applies 100 steps to fountain fills.

Sub Test()

ActiveDocument.PDFSettings.FountainSteps = 100

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.GetEmbedFile

Property GetEmbedFile As Boolean

PDFVBASettings

Description

The GetEmbedFile property returns whether external files are embedded when publishing to PDF.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PDFVBASettings.GetEmbedFilename

Property GetEmbedFilename As String

PDFVBASettings

Description

The GetEmbedFilename property returns the full path and name of the external files that are embedded when publishing to PDF.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PDFVBASettings.GetEncoding

Property GetEncoding As pdfEncodingType

PDFVBASettings

Description

The GetEncoding property returns the data encoding to be used when publishing to PDF.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PDFVBASettings.GrayResolution

Property GrayResolution As Long

PDFVBASettings

Description

The GrayResolution property sets the resolution for downsampled grayscale bitmaps when publishing to PDF. In order to apply the resolution, the DownsampleGray option must be set to True.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Halftones

Property Halftones As Boolean

PDFVBASettings

Description

The Halftones property determines whether the halftone screen information is preserved when publishing to PDF.

Example

The following example sets options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while OPI links and spot colors are not maintained.

Sub Test()

With ActiveDocument.PDFSettings

.ComplexFillsAsBitmaps = True

.Halftones = True

.MaintainOPILinks = False

.Overprints = True

.SpotColors = False

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Hyperlinks

Property Hyperlinks As Boolean

PDFVBASettings

Description

The Hyperlinks property determines whether hyperlinks are included when publishing to PDF.

Example

The following example publishes the active document to PDF. The resulting document includes bookmarks, hyperlinks, and thumbnails.

Sub Test()

With ActiveDocument.PDFSettings

.Bookmarks = True

.Hyperlinks = True

.Thumbnails = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.IncludeBleed

Property IncludeBleed As Boolean

PDFVBASettings

Description

The IncludeBleed property determines whether a bleed is included when publishing to PDF.

The Bleed property sets the bleed value, measured in tenths of a micron.

Example

The following example creates a 1" bleed area around the page and then publishes the active document to PDF.

Sub Test()

With ActiveDocument.PDFSettings

.IncludeBleed = True

.Bleed = CorelScriptTools.FromInches(1)

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.JPEGQualityFactor

Property JPEGQualityFactor As Integer

PDFVBASettings

Description

The JPEGQualityFactor sets the compression rate when compressing bitmaps with the JPEG algorithm.

Example

The following example publishes the active document to PDF using JPEG bitmap compression with a compression factor of 30.

Sub Test()

With ActiveDocument.PDFSettings

.BitmapCompression = pdfJPEG

.JPEGQualityFactor = 30

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Keywords

Property Keywords As String

PDFVBASettings

Description

The Keywords property associates keywords with a PDF.

Example

The following example publishes the active document to PDF, and specifies the file's author, subject, and keywords.

Sub Test()

With ActiveDocument.PDFSettings

.Author = "Graphix Design, Inc"

.Keywords = "Animals, Farm, Bulls"

.Subject = "Animal Farms"

End With

ActiveDocument.PublishToPDF "C:\MyFarm.pdf"

End Sub

 Related Topics


PDFVBASettings.Linearize

Property Linearize As Boolean

PDFVBASettings

Description

The Linearize property determines whether the PDF should be optimized for the Web.

Example

The following example optimizes the active document for the Web and publishes it to PDF.

Sub Test()

ActiveDocument.PDFSettings.Linearize = True

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.MaintainOPILinks

Property MaintainOPILinks As Boolean

PDFVBASettings

Description

The MaintainOPILinks property determines whether low-resolution images are subsittued for high-resolution iamges when publishing to PDF.

Example

The following example sets options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while OPI links and spot colors are not maintained.

Sub Test()

With ActiveDocument.PDFSettings

.ComplexFillsAsBitmaps = True

.Halftones = True

.MaintainOPILinks = False

.Overprints = True

.SpotColors = False

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.MonoResolution

Property MonoResolution As Long

PDFVBASettings

Description

The MonoResolution property sets the resolution for downsampled monochrome bitmaps when publishing to PDF. In order to apply the resolution, the DownsampleMono option must be set to True.

Example

The following example publishes the active document to PDF. Color and grayscale bitmaps are downsampled to 72 dpi, and monochrome bitmaps are downsampled to 150 dpi.

Sub Test()

With ActiveDocument.PDFSettings

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

.ColorResolution = 72

.GrayResolution = 72

.MonoResolution = 150

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Overprints

Property Overprints As Boolean

PDFVBASettings

Description

The Overprints property determines whether document overprints are preserved when publishing to PDF.

Example

The following example sets options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while OPI links and spot colors are not maintained.

Sub Test()

With ActiveDocument.PDFSettings

.ComplexFillsAsBitmaps = True

.Halftones = True

.MaintainOPILinks = False

.Overprints = True

.SpotColors = False

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.PageRange

Property PageRange As String

PDFVBASettings

Description

The PageRange property sets the range of pages to publish to PDF. In order to apply this property, the PublishRange property must be set to pdfPageRange.

Example

The following example publishes the first three pages of the active document to PDF.

Sub Test()

With ActiveDocument.PDFSettings

.PublishRange = pdfPageRange

.PageRange = "1-3"

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.pdfVersion

Property pdfVersion As pdfVersion

PDFVBASettings

Description

The pdfVersion property optimizes the PDF for the specified version.

Example

The following example publishes the active document to the PDF/X-1 format.

Sub Test()

ActiveDocument.PDFSettings.pdfVersion = pdfVersionPDFX1

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.PublishRange

Property PublishRange As pdfExportRange

PDFVBASettings

Description

The PublishRange property specifies the portion of the document that is published to PDF. If you chose pdfPageRange, you can set the page range by setting the PageRange property.

Example

The following example publishes the first three pages of the active document to PDF.

Sub Test()

With ActiveDocument.PDFSettings

.PublishRange = pdfPageRange

.PageRange = "1-3"

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.RegistrationMarks

Property RegistrationMarks As Boolean

PDFVBASettings

Description

The RegistrationMarks property determines whether registration marks are included in the final document when publishing to PDF.

Example

The following example publishes the document to PDF. Crop marks, densitometer scales, file information, and color registration marks are included in the PDF.

Sub Test()

With ActiveDocument.PDFSettings

.CropMarks = True

.DensitometerScales = True

.FileInformation = True

.RegistrationMarks = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.SetEmbedFile

Property SetEmbedFile(ByVal Boolean)

PDFVBASettings

Description

The SetEmbedFile property determines whether external files are embedded when publishing to PDF.

Write-Only

Write-Only

Parameters	Description

Description of  goes here [in]

Example

The following example publishes the active document to PDF and embeds file C:\Test.dat.

Sub Test()

With ActiveDocument.PDFSettings

.SetEmbedFile = True

.SetEmbedFilename = "C:\Test.dat"

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.SetEmbedFilename

Property SetEmbedFilename(ByVal String)

PDFVBASettings

Description

The SetEmbedFilename property specifies which external files are embedded when publishing to PDF. In order to embed external files, the SetEmbedFile property must be set to True.

Write-Only

Write-Only

Parameters	Description

Description of  goes here [in]

Example

The following example publishes the active document to PDF and embeds file C:\Test.dat.

Sub Test()

With ActiveDocument.PDFSettings

.SetEmbedFile = True

.SetEmbedFilename = "C:\Test.dat"

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.SetEncoding

Property SetEncoding(ByVal pdfEncodingType)

PDFVBASettings

Description

The SetEncoding property specifies the data encoding to be used when publishing to PDF.

Write-Only

Write-Only

Parameters	Description

Description of  goes here [in]

Example

The following example publishes the document to PDF using ASCII 85 data encoding.

Sub Test()

ActiveDocument.PDFSettings.SetEncoding = pdfASCII85

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.SpotColors

Property SpotColors As Boolean

PDFVBASettings

Description

The SpotColors property determines whether spot colors are preserved.

Example

The following example sets options for publishing the active document to PDF. Complex fills are rendered as bitmaps; halftone screens and overprints are included, while OPI links and spot colors are not maintained.

Sub Test()

With ActiveDocument.PDFSettings

.ComplexFillsAsBitmaps = True

.Halftones = True

.MaintainOPILinks = False

.Overprints = True

.SpotColors = False

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Startup

Property Startup As pdfDisplayOnStart

PDFVBASettings

Description

The Startup property sets the default viewing mode for the PDF when opened in Adobe Acrobat Reader.

Example

The following example publishes the active document to PDF and specifies the thumbnail view as the default viewing mode.

Sub Test()

With ActiveDocument.PDFSettings

.Thumbnails = True

.Startup = pdfThumbnails

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Subject

Property Subject As String

PDFVBASettings

Description

The Subject property specifies a subject with a PDF.

Example

The following example publishes the active document to PDF, and specifies the file's author, subject, and keywords.

Sub Test()

With ActiveDocument.PDFSettings

.Author = "Graphix Design, Inc"

.Keywords = "Animals, Farm, Bulls"

.Subject = "Animal Farms"

End With

ActiveDocument.PublishToPDF "C:\MyFarm.pdf"

End Sub

 Related Topics


PDFVBASettings.SubsetFonts

Property SubsetFonts As Boolean

PDFVBASettings

Description

The SubsetFonts property determines whether fonts are subsetted in the document when publishing to PDF. You can use the SubsetPct property to set the maximum percentage of the character set used.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.SubsetPct

Property SubsetPct As Long

PDFVBASettings

Description

The SubsetPct property sets the maximum percentage of the character set used. If the percentage of the character set used in the document is less than this value, only the characters that are used are embedded. Otherwise, the whole font is embedded.

In order to apply the SubsetPct property, the SubsetFonts property must be set to True.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.TextAsCurves

Property TextAsCurves As Boolean

PDFVBASettings

Description

The TextAsCurves property determines whether text is exported as curves when publishing to PDF.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Thumbnails

Property Thumbnails As Boolean

PDFVBASettings

Description

The Thumbnails property determines whether thumbnails are included when publishing to PDF.

Example

The following example publishes the active document to PDF. The resulting document includes bookmarks, hyperlinks, and thumbnails.

Sub Test()

With ActiveDocument.PDFSettings

.Bookmarks = True

.Hyperlinks = True

.Thumbnails = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.TrueTypeToType1

Property TrueTypeToType1 As Boolean

PDFVBASettings

Description

The TrueTypeToType1 property determines whether TrueType fonts are converted to Type 1 fonts.

Example

The following example publishes the document to PDF. All the document's fonts are converted to Type 1 and embedded in the PDF file along with the base 14 fonts. Fonts are subset if less than 80% of their character set is used.

Sub Test()

With ActiveDocument.PDFSettings

.EmbedBaseFonts = True

.EmbedFonts = True

.SubsetFonts = True

.SubsetPct = 80

.TextAsCurves = False

.TrueTypeToType1 = True

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.UseColorProfile

Property UseColorProfile As Boolean

PDFVBASettings

Description

The UseColorProfile property determines whether a color profile is used when publishing to PDF.

You can use the ColorProfile property to specify the color profile.

Example

The following example publishes the active document to PDF. All objects are exported using the RGB color model, and the color profile of the composite printer is applied.

Sub Test()

With ActiveDocument.PDFSettings

.ColorMode = pdfRGB

.UseColorProfile = True

.ColorProfile = pdfCompositeProfile

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Load

Function Load(ByVal SettingName As String) As Boolean

PDFVBASettings

Description

The Load method loads the settings from a specified preset file. A Boolean value is returned.

Parameters	Description

SettingName	Specifies the name of the setting as a string enclosed by quotation marks [in]

Return value

Returns Boolean

Example

The following example loads the "PDF for Document Distribution" publishing style and uses it to publish the active document to PDF.

Sub Test()

ActiveDocument.PDFSettings.Load "PDF for Document Distribution"

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Reset

Sub Reset()

PDFVBASettings

Description

The Reset method resets all the PDF settings of the document to their default values.

Example

The following example applies the default settings to publish the active document to PDF.All objects are published using the CMYK color model.

Sub Test()

With ActiveDocument.PDFSettings

.Reset

.ColorMode = pdfCMYK

End With

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PDFVBASettings.Save

Function Save(ByVal SettingName As String) As Boolean

PDFVBASettings

Description

The Save method saves the settings to a specified preset file. A Boolean value is returned.

Parameters	Description

SettingName	Specifies the name of the setting as a string enclosed by quotation marks [in]

Return value

Returns Boolean

Example

Example of usage goes here

Code line

 Related Topics


PDFVBASettings.ShowDialog

Function ShowDialog() As Boolean

PDFVBASettings

Description

The ShowDialog method displays the Publish To PDF dialog box. A Boolean value is returned.

Return value

Returns Boolean

Example

The following example displays the Publish To PDF dialog box. If the user chooses a bitmap compression method other than JPEG, a warning message is shown and JPEG compression is applied.

Sub Test()

Dim ps As PDFVBASettings

Set ps = ActiveDocument.PDFSettings

ps.Reset

If ps.ShowDialog Then Exit Sub

If ps.BitmapCompression <> pdfJPEG Then

MsgBox "You must use JPEG bitmap compression."

ps.BitmapCompression = pdfJPEG

End If

ps.JPEGQualityFactor = 150

ActiveDocument.PublishToPDF "C:\MyDocument.pdf"

End Sub

 Related Topics


PrintDocuments properties

PrintDocuments     Legend

    Count


PrintDocuments

Class PrintDocuments

Properties     Referenced By

PrintDocuments Class

 Related Topics


PrintDocuments.Count

Property Count As Long

PrintDocuments

Description

The Count property returns the total number of documents in the PrintDocuments collection.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Printer properties

Printer     Legend

    ColorEnabled
    Default
    Description
    Name
    Port
    PostScriptEnabled
    Ready
    Type


Printer methods

Printer     Legend

   ShowDialog


Printer

Class Printer

Properties     Methods     Referenced By

The Printer class represents a specified printer on a user's system.

 Related Topics


Printer.ColorEnabled

Property ColorEnabled As Boolean

Printer

Description

The ColorEnabled property returns whether the printer is able to print in color.

Read-Only

Example

The following example lists the model names of printers which are able to print in color.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

Dim s As String

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

If Prn.ColorEnabled = True Then

s = s & Prn.Type & vbCr

End If

Next intCounter

MsgBox "The following printers are able to print in color: " & vbCr & s

Set Prn = Nothing

End Sub

 Related Topics


Printer.Default

Property Default As Boolean

Printer

Description

The Default property returns whether the specified printer is the default printer.

Read-Only

Example

The following example displays a message box with the model name of the default printer.

Sub Test()

Dim intCounter As Integer, Prn As Printer

For intCounter = 1 To Printers.Count

Set Prn = Printers.Item(intCounter)

If Prn.Default = True Then

MsgBox "The default printer is: " & Prn.Type

End If

Next intCounter

End Sub

 Related Topics


Printer.Description

Property Description As String

Printer

Description

The Description property returns the printer's description.

Read-Only

Example

The following example lists the model names and descriptions of all installed printers.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

Dim s As String

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

If Prn.Description <> "" Then

s = s & Prn.Type & " - " & Prn.Description & vbCr

End If

Next intCounter

MsgBox "The following printers are installed on your system: " & vbCr & vbCr & s

Set Prn = Nothing

End Sub

 Related Topics


Printer.Name

Property Name As String

Printer

Description

The Name property returns the printer's name.

Read-Only

Example

The following example lists the names of all installed printers.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

Dim s As String

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

s = s & Prn.Name & vbCr

Next intCounter

MsgBox "The following printers are installed on your system: " & vbCr & vbCr & s

Set Prn = Nothing

End Sub

 Related Topics


Printer.Port

Property Port As String

Printer

Description

The Port property returns the name of the port (for example, LPT1) to which the printer prints.

Read-Only

Example

The following example displays the port of the default printer.

Sub Test()

MsgBox "The default printer prints to: " & Printers.Default.Port

End Sub

 Related Topics


Printer.PostScriptEnabled

Property PostScriptEnabled As Boolean

Printer

Description

The PostScriptEnabled property returns whether the printer is able to print PostScript.

Read-Only

Example

The following example displays a message box for each printer that is able to print PostScript.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

If Prn.PostScriptEnabled = True Then

MsgBox "The " & Prn.Type & " is able to print PostScript."

End If

Next intCounter

Set Prn = Nothing

End Sub

 Related Topics


Printer.Ready

Property Ready As Boolean

Printer

Description

The Ready property returns the ready state of the printer.

Read-Only

Example

The following example lists the printers that are not ready to print.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

Dim s As String

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

If Prn.Ready = False Then

s = s & Prn.Type & vbCr

End If

Next intCounter

MsgBox "The following printers are not ready: " & vbCr & vbCr & s

Set Prn = Nothing

End Sub

 Related Topics


Printer.Type

Property Type As String

Printer

Description

The Type property returns the printer's model name.

Read-Only

Example

The following example displays whether the HP LaserJet 5P/5MP PostScript printer is installed.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

If Prn.Type = "HP LaserJet 5P/5MP PostScript" Then

MsgBox "The " & Prn.Type & " printer is installed."

Exit For

Next intCounter

Set Prn = Nothing

End Sub

 Related Topics


Printer.ShowDialog

Sub ShowDialog()

Printer

Description

The ShowDialog method shows the printer's Properties dialog box.

Example

The following example displays the Properties dialog box for the default printer.

Sub Test()

Printers.Default.ShowDialog

End Sub

 Related Topics


PrintJob properties

PrintJob     Legend

    Documents
    Pages
    Settings


PrintJob methods

PrintJob     Legend

   AddDocument
   Clear
   PrintOut


PrintJob

Class PrintJob

Properties     Methods     Referenced By

PrintJob Class

 Related Topics


PrintJob.Documents

Property Documents As PrintDocuments

PrintJob

Description

property Documents

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PrintJob.Pages

Property Pages As PrintPages

PrintJob

Description

property Pages

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PrintJob.Settings

Property Settings As PrintSettings

PrintJob

Description

property Settings

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PrintJob.AddDocument

Sub AddDocument(ByVal Document As IPrnVBAPrintDocument, [ByVal PageRange As String])

PrintJob

Description

method AddDocument

Parameters	Description

Document	Description of Document goes here [in]

PageRange	Description of PageRange goes here [in]
Optional

Example

Example of usage goes here

Code line

 Related Topics


PrintJob.Clear

Sub Clear()

PrintJob

Description

method Clear

Example

Example of usage goes here

Code line

 Related Topics


PrintJob.PrintOut

Sub PrintOut()

PrintJob

Description

method PrintOut

Example

Example of usage goes here

Code line

 Related Topics


PrintOptions properties

PrintOptions     Legend

      AppInfo
      BitmapColorMode
      ColorMode
      ColorResolution
      DownsampleColor
      DownsampleGray
      DownsampleMono
      DriverInfo
      FontInfo
      FountainSteps
      GrayResolution
      JobInformation
      LinkInfo
      MarksToPage
      MonoResolution
      PrintBitmaps
      PrintJobInfo
      PrintText
      PrintVectors
      RasterizePage
      RasterizeResolution
      SepsInfo
      TextInBlack
      UseColorProfile


PrintOptions

Class PrintOptions

Properties     Referenced By

The PrintOptions class represents the application's print options.

 Related Topics


PrintOptions.AppInfo

Property AppInfo As Boolean

PrintOptions

Description

The AppInfo property determines whether application information is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.BitmapColorMode

Property BitmapColorMode As PrnBitmapColorMode

PrintOptions

Description

The BitmapColorMode returns or sets how color bitmaps are printed. You can print bitmaps in CMYK, RGB, or grayscale.

Example

The following example displays the current BitmapColorMode setting.

Sub Test()

Select Case ActiveDocument.PrintSettings.Options.BitmapColorMode

Case prnBitmapCMYK

MsgBox "The current bitmap color mode is CMYK", vbOKOnly, "Current bitmap color mode"

Case prnBitmapGrayscale

MsgBox "The current bitmap color mode is Grayscale", vbOKOnly, "Current bitmap color mode"

Case prnBitmapRGB

MsgBox "The current bitmap color mode is RGB", vbOKOnly, "Current bitmap color mode"

Case Else

MsgBox "The current bitmap color mode is Unknown", vbOKOnly, "Current bitmap color mode"

End Select

End Sub

 Related Topics


PrintOptions.ColorMode

Property ColorMode As PrnColorMode

PrintOptions

Description

The ColorMode property returns or sets how colors are printed. You can print colors in full color, black and white, or grayscale.

Example

The following example changes the ColorMode setting from the default (Full color) to Grayscale.

Sub Test()

ActiveDocument.PrintSettings.Options.ColorMode = prnModeGrayscale

End Sub

 Related Topics


PrintOptions.ColorResolution

Property ColorResolution As Long

PrintOptions

Description

The ColorResolution property returns or sets the resolution of color bitmaps for printing.

Example

The following example activates downsampling for color, grayscale, and monochrome bitmaps. It then sets the resolution and prints the document.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'set all downsampling to True

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

'set the resolution

.ColorResolution = 96

.GrayResolution = 150

.MonoResolution = 600

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.DownsampleColor

Property DownsampleColor As Boolean

PrintOptions

Description

The DownsampleColor property returns or sets the resolution of color bitmaps for printing.

Example

The following example saves the current downsampling settings, changes the settings, and prints the document. The saved settings are then restored.

Sub Test()

Dim bDownSampleColor As Boolean

Dim bDownSampleGray As Boolean

Dim bDownSampleMono As Boolean

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'save the current setting

bDownSampleColor = .DownsampleColor

bDownSampleGray = .DownsampleGray

bDownSampleMono = .DownsampleMono

'change the setting

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = False

End With

'print the document

ActiveDocument.PrintOut

'restore the downsample setting

With DrawPrintOptions

.DownsampleColor = bDownSampleColor

.DownsampleGray = bDownSampleGray

.DownsampleMono = bDownSampleMono

End With

End Sub

 Related Topics


PrintOptions.DownsampleGray

Property DownsampleGray As Boolean

PrintOptions

Description

The DownsampleGray property returns or sets the resolution of grayscale bitmaps for printing.

Example

The following example saves the current downsampling settings, changes the settings, and prints the document. The saved settings are then restored.

Sub Test()

Dim bDownSampleColor As Boolean

Dim bDownSampleGray As Boolean

Dim bDownSampleMono As Boolean

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'save the current setting

bDownSampleColor = .DownsampleColor

bDownSampleGray = .DownsampleGray

bDownSampleMono = .DownsampleMono

'change the setting

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = False

End With

'print the document

ActiveDocument.PrintOut

'restore the downsample setting

With DrawPrintOptions

.DownsampleColor = bDownSampleColor

.DownsampleGray = bDownSampleGray

.DownsampleMono = bDownSampleMono

End With

End Sub

 Related Topics


PrintOptions.DownsampleMono

Property DownsampleMono As Boolean

PrintOptions

Description

The DownsampleMono property returns or sets the resolution of monochrome bitmaps for printing.

Example

The following example saves the current downsampling settings, changes the settings, and prints the document. The saved settings are then restored.

Sub Test()

Dim bDownSampleColor As Boolean

Dim bDownSampleGray As Boolean

Dim bDownSampleMono As Boolean

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'save the current setting

bDownSampleColor = .DownsampleColor

bDownSampleGray = .DownsampleGray

bDownSampleMono = .DownsampleMono

'change the setting

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = False

End With

'print the document

ActiveDocument.PrintOut

'restore the downsample setting

With DrawPrintOptions

.DownsampleColor = bDownSampleColor

.DownsampleGray = bDownSampleGray

.DownsampleMono = bDownSampleMono

End With

End Sub

 Related Topics


PrintOptions.DriverInfo

Property DriverInfo As Boolean

PrintOptions

Description

The DriverInfo property determines whether driver and device information is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.FontInfo

Property FontInfo As Boolean

PrintOptions

Description

The FontInfo property determines whether font information is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.FountainSteps

Property FountainSteps As Long

PrintOptions

Description

The FountainSteps property returns or sets the number of steps to use when printing fountain fills.

Example

The following example displays the current value for the FountainSteps property, changes the value to 256, and displays the new value.

Sub Test()

MsgBox "Fountain fills will print using " & _

ActiveDocument.PrintSettings.Options.FountainSteps & " steps."

ActiveDocument.PrintSettings.Options.FountainSteps = 256

MsgBox "Fountain fills will now print using " & _

ActiveDocument.PrintSettings.Options.FountainSteps & " steps."

End Sub

 Related Topics


PrintOptions.GrayResolution

Property GrayResolution As Long

PrintOptions

Description

The GrayResolution property returns or sets the resolution of grayscale bitmaps for printing.

Example

The following example activates downsampling for color, grayscale, and monochrome bitmaps. It then sets the resolution and prints the document.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'set all downsampling to True

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

'set the resolution

.ColorResolution = 96

.GrayResolution = 150

.MonoResolution = 600

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.JobInformation

Property JobInformation As Boolean

PrintOptions

Description

The JobInformation property determines whether the job information sheet is printed.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.LinkInfo

Property LinkInfo As Boolean

PrintOptions

Description

The LinkInfo property determines whether information about OPI linked images is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.MarksToPage

Property MarksToPage As Boolean

PrintOptions

Description

The MarksToPage property fits the printer's marks to the printable page.

Example

The following example disables the MarksToPage setting, enables registration marks, creates a rectangle, and prints the document. It then enables the MarksToPage setting and prints the document again.

Sub Test()

Dim s As Shape

With ActiveDocument

.PrintSettings.Options.MarksToPage = False

.PrintSettings.Prepress.RegistrationMarks = True

Set s = .ActiveLayer.CreateRectangle(2, 6, 8, 8)

.PrintOut

.PrintSettings.Options.MarksToPage = True

.PrintSettings.Prepress.RegistrationMarks = True

.PrintOut

End With

End Sub

 Related Topics


PrintOptions.MonoResolution

Property MonoResolution As Long

PrintOptions

Description

The MonoResolution property returns or sets the resolution of monochrome bitmaps for printing.

Example

The following example activates downsampling for color, grayscale, and monochrome bitmaps. It then sets the resolution and prints the document.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

'set all downsampling to True

.DownsampleColor = True

.DownsampleGray = True

.DownsampleMono = True

'set the resolution

.ColorResolution = 96

.GrayResolution = 150

.MonoResolution = 600

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.PrintBitmaps

Property PrintBitmaps As Boolean

PrintOptions

Description

The PrintBitmaps property returns or sets whether bitmaps are printed.

Example

The following example creates a rectangle, fills the rectangle, and converts it to a bitmap. It then creates another rectangle, sets bitmaps to not print and sets vectors to print before printing the document.

Sub Test()

Dim s As Shape

With ActiveDocument

 Set s = .ActiveLayer.CreateRectangle(2, 6, 8, 8)

 s.Fill.UniformColor.RGBAssign 255, 0, 0

 s.ConvertToBitmap , , , , 96

 Set s = .ActiveLayer.CreateRectangle(4, 6, 8, 2)

 .PrintSettings.Options.PrintBitmaps = False

 .PrintSettings.Options.PrintVectors = True

 .PrintOut

End With

End Sub

 Related Topics


PrintOptions.PrintJobInfo

Property PrintJobInfo As Boolean

PrintOptions

Description

The PrintJobInfo property determines whether information about the print job is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.PrintText

Property PrintText As Boolean

PrintOptions

Description

The PrintText property returns or sets whether text is printed.

Example

The following example creates a text string and adds a uniform fill to it. The text is then set to print in black, and the document is printed.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateArtisticText(4, 5, "Some Text String")

s.Fill.UniformColor.RGBAssign 255, 0, 0

With ActiveDocument.PrintSettings.Options

.PrintText = True

.TextInBlack = True

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.PrintVectors

Property PrintVectors As Boolean

PrintOptions

Description

The PrintVectors property returns or sets whether vectors are printed.

Example

The following example creates a rectangle, fills the rectangle, and converts it to a bitmap. It then creates another rectangle, sets bitmaps to not print and sets vectors to print before printing the document.

Sub Test()

Dim s As Shape

With ActiveDocument

 Set s = .ActiveLayer.CreateRectangle(2, 6, 8, 8)

 s.Fill.UniformColor.RGBAssign 255, 0, 0

 s.ConvertToBitmap , , , , 96

 Set s = .ActiveLayer.CreateRectangle(4, 6, 8, 2)

 .PrintSettings.Options.PrintBitmaps = False

 .PrintSettings.Options.PrintVectors = True

 .PrintOut

End With

End Sub

 Related Topics


PrintOptions.RasterizePage

Property RasterizePage As Boolean

PrintOptions

Description

The RasterizePage property returns or sets whether a document ir printed as a bitmap.

Example

The following example sets each page to print as a bitmap, sets the resolution of the bitmap to 300 dpi, and then prints the document.

Sub Test()

With ActiveDocument.PrintSettings.Options

.RasterizePage = True

.RasterizeResolution = 300

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.RasterizeResolution

Property RasterizeResolution As Long

PrintOptions

Description

The RasterizeResolution property returns or sets the resolution of the bitmap. This property is used in conjunction with the RasterizePage property which allows users to print a document as a bitmap.

Example

The following example sets each page to print as a bitmap, sets the resolution of the bitmap to 300 dpi, and then prints the document.

Sub Test()

With ActiveDocument.PrintSettings.Options

.RasterizePage = True

.RasterizeResolution = 300

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.SepsInfo

Property SepsInfo As Boolean

PrintOptions

Description

The SepsInfo property determines whether information about print separations is printed on the job information sheet.

Example

The following example prints the job information sheet with application information, driver information, and font information.

Sub Test()

Dim DrawPrintOptions As PrintOptions

Set DrawPrintOptions = ActiveDocument.PrintSettings.Options

With DrawPrintOptions

.JobInformation = True

.AppInfo = True

.DriverInfo = True

.PrintJobInfo = False

.FontInfo = True

.SepsInfo = False

End With

'print the document

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.TextInBlack

Property TextInBlack As Boolean

PrintOptions

Description

The TextInBlack property returns or sets whether all text prints in black.

Example

The following example creates a text string and adds a uniform fill to it. The text is then set to print in black, and the document is printed.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateArtisticText(4, 5, "Some Text String")

s.Fill.UniformColor.RGBAssign 255, 0, 0

With ActiveDocument.PrintSettings.Options

.PrintText = True

.TextInBlack = True

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintOptions.UseColorProfile

Property UseColorProfile As Boolean

PrintOptions

Description

The UseColorProfile property returns or sets whether to use the selected color profile. Using a color profile reproduces colors more accurately.

This setting does not affect grayscale output.

Example

The following example creates a rectangle, fills it, and prints the document. The color profile is applied, and the document is printed again.

Sub Test()

Dim s As Shape

With ActiveDocument

.PrintSettings.Options.UseColorProfile = False

Set s = .ActiveLayer.CreateRectangle(2, 6, 8, 8)

s.Fill.UniformColor.RGBAssign 255, 255, 0

.PrintOut

.PrintSettings.Options.UseColorProfile = True

.PrintOut

End With

End Sub

 Related Topics


PrintPages properties

PrintPages     Legend

    Count


PrintPages

Class PrintPages

Properties     Referenced By

The PrintPages class represents the collection of all pages included in the print job.

This class is reserved for future development.

 Related Topics


PrintPages.Count

Property Count As Long

PrintPages

Description

The Count property returns the number of pages in the collection.

This class is reserved for future development.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


PrintPostScript properties

PrintPostScript     Legend

      AutoIncreaseFlatness
      AutoIncreaseFountainSteps
      ConformToDSC
      DownloadType1
      Flatness
      JPEGCompression
      JPEGQuality
      Level
      MaintainOPILinks
      MaxPointsPerCurve
      OptimizeFountainFills
      PDFBookmarks
      PDFHyperlinks
      PDFStartup
      ResolveDCSLinks
      ScreenFrequency
      TrueTypeToType1


PrintPostScript

Class PrintPostScript

Properties     Referenced By

The PrintPostScript class represents the PostScript settings in the print engine.

 Related Topics


PrintPostScript.AutoIncreaseFlatness

Property AutoIncreaseFlatness As Boolean

PrintPostScript

Description

When the AutoIncreaseFlatness property is set to True, the print engine increases the flatness of an object in increments of two.

Example

The following example creates a curve, sets the AutoIncreaseFlatness property to True, and prints the document.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateCurve

With s.Curve.CreateSubPath(0.492835, 10.327087)

.AppendCurveSegment False, 1.065118, 9.879213, 0.189492, -23.198591, 0.646929, 0#

.AppendCurveSegment False, 1.313937, 9.381575, 0.497638, 180#, 0.225315, 173.659808

.AppendCurveSegment False, 1.363701, 9.05811, 0.15135, -9.462322, 0.12687, 11.309932

.AppendCurveSegment False, 0.791417, 8.859055, 0.078681, -161.565051, 0.174173, 90#

.AppendCurveSegment False, 1.438346, 8.560472, 0.348346, -90#, 0.248819, 90#

.AppendCurveSegment False, 0.890945, 8.386299, 0.323465, -90#, 0.223937, 0#

.AppendCurveSegment False, 1.139764, 8.062835, 0.373228, 180#, 0.124409, 180#

.AppendCurveSegment False, 1.413465, 7.490551, 0.750177, -5.710593, 0.497638, 90#

.AppendCurveSegment False, 1.911102, 7.391024, 0.099528, -90#, 0.102591, 104.036243

.AppendCurveSegment False, 1.811575, 6.793858, 0.338429, -72.897271, 0.380618, 168.690068

.AppendCurveSegment False, 2.209685, 7.117323, 0.537126, -13.392498, 0.278185, -116.565051

.AppendCurveSegment False, 3.478661, 6.768976, 0.556374, 63.434949, 0.746457, 90#

.AppendCurveSegment False, 2.981024, 6.669449, 0.174173, -90#, 0.099528, 0#

.AppendCurveSegment False, 2.682441, 7.21685, 0.200602, 172.874984, 0#, 0#

End With

With ActiveDocument.PrintSettings.PostScript

.AutoIncreaseFlatness = True

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintPostScript.AutoIncreaseFountainSteps

Property AutoIncreaseFountainSteps As Boolean

PrintPostScript

Description

The AutoIncreaseFlatness property controls whether the print engine increases the number of fountain steps to reduce banding. When this property is set to True, the print engine makes the increase if it is necessary.

Example

The following example creates a rectangle and fills it with a a conical fountain fill. After it sets AutoIncreaseFountainSteps to True, the document is printed.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateRectangle(2, 4, 6, 8)

s.Fill.ApplyFountainFill CreateRGBColor(255, 0, 0), CreateRGBColor(0, 255, 0), cdrConicalFountainFill, , 4

With ActiveDocument

.PrintSettings.PostScript.AutoIncreaseFountainSteps = True

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.ConformToDSC

Property ConformToDSC As Boolean

PrintPostScript

Description

The ConformtoDSC property ensures that a PostScript file conforms to the Document Structuring Convention.

Example

The following example saves the current value of the ConformToDSC property and sets it to True. After it prints the document, it restores the saved value.

Sub Test()

Dim bConformToDSC As Boolean

'save current value

With ActiveDocument.PrintSettings.PostScript

bConformToDSC = .ConformToDSC

'set new value

.ConformToDSC = True

End With

'print document

ActiveDocument.PrintOut

'restore saved value

With ActiveDocument.PrintSettings.PostScript

.ConformToDSC = bConformToDSC

End With

End Sub

 Related Topics


PrintPostScript.DownloadType1

Property DownloadType1 As Boolean

PrintPostScript

Description

The DownloadType1 property controls the download of Type 1 fonts to a PostScript printer. If fonts are not downloaded to the printer (and they are not already installed on the printer), the fonts print as curves or bitmaps.

Example

The following example creates text strings in different fonts and prints them. The fonts are downloaded to the printer (if it is PostScript), and the document is printed again.

Sub Test()

Dim s As Shape

Dim n As Integer

Dim dLeft As Double

Dim dBottom As Double

dLeft = 0.25

dBottom = ActivePage.SizeHeight - 0.4

For n = 1 To FontList.Count Step 5

Set s = ActiveLayer.CreateArtisticText(dLeft, dBottom, "Some Text String")

s.Text.FontProperties.Name = FontList(n)

dBottom = dBottom - 0.4

Next n

With ActiveDocument

.PrintSettings.PostScript.DownloadType1 = False

.PrintSettings.PostScript.TrueTypeToType1 = False

.PrintOut

.PrintSettings.PostScript.DownloadType1 = True

.PrintSettings.PostScript.TrueTypeToType1 = True

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.Flatness

Property Flatness As Long

PrintPostScript

Description

The Flatness property specifies the flatness of a curve.

This property is reserved for future development.

Example

Example of usage goes here

Code line

 Related Topics


PrintPostScript.JPEGCompression

Property JPEGCompression As Boolean

PrintPostScript

Description

The JPEGCompression property returns or sets whether bitmaps are compressed for a print job. You can use the JPEGQuality property to specify the quality of the compression.

Example

The following example creates a rectangle, an ellipse, and a polygon. It fills each of them with a texture fill and converts them to bitmaps. Before the document is printed, it disables JPEG compression. It then enables JPEG compression, sets the quality of the compression, and prints the document again.

Sub Test()

Dim shRect As Shape

Set shRect = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Dim shEllipse As Shape

Set shEllipse = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Dim shPolygon As Shape

Set shPolygon = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With shPolygon.Fill.ApplyTextureFill("Alien Eyes", "Samples 9")

.SetProperties 3281, 2, 0, 150, 25, 1, CreateRGBColor(25, 0, 73), CreateRGBColor(229, 255, 0), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.228083

.TileWidth = 1.822134

.OriginX = 0#

.OriginY = 0#

End With

shPolygon.ConvertToBitmap , , , False, 150

With shEllipse.Fill.ApplyTextureFill("Disco Nightmare", "Samples 9")

.SetProperties 4641, 0, 100, 0, 100, CreateRGBColor(51, 0, 204), CreateRGBColor(255, 102, 0), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.164724

.TileWidth = 1.940787

.OriginX = 0#

.OriginY = 0#

End With

shEllipse.ConvertToBitmap , , , False, 150

With shRect.Fill.ApplyTextureFill("Solder", "Samples 9")

.SetProperties 19195, 60, 0, 75, 25, 100, 50, 50, CreateRGBColor(25, 25, 255), CreateRGBColor(0, 0, 0), CreateRGBColor(255, 255, 255), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.662362

.TileWidth = 1.84126

.OriginX = 0.000008

.OriginY = 0.000004

End With

shRect.ConvertToBitmap , , , False, 150

With ActiveDocument

.PrintSettings.PostScript.JPEGCompression = False

.PrintOut

.PrintSettings.PostScript.JPEGCompression = True

.PrintSettings.PostScript.JPEGQuality = 100

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.JPEGQuality

Property JPEGQuality As Long

PrintPostScript

Description

The JPEGQuality property returns or sets the quality of compressed bitmaps in a print job. In order to use this property, you must enable the JPEGCompression property which allows for the compression.

Example

The following example creates a rectangle, an ellipse, and a polygon. It fills each of them with a texture fill and converts them to bitmaps. Before the document is printed, it disables JPEG compression. It then enables JPEG compression, sets the quality of the compression, and prints the document again.

Sub Test()

Dim shRect As Shape

Set shRect = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Dim shEllipse As Shape

Set shEllipse = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Dim shPolygon As Shape

Set shPolygon = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With shPolygon.Fill.ApplyTextureFill("Alien Eyes", "Samples 9")

.SetProperties 3281, 2, 0, 150, 25, 1, CreateRGBColor(25, 0, 73), CreateRGBColor(229, 255, 0), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.228083

.TileWidth = 1.822134

.OriginX = 0#

.OriginY = 0#

End With

shPolygon.ConvertToBitmap , , , False, 150

With shEllipse.Fill.ApplyTextureFill("Disco Nightmare", "Samples 9")

.SetProperties 4641, 0, 100, 0, 100, CreateRGBColor(51, 0, 204), CreateRGBColor(255, 102, 0), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.164724

.TileWidth = 1.940787

.OriginX = 0#

.OriginY = 0#

End With

shEllipse.ConvertToBitmap , , , False, 150

With shRect.Fill.ApplyTextureFill("Solder", "Samples 9")

.SetProperties 19195, 60, 0, 75, 25, 100, 50, 50, CreateRGBColor(25, 25, 255), CreateRGBColor(0, 0, 0), CreateRGBColor(255, 255, 255), 0

.MaximumTileWidth = 2049

.TransformWithShape = True

.MirrorFill = False

.TileOffsetType = cdrTileOffsetRow

.TileOffset = 0

.Resolution = 300

.RotationAngle = 0#

.SkewAngle = 0#

.TileHeight = 2.662362

.TileWidth = 1.84126

.OriginX = 0.000008

.OriginY = 0.000004

End With

shRect.ConvertToBitmap , , , False, 150

With ActiveDocument

.PrintSettings.PostScript.JPEGCompression = False

.PrintOut

.PrintSettings.PostScript.JPEGCompression = True

.PrintSettings.PostScript.JPEGQuality = 100

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.Level

Property Level As PrnPostScriptLevel

PrintPostScript

Description

The Level property gets or sets the PostScript level.

Example

The following example displays the current PostScript level.

Sub Test()

MsgBox "The current PostScript level is level " & _

ActiveDocument.PrintSettings.PostScript.Level

End Sub

 Related Topics


PrintPostScript.MaintainOPILinks

Property MaintainOPILinks As Boolean

PrintPostScript

Description

The MaintainOPILinks property allows a Service Bureau to substitute high resolution images for the low resolution images in the file.

Example

The following example sets the MaintainOPILinks and ResolveDCSLinks properties to True, and prints the document to a file.

Sub Test()

With ActiveDocument

.PrintSettings.PostScript.MaintainOPILinks = True

.PrintSettings.PostScript.ResolveDCSLinks = True

.PrintSettings.FileName = "c:\Temp.ps"

.PrintSettings.PrintToFile = True

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.MaxPointsPerCurve

Property MaxPointsPerCurve As Long

PrintPostScript

Description

The MaxPointsPerCurve property returns or sets the maximum allowable number of control points per curve.

Example

The following example displays the current value of the MaxPointsPerCurve property. It then sets the value to one-half of the previous value and displays the new value.

Sub Test()

With ActiveDocument

MsgBox "The current value of MaxPointsPerCurve is " & _

.PrintSettings.PostScript.MaxPointsPerCurve

.PrintSettings.PostScript.MaxPointsPerCurve = .PrintSettings.PostScript.MaxPointsPerCurve / 2

MsgBox "The current value of MaxPointsPerCurve is " & _

.PrintSettings.PostScript.MaxPointsPerCurve

End With

End Sub

 Related Topics


PrintPostScript.OptimizeFountainFills

Property OptimizeFountainFills As Boolean

PrintPostScript

Description

The OptimizeFountainFills property determines whether the print engine decreases the number of fountain steps. When this property is set to True, the print engine makes the decrease if it is necessary.

Example

Creates a rectangle, fills it with a conical fountain fill with 256 steps, sets OptimizeFountainFills to True and prints the document.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateRectangle(2, 4, 6, 8)

s.Fill.ApplyFountainFill CreateRGBColor(255, 0, 0), CreateRGBColor(0, 255, 0), cdrConicalFountainFill, , 256

With ActiveDocument

.PrintSettings.PostScript.OptimizeFountainFills = True

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.PDFBookmarks

Property PDFBookmarks As Boolean

PrintPostScript

Description

The PDFBookmarks property determines whether bookmarks are included in the resulting PDF file when a CorelDRAW PostScript file is distilled to a PDF file.

Example

The following example sets options for a PDF file which is distilled from a CorelDRAW PostScript file. The resulting PDF file will display the document outlines on startup in Adobe Acrobat. The file will also contain hyperlinks and bookmarks.

Sub TestPDF()

With ActiveDocument.PrintSettings.PostScript

.PDFStartup = prnPDFOutlines

.PDFBookmarks = True

.PDFHyperlinks = True

End With

End Sub

 Related Topics


PrintPostScript.PDFHyperlinks

Property PDFHyperlinks As Boolean

PrintPostScript

Description

The PDFHyperlinks property determines whether hyperlinks  are included in the resulting PDF file when a CorelDRAW PostScript file is distilled to a PDF file.

Example

The following example sets options for a PDF file which is distilled from a CorelDRAW PostScript file. The resulting PDF file will display the document outlines on startup in Adobe Acrobat. The file will also contain hyperlinks and bookmarks.

Sub TestPDF()

With ActiveDocument.PrintSettings.PostScript

.PDFStartup = prnPDFOutlines

.PDFBookmarks = True

.PDFHyperlinks = True

End With

End Sub

 Related Topics


PrintPostScript.PDFStartup

Property PDFStartup As PrnPDFStartup

PrintPostScript

Description

The PDFBookmarks property determines whether bookmarks are included in the resulting PDF file when a CorelDRAW PostScript file is distilled to a PDF file.

Example

The following example sets options for a PDF file which is distilled from a CorelDRAW PostScript file. The resulting PDF file will display the document outlines on startup in Adobe Acrobat. The file will also contain hyperlinks and bookmarks.

Sub TestPDF()

With ActiveDocument.PrintSettings.PostScript

.PDFStartup = prnPDFOutlines

.PDFBookmarks = True

.PDFHyperlinks = True

End With

End Sub

 Related Topics


PrintPostScript.ResolveDCSLinks

Property ResolveDCSLinks As Boolean

PrintPostScript

Description

The ResolveDCSLinks property allows a Service Bureau to substitute high resolution images for the low resolution images in the file.

Example

The following example sets the MaintainOPILinks and ResolveDCSLinks properties to True, and prints the document to a file.

Sub Test()

With ActiveDocument

.PrintSettings.PostScript.MaintainOPILinks = True

.PrintSettings.PostScript.ResolveDCSLinks = True

.PrintSettings.FileName = "c:\Temp.ps"

.PrintSettings.PrintToFile = True

.PrintOut

End With

End Sub

 Related Topics


PrintPostScript.ScreenFrequency

Property ScreenFrequency As Long

PrintPostScript

Description

The ScreenFrequency property returns or sets the basic halftone screen frequency of the print job in lines per inch (lpi).

Example

The following example sets the screen frequency to 120 lpi.

Sub Test()

With ActiveDocument.PrintSettings.PostScript

.ScreenFrequency = 120

End With

End Sub

 Related Topics


PrintPostScript.TrueTypeToType1

Property TrueTypeToType1 As Boolean

PrintPostScript

Description

The TrueTypeToType1 property controls the download of TrueType fonts to a PostScript printer. TrueType fonts are converted to Type 1 fonts so that they can be downloaded. If fonts are not downloaded to the printer (and they are not already installed on the printer), the fonts print as curves or bitmaps.

Example

The following example creates text strings in different fonts and prints them. The fonts are downloaded to the printer (if it is PostScript), and the document is printed again.

Sub Test()

Dim s As Shape

Dim n As Integer

Dim dLeft As Double

Dim dBottom As Double

dLeft = 0.25

dBottom = ActivePage.SizeHeight - 0.4

For n = 1 To FontList.Count Step 5

Set s = ActiveLayer.CreateArtisticText(dLeft, dBottom, "Some Text String")

s.Text.FontProperties.Name = FontList(n)

dBottom = dBottom - 0.4

Next n

With ActiveDocument

.PrintSettings.PostScript.DownloadType1 = False

.PrintSettings.PostScript.TrueTypeToType1 = False

.PrintOut

.PrintSettings.PostScript.DownloadType1 = True

.PrintSettings.PostScript.TrueTypeToType1 = True

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress properties

PrintPrepress     Legend

      ColorCalibrationBar
      CropMarks
      Densities
      DensitometerScale
      ExteriorCropMarks
      FileInfo
      InfoWithinPage
      Invert
      JobName
      Mirror
      PageNumbers
      RegistrationMarks
      RegistrationStyle


PrintPrepress

Class PrintPrepress

Properties     Referenced By

The PrintPrepress class represents the prepess settings in the print engine.

 Related Topics


PrintPrepress.ColorCalibrationBar

Property ColorCalibrationBar As Boolean

PrintPrepress

Description

The ColorCalibrationBar property prints a bar of six basic colors when set to True.

Example

The following example creates a new document containing four rectangles. Each rectangle is filled with a different color (cyan, magenta, yellow, or black). A calibration bar is added, and then the document is printed.

Sub PrePressColorCalibrationBar()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.667008, 10.302205, 2.906378, 8.062835, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.77252, 10.351969, 6.987008, 8.13748, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(0.990472, 6.569921, 3.105433, 4.454961, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.872047, 6.81874, 7.01189, 4.678898, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Options.MarksToPage = True

.Prepress.ColorCalibrationBar = True

End With

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.CropMarks

Property CropMarks As Boolean

PrintPrepress

Description

The CropMarks property determines whether crop and fold marks that reside within the page are printed.

Example

The following example creates a new document containing two rectangles. Each rectangle is filled with a different color (cyan and magenta). The document and any crop marks that appear within the page are then printed.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.667008, 10.302205, 2.906378, 8.062835, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.77252, 10.351969, 6.987008, 8.13748, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Prepress.CropMarks = True

.Prepress.ExteriorCropMarks = False

.Options.MarksToPage = True

End With

   .PrintOut

End With

End Sub

 Related Topics


PrintPrepress.Densities

Property Densities(ByVal Index As Long) As Long

PrintPrepress

Description

The Densities property returns or sets the density of the squares in the densitometer scale.

Parameters	Description

Index	Specifies a square in the densitometer scale [in]

Example

The following example creates a new document containing four shapes of a different color. It sets the density of the second square in the densitometer scale to 15. When the document is printed, the densitometer scale is also printed.

Sub DensityTest()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateEllipse(0.766535, 9.928976, 3.180079, 7.515433, 90#, 90#, False)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreatePolygon(5.643386, 9.953858, 8.355512, 7.241732, 5, 1, 1, False, 50, 100)

s.Move -0.870866, 0.174173

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateGridBoxes(1.388583, 5.699055, 3.279606, 3.658748, 4, 3)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

Set s = ActiveLayer.CreateRectangle(5.295039, 5.723937, 7.061654, 3.957323, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Prepress.Densities(1) = 15

.Prepress.DensitometerScale = True

.Options.MarksToPage = True

End With

   .PrintOut

End With

End Sub

 Related Topics


PrintPrepress.DensitometerScale

Property DensitometerScale As Boolean

PrintPrepress

Description

The DensitometerScale property returns or sets whether a densitometer scale is printed in the document.

Example

The following example creates a new document containing four shapes of a different color. It sets the density of the second square in the densitometer scale to 15. When the document is printed, the densitometer scale is also printed.

Sub DensityTest()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateEllipse(0.766535, 9.928976, 3.180079, 7.515433, 90#, 90#, False)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreatePolygon(5.643386, 9.953858, 8.355512, 7.241732, 5, 1, 1, False, 50, 100)

s.Move -0.870866, 0.174173

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateGridBoxes(1.388583, 5.699055, 3.279606, 3.658748, 4, 3)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

Set s = ActiveLayer.CreateRectangle(5.295039, 5.723937, 7.061654, 3.957323, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Prepress.Densities(1) = 15

.Prepress.DensitometerScale = True

.Options.MarksToPage = True

End With

   .PrintOut

End With

End Sub

 Related Topics


PrintPrepress.ExteriorCropMarks

Property ExteriorCropMarks As Boolean

PrintPrepress

Description

The ExteriorCropMarks property determines whether crop and fold marks that reside outside the page are printed.

Example

The following example creates a new document containing two rectangles. Each rectangle is filled with a different color (cyan and magenta). The document and any crop marks that appear within the page are then printed.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.667008, 10.302205, 2.906378, 8.062835, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.77252, 10.351969, 6.987008, 8.13748, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Prepress.CropMarks = True

.Prepress.ExteriorCropMarks = False

.Options.MarksToPage = True

End With

   .PrintOut

End With

End Sub

 Related Topics


PrintPrepress.FileInfo

Property FileInfo As Boolean

PrintPrepress

Description

The FileInfo property specifies whether the file information is printed.

Example

The following example creates a new document and adds three pages to it. It specifies that file information is to be printed, along with the job name and page numbers. As it iterates through the pages of the document, it adds text to each page and then prints the entire document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 3

With .PrintSettings.Prepress

.FileInfo = True

.JobName = "Test of VBA methods"

.PageNumbers = True

.InfoWithinPage = True

End With

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.InfoWithinPage

Property InfoWithinPage As Boolean

PrintPrepress

Description

The InfoWithinPage property specifies whether the file information is positioned within the page when printed.

Example

The following example creates a new document and adds three pages to it. It specifies that file information is to be printed, along with the job name and page numbers. As it iterates through the pages of the document, it adds text to each page and then prints the entire document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 3

With .PrintSettings.Prepress

.FileInfo = True

.JobName = "Test of VBA methods"

.PageNumbers = True

.InfoWithinPage = True

End With

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.Invert

Property Invert As Boolean

PrintPrepress

Description

The Invert property determines whether the print job produces negative images on film.

Example

The following example sets the Invert property to True and prints the document.

Sub Test()

With ActiveDocument

.PrintSettings.Prepress.Invert = True

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.JobName

Property JobName As String

PrintPrepress

Description

The JobName property specifies whether the job name is printed.

Example

The following example creates a new document and adds three pages to it. It specifies that file information is to be printed, along with the job name and page numbers. As it iterates through the pages of the document, it adds text to each page and then prints the entire document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 3

With .PrintSettings.Prepress

.FileInfo = True

.JobName = "Test of VBA methods"

.PageNumbers = True

.InfoWithinPage = True

End With

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.Mirror

Property Mirror As Boolean

PrintPrepress

Description

The Mirror property determines whether the film emulsion faces down.

Example

The following example prints the document with the emulsion facing up, and then prints the document again with the emulsion facing down.

Sub Test()

With ActiveDocument

.PrintSettings.Prepress.Mirror = False

.PrintOut

.PrintSettings.Prepress.Mirror = True

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.PageNumbers

Property PageNumbers As Boolean

PrintPrepress

Description

The PageNumbers property specifies whether the page numbers are printed.

Example

The following example creates a new document and adds three pages to it. It specifies that file information is to be printed, along with the job name and page numbers. As it iterates through the pages of the document, it adds text to each page and then prints the entire document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 3

With .PrintSettings.Prepress

.FileInfo = True

.JobName = "Test of VBA methods"

.PageNumbers = True

.InfoWithinPage = True

End With

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.RegistrationMarks

Property RegistrationMarks As Boolean

PrintPrepress

Description

The RegistrationMarks property determines whether registration marks are printed. You can use the RegistrationStyle property to choose the style of the registration marks.

Example

The following example specifies that Corel registration marks print within the page. It displays the Print dialog box and then prints the document.

Sub Test()

With ActiveDocument

With .PrintSettings.Prepress

.RegistrationMarks = True

.RegistrationStyle = prnCorel

End With

.PrintSettings.Options.MarksToPage = True

.PrintSettings.ShowDialog

.PrintOut

End With

End Sub

 Related Topics


PrintPrepress.RegistrationStyle

Property RegistrationStyle As PrnRegistrationStyle

PrintPrepress

Description

The RegistrationStyle property determines the style of the registration marks that are printed. In order to print the registration marks, you must enable the RegistrationMarks property.

Example

The following example specifies that Corel registration marks print within the page. It displays the Print dialog box and then prints the document.

Sub Test()

With ActiveDocument

With .PrintSettings.Prepress

.RegistrationMarks = True

.RegistrationStyle = prnCorel

End With

.PrintSettings.Options.MarksToPage = True

.PrintSettings.ShowDialog

.PrintOut

End With

End Sub

 Related Topics


PrintSeparations properties

PrintSeparations     Legend

      AdvancedSettings
      AlwaysOverprintBlack
      AutoSpreadAmount
      AutoSpreadFixed
      AutoSpreading
      AutoSpreadTextAbove
      BasicScreen
      EmptyPlates
      Enabled
      HalftoneType
      Hexachrome
      InColor
    Plates
      PreserveOverprints
      Resolution
      ScreenTechnology
      SpotToCMYK


PrintSeparations

Class PrintSeparations

Properties     Referenced By

The PrintSeparations class represents the separations settings in the print engine.

 Related Topics


PrintSeparations.AdvancedSettings

Property AdvancedSettings As Boolean

PrintSeparations

Description

The AdvancedSettings property determines whether advanced separations settings are used. These settings allow for greater control when printing separations.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. It enables print separations and sets advanced settings. The Print dialog box is then displayed.

Sub Test()

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

With ActiveDocument

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AdvancedSettings = True

.ScreenTechnology = "RT Screening - Lino 330"

.Resolution = 1270

.BasicScreen = "109"

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.AlwaysOverprintBlack

Property AlwaysOverprintBlack As Boolean

PrintSeparations

Description

The AlwaysOverprintBlack property determines whether black will always be overprinted.

Example

The following example creates a new document and inserts two overlapping rectangles. Uniform fills of different colors (cyan and magenta) are applied to the rectangles, and an outline of 24pt is added to the overlying rectangle. Before the document is printed, separations are enabled.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateRectangle(2.209685, 8.809291, 5.742913, 6.196693, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(3.578189, 7.838898, 7.285591, 5.251181, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Width = 0.333335

With .PrintSettings.Separations

.Enabled = True

.AlwaysOverprintBlack = False

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSeparations.AutoSpreadAmount

Property AutoSpreadAmount As Double

PrintSeparations

Description

The AutoSpreadAmount property returns or sets the maximum width of an outline for auto-spreading.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. In a new document, it creates five shapes. It then enables print separations and auto-spreading. The Print dialog box is then displayed.

Sub Test()

Dim doc As Document

Dim s As Shape

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateEllipse(0.592362, 10.426614, 7.534409, 7.366142, 90#, 90#, False)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateArtisticText(1.25, 8.85, "This is a test of text")

s.Text.FontProperties.Size = 48

Set s = .ActiveLayer.CreateRectangle(1.712047, 6.321102, 5.668268, 4.654016, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

Set s = .ActiveLayer.CreateRectangle(3.926535, 5.599528, 7.335354, 3.459685, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(0.642126, 5.276063, 5.071102, 2.215591, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 100, 0, 0

s.Outline.Type = cdrNoOutline

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AutoSpreadAmount = 3527.77778

.AutoSpreading = True

.AutoSpreadTextAbove = 254000

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.AutoSpreadFixed

Property AutoSpreadFixed As Boolean

PrintSeparations

Description

The AutoSpreadFixed property returns or sets outlines of equal width for auto-spreading.

Example

The following example displays the current value of the AutoSpreadFixed property.

Sub Test()

With ActiveDocument

MsgBox "The current value for AutoSpreadFixed is " & _

.PrintSettings.Separations.AutoSpreadFixed

End With

End Sub

 Related Topics


PrintSeparations.AutoSpreading

Property AutoSpreading As Boolean

PrintSeparations

Description

The AutoSpreading property determines whether auto-spreading is enabled.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. In a new document, it creates five shapes. It then enables separations and auto-spreading. The Print dialog box is then displayed.

Sub Test()

Dim doc As Document

Dim s As Shape

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateEllipse(0.592362, 10.426614, 7.534409, 7.366142, 90#, 90#, False)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateArtisticText(1.25, 8.85, "This is a test of text")

s.Text.FontProperties.Size = 48

Set s = .ActiveLayer.CreateRectangle(1.712047, 6.321102, 5.668268, 4.654016, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

Set s = .ActiveLayer.CreateRectangle(3.926535, 5.599528, 7.335354, 3.459685, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(0.642126, 5.276063, 5.071102, 2.215591, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 100, 0, 0

s.Outline.Type = cdrNoOutline

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AutoSpreadAmount = 3527.77778

.AutoSpreading = True

.AutoSpreadTextAbove = 254000

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.AutoSpreadTextAbove

Property AutoSpreadTextAbove As Double

PrintSeparations

Description

The AutoSpreadTextAbove property returns or sets the minimum width of an outline for auto-spreading.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. In a new document, it creates five shapes. It then enables separations and auto-spreading. The Print dialog box is then displayed.

Sub Test()

Dim doc As Document

Dim s As Shape

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateEllipse(0.592362, 10.426614, 7.534409, 7.366142, 90#, 90#, False)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateArtisticText(1.25, 8.85, "This is a test of text")

s.Text.FontProperties.Size = 48

Set s = .ActiveLayer.CreateRectangle(1.712047, 6.321102, 5.668268, 4.654016, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

Set s = .ActiveLayer.CreateRectangle(3.926535, 5.599528, 7.335354, 3.459685, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(0.642126, 5.276063, 5.071102, 2.215591, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 100, 0, 0

s.Outline.Type = cdrNoOutline

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AutoSpreadAmount = 3527.77778

.AutoSpreading = True

.AutoSpreadTextAbove = 254000

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.BasicScreen

Property BasicScreen As String

PrintSeparations

Description

The BasicScreen property returns or sets the basic screen used for printing separations.

In order to use this property, the AdvancedSettings property must be set to True.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. It then enables print separations and sets advanced settings. The Print dialog box is then displayed.

Sub Test()

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

With ActiveDocument

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AdvancedSettings = True

.ScreenTechnology = "RT Screening - Lino 330"

.Resolution = 1270

.BasicScreen = "109"

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.EmptyPlates

Property EmptyPlates As Boolean

PrintSeparations

Description

The EmptyPlates property determines whether all plates, including empty ones, are printed.

Example

The following example creates two rectangles with uniform fills. It then enables print separations and prints all four plates.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateRectangle(1.239291, 7.590079, 4.050945, 4.778425, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(2.607795, 6.395748, 5.344803, 3.65874, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

With ActiveDocument

With .PrintSettings

.Separations.Enabled = True

.Separations.EmptyPlates = True

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.Enabled

Property Enabled As Boolean

PrintSeparations

Description

The PrintSeparations property determines whether separations are printed.

Example

The following example enables separations and displays the Print dialog box.

Sub Test()

With ActiveDocument

With .PrintSettings

.Separations.Enabled = True

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.HalftoneType

Property HalftoneType As String

PrintSeparations

Description

The HalftoneType property returns the selected halftone type.

This property is reserved for future development.

Example

Example of usage goes here

Code line

 Related Topics


PrintSeparations.Hexachrome

Property Hexachrome As Boolean

PrintSeparations

Description

The Hexachrome property determines whether PANTONE Hexachrome process colors are used.

Example

The following example creates two rectangles with uniform fills. It then enables separations and Hexachrome colors. The Print dialog box is then displayed.

Sub Test()

Dim s As Shape

Set s = ActiveLayer.CreateRectangle(1.239291, 7.590079, 4.050945, 4.778425, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(2.607795, 6.395748, 5.344803, 3.65874, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

With ActiveDocument

With .PrintSettings

.Separations.Enabled = True

.Separations.Hexachrome = True

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.InColor

Property InColor As Boolean

PrintSeparations

Description

The InColor property determines whether separations are printed in color.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. It then enables color separations and displays the Print dialog box.

Sub Test()

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.ColorEnabled Then

Exit For

End If

Next intCounter

With ActiveDocument

With .PrintSettings

Set .Printer = prn

.Separations.Enabled = True

.Separations.InColor = True

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.Plates

Property Plates As SeparationPlates

PrintSeparations

Description

The Plates property returns a reference to the SeparationPlates collection.

Read-Only

Example

The following example displays the number of items in the SeparationPlates collection.

Sub Test()

Dim Seps As SeparationPlates

With ActiveDocument

With .PrintSettings

Set Seps = .Separations.Plates

.Separations.Enabled = True

MsgBox "There are " & Seps.Count & " plates."

End With

End With

End Sub

 Related Topics


PrintSeparations.PreserveOverprints

Property PreserveOverprints As Boolean

PrintSeparations

Description

The PreserveOverprints property determines whether the document's overprint settings are maintained in the print job.

Example

The following example creates two overlapping rectangles with uniform fills. It then enables separations, sets the PreseveOverprints property to True, and prints the document.

Sub Test()

Dim s As Shape

Dim doc As Document

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateRectangle(2.110157, 9.605512, 5.69315, 6.94315, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(3.428898, 8.859055, 7.111417, 5.89811, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Width = 0.33333

s.Outline.Color.CMYKAssign 0, 100, 0, 0

s.OverprintOutline = True

With .PrintSettings.Separations

.PreserveOverprints = True

.Enabled = True

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSeparations.Resolution

Property Resolution As Long

PrintSeparations

Description

The Resolution property returns or sets the resolution used for printing separations.

In order to use this property, the AdvancedSettings property must be set to True.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. It then enables separations and sets advanced settings. The Print dialog box is then displayed.

Sub Test()

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

With ActiveDocument

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AdvancedSettings = True

.ScreenTechnology = "RT Screening - Lino 330"

.Resolution = 1270

.BasicScreen = "109"

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.ScreenTechnology

Property ScreenTechnology As String

PrintSeparations

Description

The ScreenTechnology property returns or sets the screening technology used for printing separations.

In order to use this property, the AdvancedSettings property must be set to True.

Example

The following example iterates through the SystemPrinters collection until it finds the specified printer. It enables separations and sets advanced settings. The Print dialog box is then displayed.

Sub Test()

Dim prn As Printer

Dim intCounter As Integer

For intCounter = 1 To Printers.Count

Set prn = Printers.Item(intCounter)

If prn.Name = "Device Independent PostScript File" Then

Exit For

End If

Next intCounter

With ActiveDocument

With .PrintSettings

Set .Printer = prn

With .Separations

.Enabled = True

.AdvancedSettings = True

.ScreenTechnology = "RT Screening - Lino 330"

.Resolution = 1270

.BasicScreen = "109"

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSeparations.SpotToCMYK

Property SpotToCMYK As Boolean

PrintSeparations

Description

The SpotToCMYK property determines whether spot colors are converted to process colors.

Example

The following example creates a new document containing four rectangles with Pantone fills. It then enables separations, converts Pantone colors to CMYK, and displays the Print dialog box.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

With doc

Set s = .ActiveLayer.CreateRectangle(0.965591, 10.351969, 2.781969, 8.535591, 0, 0, 0, 0)

s.Fill.UniformColor.FixedAssign cdrPANTONECoated, 12

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(4.747638, 10.327087, 6.564016, 8.510709, 0, 0, 0, 0)

s.Fill.UniformColor.FixedAssign cdrPANTONECoated, 60

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(1.09, 7.067559, 2.93126, 5.226299, 0, 0, 0, 0)

s.Fill.UniformColor.FixedAssign cdrPANTONECoated, 120

s.Outline.Type = cdrNoOutline

Set s = .ActiveLayer.CreateRectangle(4.424173, 7.191969, 6.389843, 5.226299, 0, 0, 0, 0)

s.Fill.UniformColor.FixedAssign cdrPANTONECoated, 180

s.Outline.Type = cdrNoOutline

With .PrintSettings

With .Separations

.Enabled = True

.SpotToCMYK = True

End With

.ShowDialog

End With

End With

End Sub

 Related Topics


PrintSettings properties

PrintSettings     Legend

      Collate
      Copies
      FileMode
      FileName
      ForMac
    Options
      PageRange
    PostScript
      PPDFile
    Prepress
      Printer
      PrintRange
      PrintToFile
    Separations
    Trapping
      UsePPD


PrintSettings methods

PrintSettings     Legend

   Load
   Reset
   Save
   ShowDialog


PrintSettings

Class PrintSettings

Properties     Methods     Referenced By

The PrintSettings class represents the settings in the CorelDRAW print engine.

 Related Topics


PrintSettings.Collate

Property Collate As Boolean

PrintSettings

Description

The Collate property determines whether the pages of a document print together when you print several copies of a document. The number of copies to be printed is set by the Copies property.

Example

The following example creates a new document containing two pages. It adds the page number to each page and then prints three collated copies of the document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 2

For Each page In .Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintSettings.Copies = 3

.PrintSettings.Collate = True

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Copies

Property Copies As Long

PrintSettings

Description

The Copies property returns or sets the number of copies of a document to be printed. You can ensure that the pages of the document print together by setting the Collate property.

Example

The following example creates a new document containing two pages. It adds the page number to each page and then prints three collated copies of the document.

Sub Test()

Dim doc As Document

Dim page As page

Set doc = CreateDocument

With doc

.AddPages 2

For Each page In .Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

.PrintSettings.Copies = 3

.PrintSettings.Collate = True

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.FileMode

Property FileMode As PrnFileMode

PrintSettings

Description

The FileMode property returns or sets the output of pages or plates when printing to a file.

Example

The following example creates a new document containing three shapes and prints the document to a file.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Set s = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Set s = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With doc

With .PrintSettings

.PrintToFile = True

.ForMac = False

.FileMode = prnSingleFile

.FileName = "C:\Temp.prn"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.FileName

Property FileName As String

PrintSettings

Description

The FileName property returns or sets the name of a file which is printed to a file.

Example

The following example creates a new document containing three shapes and prints the document to a file.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Set s = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Set s = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With doc

With .PrintSettings

.PrintToFile = True

.ForMac = False

.FileMode = prnSingleFile

.FileName = "C:\Temp.prn"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.ForMac

Property ForMac As Boolean

PrintSettings

Description

The ForMac property determines whether a file is readable on a Macintosh computer when printing to a file.

Example

The following example creates a new document containing three shapes and prints the document to a file.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Set s = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Set s = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With doc

With .PrintSettings

.PrintToFile = True

.ForMac = False

.FileMode = prnSingleFile

.FileName = "C:\Temp.prn"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Options

Property Options As PrintOptions

PrintSettings

Description

The Options property returns the PrintOptions object.

Read-Only

Example

The following example returns a reference to the PrintOptions object and displays the current color mode.

Sub Test()

Dim DrawPrnOptions As PrintOptions

Set DrawPrnOptions = ActiveDocument.PrintSettings.Options

With DrawPrnOptions

MsgBox "The current color mode is " & .ColorMode

End With

End Sub

 Related Topics


PrintSettings.PageRange

Property PageRange As String

PrintSettings

Description

The PageRange property specifies which pages to print. In order to use this property, the PrintRange property must be set to prnPageRange.

Example

The following example creates a new document containing four pages with page numbers. It then prints pages two and four.

Sub Test()

Dim doc As Document

Dim page As page

Dim DrwPrnSettings As PrintSettings

Set doc = CreateDocument

doc.AddPages 4

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

Set DrwPrnSettings = ActiveDocument.PrintSettings

With DrwPrnSettings

.PrintRange = prnPageRange

.PageRange = "2,4"

End With

doc.PrintOut

End Sub

 Related Topics


PrintSettings.PostScript

Property PostScript As PrintPostScript

PrintSettings

Description

The PostScript property returns the PrintPostScript object which represents the PostScript print settings in the print engine.

Read-Only

Example

The following example displays the PostScript level of the current PostScript device.

Sub Test()

Dim DrwPostScriptSettings As PrintPostScript

Set DrwPostScriptSettings = ActiveDocument.PrintSettings.PostScript

With DrwPostScriptSettings

MsgBox "The current printing device is a PostScript level " & _

.Level & " device."

End With

End Sub

 Related Topics


PrintSettings.PPDFile

Property PPDFile As String

PrintSettings

Description

The PPDFile property specifies the name of the PPD (Postscript Printer Description) file. In order to use this property, the UsePPD property must be set to True.

Example

The following example prints the active document using the specified PPD file.

Sub Test()

With ActiveDocument.PrintSettings

.UsePPD = True

.PPDFile = "C:\WINNT4\system32\spool\drivers\w32x86\HPLJ5P_1.PPD"

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintSettings.Prepress

Property Prepress As PrintPrepress

PrintSettings

Description

The Prepress property returns the PrintPrepress object which represents the prepress settings.

Read-Only

Example

The following example prints the active document with page numbers within the page.

Sub Test()

With ActiveDocument

.PrintSettings.Prepress.PageNumbers = True

.PrintSettings.Prepress.InfoWithinPage = True

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Printer

Property Printer As Printer

PrintSettings

Description

The Printer property returns a reference to the current Printer.

Example

The following example displays the name of the current printer.

Sub Test()

MsgBox "The current printer is:" & vbCr & _

ActiveDocument.PrintSettings.Printer.Name

End Sub

 Related Topics


PrintSettings.PrintRange

Property PrintRange As PrnPrintRange

PrintSettings

Description

The PrintRange property specifies whether to print a full document, a page, a selection, or a range of pages. If you choose to print a range of pages, you can specify the pages to print by using the PageRange property.

Example

The following example creates a new document containing four pages with page numbers. It then prints pages two and four.

Sub Test()

Dim doc As Document

Dim page As page

Dim DrwPrnSettings As PrintSettings

Set doc = CreateDocument

doc.AddPages 4

For Each page In doc.Pages

page.ActiveLayer.CreateArtisticText page.SizeWidth / 2, page.SizeHeight / 2, "This is page " & page.Index

Next page

Set DrwPrnSettings = ActiveDocument.PrintSettings

With DrwPrnSettings

.PrintRange = prnPageRange

.PageRange = "2,4"

End With

doc.PrintOut

End Sub

 Related Topics


PrintSettings.PrintToFile

Property PrintToFile As Boolean

PrintSettings

Description

The PrintToFile property determines whether a document is printed to a file.

Example

The following example creates a new document containing three shapes and prints the document to a file.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(1.114882, 10.078268, 3.030787, 8.485827, 0, 0, 0, 0)

Set s = ActiveLayer.CreateEllipse(4.075827, 7.540315, 6.016614, 5.375591, 90#, 90#, False)

Set s = ActiveLayer.CreatePolygon(5.842445, 2.912283, 7.758343, 0.44898, 5, 1, 1, False, 50, 100)

With doc

With .PrintSettings

.PrintToFile = True

.ForMac = False

.FileMode = prnSingleFile

.FileName = "C:\Temp.prn"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Separations

Property Separations As PrintSeparations

PrintSettings

Description

The Separations property returns the PrintSeparations object.

Read-Only

Example

The following example creates a new document. Four rectangles, each filled with a different uniform color (cyan, yellow, magenta, or black) are created, and then separations are printed.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.940709, 10.177795, 3.130315, 8.411181, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(1.139764, 5.201417, 3.553307, 3.111339, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.896929, 10.202677, 7.186063, 8.510709, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(5.245276, 5.450236, 7.683701, 3.285512, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

With doc

.PrintSettings.Separations.Enabled = True

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Trapping

Property Trapping As PrintTrapping

PrintSettings

Description

The Trapping property returns the PrintTrapping object.

Read-Only

Example

The following example displays the Print dialog box and then a message box with the current trapping width.

Sub Test()

With ActiveDocument.PrintSettings

.PostScript.Level = prnPSLevel3

.Separations.Enabled = False

.Trapping.Enabled = True

.ShowDialog

MsgBox "The current trapping width is " & Round((.Trapping.Width / 254000) * 72, 1) & " pt"

End With

End Sub

 Related Topics


PrintSettings.UsePPD

Property UsePPD As Boolean

PrintSettings

Description

The UsePPD property determines whether a PPD (Postscript Printer Description) file is used. If set to True, the PPDFile property can be used to specify the name of the file.

Example

The following example prints the active document using the specified PPD file.

Sub Test()

With ActiveDocument.PrintSettings

.UsePPD = True

.PPDFile = "C:\WINNT4\system32\spool\drivers\w32x86\HPLJ5P_1.PPD"

End With

ActiveDocument.PrintOut

End Sub

 Related Topics


PrintSettings.Load

Function Load(ByVal FileName As String) As Boolean

PrintSettings

Description

The Load method applies a saved print style.

Parameters	Description

FileName	Specifies the full path and filename of the saved print style [in]

Return value

Returns Boolean

Example

The following example creates a new document containing four rectangles, each filled with a different uniform color. It then creates and saves a new print style. After reverting to the default print style, it prints the document. It then loads the saved print style and prints the document again.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.940709, 10.177795, 3.130315, 8.411181, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(1.139764, 5.201417, 3.553307, 3.111339, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.896929, 10.202677, 7.186063, 8.510709, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(5.245276, 5.450236, 7.683701, 3.285512, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Separations.Enabled = True

.Copies = 5

.Save "c:\Seps.prs"

.Reset

End With

.PrintOut

With .PrintSettings

.Load "c:\Seps.prs"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Reset

Sub Reset()

PrintSettings

Description

The Reset method reverts to the default print style

Example

The following example creates a new document containing four rectangles, each filled with a different uniform color. It then creates and saves a new print style. After reverting to the default print style, it prints the document. It then loads the saved print style and prints the document again.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.940709, 10.177795, 3.130315, 8.411181, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(1.139764, 5.201417, 3.553307, 3.111339, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.896929, 10.202677, 7.186063, 8.510709, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(5.245276, 5.450236, 7.683701, 3.285512, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Separations.Enabled = True

.Copies = 5

.Save "c:\Seps.prs"

.Reset

End With

.PrintOut

With .PrintSettings

.Load "c:\Seps.prs"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.Save

Function Save(ByVal FileName As String) As Boolean

PrintSettings

Description

The Save method saves a print style.

Parameters	Description

FileName	Specifies the full path and filename of the file containing the print settings [in]

Return value

Returns Boolean

Example

The following example creates a new document containing four rectangles, each filled with a different uniform color. It then creates and saves a new print style. After reverting to the default print style, it prints the document. It then loads the saved print style and prints the document again.

Sub Test()

Dim doc As Document

Dim s As Shape

Set doc = CreateDocument

Set s = ActiveLayer.CreateRectangle(0.940709, 10.177795, 3.130315, 8.411181, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 0, 100

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(1.139764, 5.201417, 3.553307, 3.111339, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 0, 100, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(4.896929, 10.202677, 7.186063, 8.510709, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 0, 100, 0, 0

s.Outline.Type = cdrNoOutline

Set s = ActiveLayer.CreateRectangle(5.245276, 5.450236, 7.683701, 3.285512, 0, 0, 0, 0)

s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0

s.Outline.Type = cdrNoOutline

With doc

With .PrintSettings

.Separations.Enabled = True

.Copies = 5

.Save "c:\Seps.prs"

.Reset

End With

.PrintOut

With .PrintSettings

.Load "c:\Seps.prs"

End With

.PrintOut

End With

End Sub

 Related Topics


PrintSettings.ShowDialog

Function ShowDialog() As Boolean

PrintSettings

Description

The ShowDialog method displays the Print dialog box.

Return value

Returns Boolean

Example

The following example displays the Print dialog box for the first file in the specified folder, and then prints the CorelDRAW (CDR) files contained in the folder.

Sub Test()

Dim ldDocument As Document

Dim lcFolder As String

Dim lcFileName As String

Dim lcFullName As String

Dim Prn As CorelDRAW.Printer

Dim nCopies As Long

Dim bFirst As Boolean

lcFolder = "k:\cdrs\"

lcFileName$ = Dir(lcFolder & "*.cdr")

bFirst = True

While lcFileName$ <> ""

lcFullName = lcFolder & lcFileName

Set ldDocument = laCorel.OpenDocument(lcFullName)

With ldDocument.PrintSettings

If bFirst Then

If Not .ShowDialog Then Exit Sub

Set Prn = .Printer

nCopies = .Copies

bFirst = False

Else

Set .Printer = Prn

.Copies = nCopies

End If

End With

ldDocument.PrintOut

ldDocument.Close

lcFileName$ = Dir()

Wend

End Sub

 Related Topics


PrintTrapping properties

PrintTrapping     Legend

      BlackColorLimit
      BlackDensityLimit
      BlackWidth
      ColorScaling
      Enabled
      ImageTrap
      InternalImageTrapping
    Layers
      MinResolution
      ObjectsToImage
      SlidingTrapLimit
      StepLimit
      Width


PrintTrapping

Class PrintTrapping

Properties     Referenced By

The PrintTrapping class represents color trapping in the print engine.

 Related Topics


PrintTrapping.BlackColorLimit

Property BlackColorLimit As Long

PrintTrapping

Description

The BlackColorLimit property sets the threshold at which process black is considered pure black for print trapping.

Example

The following example displays the values of properties which represent the thresholds of print trapping.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings.Trapping

s = "Black Color Limit: " & .BlackColorLimit & vbCr

s = s & "Black Density Limit: " & .BlackDensityLimit & vbCr

s = s & "Sliding Trap Limit: " & .SlidingTrapLimit & vbCr

s = s & "Step Limit: " & .StepLimit

End With

MsgBox s

End Sub

 Related Topics


PrintTrapping.BlackDensityLimit

Property BlackDensityLimit As Double

PrintTrapping

Description

The BlackDensityLimit property sets the neutral density value for the black ink in print trapping.

Example

The following example displays the values of properties which represent the thresholds of print trapping.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings.Trapping

s = "Black Color Limit: " & .BlackColorLimit & vbCr

s = s & "Black Density Limit: " & .BlackDensityLimit & vbCr

s = s & "Sliding Trap Limit: " & .SlidingTrapLimit & vbCr

s = s & "Step Limit: " & .StepLimit

End With

MsgBox s

End Sub

 Related Topics


PrintTrapping.BlackWidth

Property BlackWidth As Double

PrintTrapping

Description

The BlackWidth property sets the black trap width when trapping to black.

Example

The following example sets the PostScript.Level property to level 3, changes both the trapping and the black widths, and then displays the Print dialog box.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings

.PostScript.Level = prnPSLevel3

With .Trapping

.BlackWidth = 0.6 / 72 * 254000

.Width = 0.35 / 72 * 254000

End With

.ShowDialog

End With

End Sub

 Related Topics


PrintTrapping.ColorScaling

Property ColorScaling As Long

PrintTrapping

Description

The ColorScaling property sets the amount by which the ink color in a trap decreases.

Example

The following example displays the current value for color scaling.

Sub Test()

With ActiveDocument.PrintSettings.Trapping

MsgBox "The current value for color scaling is: " & .ColorScaling

End With

End Sub

 Related Topics


PrintTrapping.Enabled

Property Enabled As Boolean

PrintTrapping

Description

The Enabled property determines whether print trapping is turned on.

Example

The following example displays the current status of print trapping and displays the Print dialog box.

Sub Test()

With ActiveDocument.PrintSettings

With .Trapping

If .Enabled = True Then

MsgBox "Print trapping is currently enabled"

Else

MsgBox "Print trapping is currently disabled"

End If

End With

.ShowDialog

End With

End Sub

 Related Topics


PrintTrapping.ImageTrap

Property ImageTrap As PrnImageTrap

PrintTrapping

Description

The ImageTrap property sets the placement of the color trap.

Example

The following example sets the placement of the trap to Choke.

Sub Test()

With ActiveDocument.PrintSettings.Trapping

.ImageTrap = prnTrapChoke

End With

End Sub

 Related Topics


PrintTrapping.InternalImageTrapping

Property InternalImageTrapping As Boolean

PrintTrapping

Description

The InternalImageTrapping property applies a color trap within an image.

Example

The following example enables image trapping.

Sub Test()

With ActiveDocument.PrintSettings

With .Trapping

.InternalImageTrapping = False

End With

.ShowDialog

End With

End Sub

 Related Topics


PrintTrapping.Layers

Property Layers As TrapLayers

PrintTrapping

Description

The Layers property returns the TrapLayers collection.

Read-Only

Example

The following example displays the number of items in the TrapLayers collection.

Sub Test()

With ActiveDocument.PrintSettings.Trapping

MsgBox .Layers.Count

End With

End Sub

 Related Topics


PrintTrapping.MinResolution

Property MinResolution As Long

PrintTrapping

Description

The MinResolution property sets the minimum resolution of an image to be considered for trapping.

Example

The following example displays the current minimum bitmap resolution.

Sub Test()

With ActiveDocument.PrintSettings

With .Trapping

MsgBox .MinResolution, vbOKOnly, "MinResolution"

End With

End With

End Sub

 Related Topics


PrintTrapping.ObjectsToImage

Property ObjectsToImage As Boolean

PrintTrapping

Description

The ObjectsToImage property determines whether vector objects are trapped to images.

Example

The following example stores the current setting of objects-to-image trapping. It displays the dialog box that shows that this option is enabled, and then restores the previous setting.

Sub Test()

Dim bObjectsToImage As Boolean

With ActiveDocument.PrintSettings

With .Trapping

bObjectsToImage = .ObjectsToImage

.ObjectsToImage = True

End With

.ShowDialog

.Trapping.ObjectsToImage = bObjectsToImage

End With

End Sub

 Related Topics


PrintTrapping.SlidingTrapLimit

Property SlidingTrapLimit As Long

PrintTrapping

Description

The SlidingTrapLimit property sets the sliding trap threshold for print trapping.

Example

The following example displays the values of properties which represent the thresholds of print trapping.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings.Trapping

s = "Black Color Limit: " & .BlackColorLimit & vbCr

s = s & "Black Density Limit: " & .BlackDensityLimit & vbCr

s = s & "Sliding Trap Limit: " & .SlidingTrapLimit & vbCr

s = s & "Step Limit: " & .StepLimit

End With

MsgBox s

End Sub

 Related Topics


PrintTrapping.StepLimit

Property StepLimit As Long

PrintTrapping

Description

The StepLimit property sets the threshold between color variations for print trapping.

Example

The following example displays the values of properties which represent the thresholds of print trapping.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings.Trapping

s = "Black Color Limit: " & .BlackColorLimit & vbCr

s = s & "Black Density Limit: " & .BlackDensityLimit & vbCr

s = s & "Sliding Trap Limit: " & .SlidingTrapLimit & vbCr

s = s & "Step Limit: " & .StepLimit

End With

MsgBox s

End Sub

 Related Topics


PrintTrapping.Width

Property Width As Double

PrintTrapping

Description

The Width property sets the amount that one color spreads into another for print trapping.

Example

The following example sets the PostScript.Level property to level 3, changes both the trapping and the black widths, and then displays the Print dialog box.

Sub Test()

Dim s As String

With ActiveDocument.PrintSettings

.PostScript.Level = prnPSLevel3

With .Trapping

.BlackWidth = 0.6 / 72 * 254000

.Width = 0.35 / 72 * 254000

End With

.ShowDialog

End With

End Sub

 Related Topics


Rulers properties

Rulers     Legend

    Application
      HUnits
    Parent
      VUnits


Rulers

Class Rulers

Properties     Referenced By

 Related Topics


Rulers.Application

Property Application As Application

Rulers

Description

Read-Only

 Related Topics


Rulers.HUnits

Property HUnits As cdrUnit

Rulers

Description

Example

Example of usage goes here

Code line

 Related Topics


Rulers.Parent

Property Parent As Document

Rulers

Description

Read-Only

 Related Topics


Rulers.VUnits

Property VUnits As cdrUnit

Rulers

Description

Example

Example of usage goes here

Code line

 Related Topics


SeparationPlate properties

SeparationPlate     Legend

      Angle
    Color
      Enabled
      Frequency
      OverprintGraphic
      OverprintText
    Type


SeparationPlate

Class SeparationPlate

Properties     Referenced By

The SeparationPlate class represents the separation plate object.

 Related Topics


SeparationPlate.Angle

Property Angle As Double

SeparationPlate

Description

The Angle property returns the angle of a separation plate.

Example

The following example displays the angle and frequency of each separation plate.

Sub Test()

Dim intPlateCounter As Integer

With ActiveDocument

With .PrintSettings.Separations.Plates

For intPlateCounter = 1 To .Count - 1

MsgBox "The angle of the " & .Item(intPlateCounter).Color & _

" plate is " & .Item(intPlateCounter).Angle & vbCr & _

" The frequency is " & .Item(intPlateCounter).Frequency

Next intPlateCounter

End With

End With

End Sub

 Related Topics


SeparationPlate.Color

Property Color As String

SeparationPlate

Description

property Color

Member of SeparationPlate

The Color property returns the color of the separation plate.

Read-Only

Example

The following example displays the color of each separation plate.

Sub Test()

Dim strPlates As String

Dim Plate As SeparationPlate

Dim intPlateCounter As Integer

With ActiveDocument.PrintSettings.Separations

For intPlateCounter = 1 To .Plates.Count - 1

strPlates = strPlates & .Plates(intPlateCounter).Color & vbCr

Next intPlateCounter

MsgBox strPlates

End With

End Sub

 Related Topics


SeparationPlate.Enabled

Property Enabled As Boolean

SeparationPlate

Description

The Enabled property allows a user to specify which separation plate to print.

Example

The following example displays the disabled separation plates.

Sub Test()

Dim intPlateCounter As Integer

With ActiveDocument.PrintSettings.Separations

For intPlateCounter = 1 To .Plates.Count - 1

If .Plates(intPlateCounter).Enabled <> True Then

MsgBox "The " & .Plates(intPlateCounter).Color & _

" is not enabled."

End If

Next intPlateCounter

End With

End Sub

 Related Topics


SeparationPlate.Frequency

Property Frequency As Double

SeparationPlate

Description

The Frequency property returns the screen frequency of a separation plate.

Example

The following example displays the angle and frequency of each separation plate.

Sub Test()

Dim intPlateCounter As Integer

With ActiveDocument

With .PrintSettings.Separations.Plates

For intPlateCounter = 1 To .Count - 1

MsgBox "The angle of the " & .Item(intPlateCounter).Color & _

" plate is " & .Item(intPlateCounter).Angle & vbCr & _

" The frequency is " & .Item(intPlateCounter).Frequency

Next intPlateCounter

End With

End With

End Sub

 Related Topics


SeparationPlate.OverprintGraphic

Property OverprintGraphic As Boolean

SeparationPlate

Description

The OverprintGraphic property returns or sets whether graphics are overprinted by the current separation plate.

Example

The following example iterates through the collection of separation plates, and sets the values of the OverprintGraphic and OverprintText properties to False.

Sub Test()

Dim intPlateCounter As Integer

With ActiveDocument.PrintSettings.Separations

For intPlateCounter = 1 To .Plates.Count - 1

.Plates(intPlateCounter).OverprintGraphic = False

.Plates(intPlateCounter).OverprintText = False

Next intPlateCounter

End With

End Sub

 Related Topics


SeparationPlate.OverprintText

Property OverprintText As Boolean

SeparationPlate

Description

The OverprintGraphic property returns or sets whether graphics are overprinted by the current separation plate.

Example

The following example iterates through the collection of separation plates, and sets the values of the OverprintGraphic and OverprintText properties to False.

Sub Test()

Dim intPlateCounter As Integer

With ActiveDocument.PrintSettings.Separations

For intPlateCounter = 1 To .Plates.Count - 1

.Plates(intPlateCounter).OverprintGraphic = False

.Plates(intPlateCounter).OverprintText = False

Next intPlateCounter

End With

End Sub

 Related Topics


SeparationPlate.Type

Property Type As PrnPlateType

SeparationPlate

Description

The Type property returns the type of the separation plate.

This property is reserved for future development.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


SeparationPlates properties

SeparationPlates     Legend

    Count
  Item


SeparationPlates

Class SeparationPlates

Properties     Referenced By

The SepartionPlates class represents the collection of separation plates.

 Related Topics


SeparationPlates.Count

Property Count As Long

SeparationPlates

Description

The Count property returns the number of items in the collection.

Read-Only

Example

The following example displays the number of plates in the collection.

Sub Test()

Select Case ActiveDocument.PrintSettings.Separations.Plates.Count

Case 0

MsgBox "There are no plates to print"

Case 1

MsgBox "There's 1 plate to print"

Case Else

MsgBox "There are " & _

ActiveDocument.PrintSettings.Separations.Plates.Count & _

" plates to print"

End Select

End Sub

 Related Topics


SeparationPlates.Item

Property Item(ByVal Index As Long) As SeparationPlate

SeparationPlates

Description

The Item property returns the specified SeparationPlate in the collection.

The Item property is the default property and its reference may be omitted when referencing items in the collection. For example, SeparationPlates.Item(2) is the same as SeparationPlates(2) - they both reference the second segment object in the SeparationPlates collection.

Read-Only

Parameters	Description

Index	Specifies the SeparationPlate by its index number [in]

Example

The following example lists the colors of the separation plates in the collection.

Sub Test()

Dim strPlates As String

Dim Plate As SeparationPlate

Dim intPlateCounter As Integer

With ActiveDocument.PrintSettings.Separations

For intPlateCounter = 1 To .Plates.Count - 1

If .Plates(intPlateCounter).Enabled = True Then

strPlates = strPlates & .Plates(intPlateCounter).Color & vbCr

End If

Next intPlateCounter

MsgBox strPlates

End With

End Sub

 Related Topics


StructPaletteOptions properties

StructPaletteOptions     Legend

      ColorSensitive
      DitherIntensity
      DitherType
      Importance
      Lightness
      NumColors
      Palette
      PaletteType
      Smoothing
      TargetColor
      ToleranceA
      ToleranceB


StructPaletteOptions

Class StructPaletteOptions

Properties     Referenced By

 Related Topics


StructPaletteOptions.ColorSensitive

Property ColorSensitive As Boolean

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.DitherIntensity

Property DitherIntensity As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.DitherType

Property DitherType As cdrDitherType

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.Importance

Property Importance As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.Lightness

Property Lightness As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.NumColors

Property NumColors As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.Palette

Property Palette As Variant

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.PaletteType

Property PaletteType As cdrImagePaletteType

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.Smoothing

Property Smoothing As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.TargetColor

Property TargetColor As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.ToleranceA

Property ToleranceA As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructPaletteOptions.ToleranceB

Property ToleranceB As Long

StructPaletteOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


StructSaveOptions properties

StructSaveOptions     Legend

      Compression


StructSaveOptions

Class StructSaveOptions

Properties     Referenced By

 Related Topics


StructSaveOptions.Compression

Property Compression As cdrCompressionType

StructSaveOptions

Description

Example

Example of usage goes here

Code line

 Related Topics


SystemPrinters properties

SystemPrinters     Legend

    Count
    Default
  Item


SystemPrinters

Class SystemPrinters

Properties     Referenced By

The SystemPrinters class represents all the installed printers on the user's system.

 Related Topics


SystemPrinters.Count

Property Count As Long

SystemPrinters

Description

The Count property returns the number of printers in the collection.

Read-Only

Example

The following example displays the number of installed printers.

Sub Test()

MsgBox "There are " & Printers.Count & " printers installed on your system"

End Sub

 Related Topics


SystemPrinters.Default

Property Default As Printer

SystemPrinters

Description

The Default property returns a reference to the user's default printer.

Read-Only

Example

The following example displays the name of the default printer.

Sub Test()

Dim Prn As Printer

Set Prn = Printers.Default

MsgBox "Your default printer is: " & Prn.Name

End Sub

 Related Topics


SystemPrinters.Item

Property Item(ByVal nIndex As Long) As Printer

SystemPrinters

Description

The Item property returns the specified Printer in the collection.

The Item property is the default property and its reference may be omitted when accessing an items in the collection. For example, Printers.Item(2) is the same as Printers(2) - they both reference the second printer in the SystemPrinters collection.

Read-Only

Parameters	Description

nIndex	Specifies the printer by its index number [in]

Example

The following example lists the printers installed on the system.

Sub Test()

Dim intCounter As Integer

Dim Prn As Printer

Dim s As String

For intCounter = 1 To Printers.Count

Set Prn = Printers(intCounter)

s = s & Prn.Name & vbCr

Next intCounter

MsgBox "The following printers are installed on your system: " & vbCr & vbCr & s

Set Prn = Nothing

End Sub

 Related Topics


Tools properties

Tools     Legend

    Application
    Count
  Item
    Parent


Tools

Class Tools

Properties     Referenced By

The Tools class defines the characteristics of tool objects and describes the look and behavior of the collection objects through its properties and methods. The Corel PHOTO-PAINT Toolbox contains tools for creating and manipulating objects and selections in your image. The zoom tools let you view specific areas of your image, and the shaping and painting tools let you modify your image. The Toolbox also contains tools that let you apply modifications interactively.

The Standard toolbar, located at the top of the Application Window by default, gives you access to some of the most common application commands, such as opening and saving images. The Property Bar and Docker windows provide access to commands that are relevant to the active tool or current task and can be opened, closed, and moved across your screen.

The tool cursor is a small version of the tool icon that represents all tools in the Image Window. This lets you quickly see which tool is currently selected by looking at the cursor in the Image Window. Shape and Mask tools are displayed as a crosshair cursor with a small representation of the tool on the top-right section of the crosshair. The Text tool is always represented by an I-beam, the Object Picker tool by an arrow.

Each button on a toolbar represents a command. Some are shortcuts to menu commands; others are commands that are available only as toolbar buttons. You can customize your work area by displaying, hiding, sizing, or docking the toolbars. Toolbars can be docked to any side of your screen. You can also arrange toolbars by snapping them to the edges of other toolbars or the Property Bar. Snapping makes it easy to arrange toolbars on screen and organize your work area.

 Related Topics


Tools.Application

Property Application As Application

Tools

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

 Related Topics


Tools.Count

Property Count As Long

Tools

Description

The Count property returns the number of tools in the Tools collection of Corel PHOTO-PAINT. The Corel PHOTO-PAINT Toolbox contains tools for creating and manipulating objects and selections in your image. The zoom tools let you view specific areas of your image, and the shaping and painting tools let you modify your image. The Toolbox also contains tools that let you apply modifications interactively.

The Count property returns a Read-Only value.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


Tools.Item

Property Item(ByVal IndexOrName As Variant) As Object

Tools

Description

The Item property returns a value associated with the index number or name of a tool object in the Tools collection of Corel PHOTO-PAINT. The Corel PHOTO-PAINT Toolbox contains tools for creating and manipulating objects and selections in your image. The zoom tools let you view specific areas of your image, and the shaping and painting tools let you modify your image. The Toolbox also contains tools that let you apply modifications interactively.

The Item property returns a Read-Only value. The Item property is the default property and may be omitted when referencing items in the collection.

You must reference a tool in the collection by passing its index number or name as a parameter:

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in a Tools collection; it uniquely identifies each member of the collection. Name is the unique text name given to each tool object. [in]

Example

Example of usage goes here

Code line

 Related Topics


Tools.Parent

Property Parent As Document

Tools

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

 Related Topics


TrapLayer properties

TrapLayer     Legend

    Color
      Density
      Order
      TrapType
    Type


TrapLayer

Class TrapLayer

Properties     Referenced By

The TrapLayer class represents a plate for color trapping.

 Related Topics


TrapLayer.Color

Property Color As String

TrapLayer

Description

The Color property returns the color of the plate.

Read-Only

Example

The following example displays a list of colors for trap layers.

Sub Test()

Dim intCounter As Integer

Dim s As String

With ActiveDocument.PrintSettings.Trapping

For intCounter = 1 To .Layers.Count - 1

s = s & .Layers.Item(intCounter).Color & vbCr

Next intCounter

End With

MsgBox s

End Sub

 Related Topics


TrapLayer.Density

Property Density As Double

TrapLayer

Description

The Density property returns or sets the neutral density of a color.

Example

The following example displays the density of the yellow plate.

Sub Test()

Dim intCounter As Integer

With ActiveDocument.PrintSettings.Trapping

For intCounter = 1 To .Layers.Count - 1

If .Layers.Item(intCounter).Color = "Yellow" Then

MsgBox "The density of the yellow plate is " & _

.Layers.Item(intCounter).Density

End If

Next intCounter

End With

End Sub

 Related Topics


TrapLayer.Order

Property Order As Long

TrapLayer

Description

The Order property returns or sets the order in which their separations will print.

Example

The following example lists the order of the plates.

Sub Test()

Dim intCounter As Integer

Dim s As String

s = "Color - Order" & vbCr & vbCr

With ActiveDocument.PrintSettings.Trapping.Layers

For intCounter = 1 To .Count - 1

s = s & .Item(intCounter).Color & " - " & .Item(intCounter).Order & vbCr

Next intCounter

End With

MsgBox s

End Sub

 Related Topics


TrapLayer.TrapType

Property TrapType As PrnTrapType

TrapLayer

Description

The TrapType property controls the opacity of the trap.

Example

The following example sets each trap layer as transparent.

Sub Test()

Dim intCounter As Integer

With ActiveDocument.PrintSettings.Trapping.Layers

For intCounter = 1 To .Count - 1

.Item(intCounter).TrapType = prnLayerTransparent

Next intCounter

End With

End Sub

 Related Topics


TrapLayer.Type

Property Type As PrnPlateType

TrapLayer

Description

The Type parameter returns the type of the plate.

This property is reserved for future development.

Read-Only

Example

Example of usage goes here

Code line

 Related Topics


TrapLayers properties

TrapLayers     Legend

    Count
    Item


TrapLayers

Class TrapLayers

Properties     Referenced By

The TrapLayers class represents a collection of trap layers.

 Related Topics


TrapLayers.Count

Property Count As Long

TrapLayers

Description

The Count property returns the number of items in the collection.

Read-Only

Example

The following example displays the number of items in the collection.

Sub Test()

With ActiveDocument

With .PrintSettings.Trapping.Layers

MsgBox "There are " & .Count & " trap layers in the collection."

End With

End With

End Sub

 Related Topics


TrapLayers.Item

Property Item(ByVal Index As Long) As TrapLayer

TrapLayers

Description

The following example returns a reference to the specified plate in the collection.

Read-Only

Parameters	Description

Index	Specifies the plate by its index number [in]

Example

The following example displays a list of all the trap layers in the collection.

Sub Test()

Dim intCounter As Integer

Dim s As String

With ActiveDocument.PrintSettings.Trapping

For intCounter = 1 To .Layers.Count - 1

s = s & .Layers.Item(intCounter).Color & vbCr

Next intCounter

End With

MsgBox s

End Sub

 Related Topics


Window properties

Window     Legend

    Active
    Application
    Caption
    Document
      GridVisible
      GuidesVisible
      Height
    Index
      Left
    Next
    Parent
    Previous
      RulerOriginX
      RulerOriginY
      RulersVisible
      SnapToGrid
      SnapToGuides
      Top
      ViewCenterX
      ViewCenterY
      Visible
      Width
      WindowState
      Zoom


Window methods

Window     Legend

   Activate
   Close
   NewWindow
   SetViewCenter


Window

Class Window

Properties     Methods     Referenced By

The Window class defines the characteristics of Window objects and describes the look and behavior of the objects through its properties and methods.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

 Related Topics


Window.Active

Property Active As Boolean

Window

Description

The Active property returns a True or False value indicating the activity status of a window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

If the window is active, a value of True is returned, indicating that it is currently in use. If the window is inactive, the return value is False, indicating that the window is currently open but not in use.

Use the Activate method to change the activity status of the current window.

The Active property returns a Read-Only value.

Read-Only

Example

The following code example displays the activity status of the current window in a message box:

Sub WindowActive()

MsgBox ActiveWindow.Active

End Sub

 Related Topics


Window.Application

Property Application As Application

Window

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub WindowApplication()

With ActiveWindow.Application

 MsgBox .Version

End With

End Sub

 Related Topics


Window.Caption

Property Caption As String

Window

Description

The Caption property returns the caption of the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The caption appears as text in the title bar of the main application window. If the window is maximized when using the Caption property, the document title also displays after the caption in the title bar.

The Caption property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the active window in a message box:

Sub WindowCaption()

With ActiveWindow

 MsgBox .Caption

End With

End Sub

 Related Topics


Window.Document

Property Document As Document

Window

Description

Definition

The Document property returns a value associated with a document contained in the active window of Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

A document is a single page image or a collection of single-page images that make up a multi-page document.

The Document property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the active window's document in a message box:

Sub WindowDocument()

With ActiveWindow.Document

 MsgBox .Name

End With

End Sub

 Related Topics


Window.GridVisible

Property GridVisible As Boolean

Window

Description

The GridVisible property returns or sets a True or False value that indicates whether or not a grid is visible in a window of Corel PHOTO-PAINT. A Grid is a series of evenly spaced horizontal and vertical dots that are used to help draw and arrange objects. You can use the controls on the Grid and Ruler Setup dialog box to set the grid's parameters. For greater accuracy, you can also have objects in your illustration snap to the grid when you move, or draw them.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the GridVisible property to True in the active window:

Sub Grid()

With ActiveWindow

 .GridVisible = True

End With

End Sub

 Related Topics


Window.GuidesVisible

Property GuidesVisible As Boolean

Window

Description

The GuidesVisible property returns or sets a True or False value that indicates whether or not the guides are visible in a window of Corel PHOTO-PAINT. A guideline is a line placed anywhere in the Corel PHOTO-PAINT image window that is used to help align and position image objects. Guidelines are used with the rulers and the grid to draw objects with precision.

Guidelines may be Horizontal, Vertical, or Slanted and any number of them may be created and saved with your image. You can also enable snapping guidelines so that objects automatically align with the guidelines when moved or drawn nearby.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the GuidesVisible property to True in the active window:

Sub Guide()

With ActiveWindow

 .GuidesVisible = True

End With

End Sub

 Related Topics


Window.Height

Property Height As Long

Window

Description

The Height property returns or sets the height of the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The height of the window is a numerical value measured in screen pixels and measures from the top to the bottom of the window.

Example

The following code example sets the height of the active window to 200 pixels:

Sub WindowHeight()

With ActiveWindow

 .Height = 200

End With

End Sub

 Related Topics


Window.Index

Property Index As Long

Window

Description

The Index property returns a value associated with a window object in the Windows collection of Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Every window in Corel PHOTO-PAINT is identified by an index number. For example, Windows(2), or Window.Index (2) both refer to the second window in the Windows collection of Corel PHOTO-PAINT. The number 2 is the window's index number.

The Index property returns a Read-Only value.

Read-Only

Example

The following code example closes the active window if the index of the active window is 1:

Sub WindowIndex()

With ActiveWindow

 If .Index = 1 Then

 .Close

End If

End With

End Sub

 Related Topics


Window.Left

Property Left As Long

Window

Description

The Left property sets the location of the left border of the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The Left property sets the distance, in screen pixels, from the active window's left border to the left side of main application window.

Example

The following code example sets the Left property to 100 screen pixels:

Sub WindowTop()

With ActiveWindow

 .Left = 100

End With

End Sub

 Related Topics


Window.Next

Property Next As Window

Window

Description

The Next method returns the window in the Windows collection that follows the selected window object in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

For example, if the selected window object has an index value of 2, the Next method returns the window with an index value of 3 in the Windows collection.

The Next property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the window that follows the active window in the Windows collection:

Sub WindowPrevious()

With ActiveWindow

 MsgBox .Next.Caption

End With

End Sub

 Related Topics


Window.Parent

Property Parent As Windows

Window

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the window's parent object in a message box:

Sub WindowParent()

With ActiveWindow

 MsgBox .ActiveView.Parent.Caption

End With

End Sub

 Related Topics


Window.Previous

Property Previous As Window

Window

Description

The Previous method returns the window in the Windows collection that precedes the selected window object in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

For example, if the selected window object has an index value of 2, the Previous method returns the window with an index value of 1 in the Windows collection.

The Previous property returns a Read-Only value.

Read-Only

Example

The following code example displays the caption of the window that precedes the active window in the Windows collection:

Sub WindowPrevious()

With ActiveWindow

 MsgBox .Previous.Caption

End With

End Sub

 Related Topics


Window.RulerOriginX

Property RulerOriginX As Long

Window

Description

The RulerOriginX property returns or sets the origin of the horizontal ruler in Corel PHOTO-PAINT. The origin is the point where the horizontal and vertical rulers meet in the application window. A ruler is a measuring tool that displays on the left side and along the top of the Application Window. The rulers help you size and position the objects in your image.

You can choose when and how you want to display the rulers and the grid. If screen space is limited, you might choose to hide the rulers and display them only when you need them. Alternatively, if you want to view your image as it will appear when you print it, you can hide the grid and display it later. The rulers and grid maintain their settings even when you hide them.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code displays the Y origin value of the horizontal ruler in Corel PHOTO-PAINT:

Sub Ruler()

With ActiveWindow

 MsgBox .RulerOriginX

End With

End Sub

 Related Topics


Window.RulerOriginY

Property RulerOriginY As Long

Window

Description

The RulerOriginY property returns or sets the origin of the vertical ruler in Corel PHOTO-PAINT. The origin is the point where the horizontal and vertical rulers meet in the application window. A ruler is a measuring tool that displays on the left side and along the top of the Application Window. The rulers help you size and position the objects in your image.

You can choose when and how you want to display the rulers and the grid. If screen space is limited, you might choose to hide the rulers and display them only when you need them. Alternatively, if you want to view your image as it will appear when you print it, you can hide the grid and display it later. The rulers and grid maintain their settings even when you hide them.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code displays the Y origin value of the vertical ruler in Corel PHOTO-PAINT:

Sub Ruler()

With ActiveWindow

 MsgBox .RulerOriginY

End With

End Sub

 Related Topics


Window.RulersVisible

Property RulersVisible As Boolean

Window

Description

The RulersVisible property returns or sets a True or False value that indicates whether or not the rulers are visible in the active window of Corel PHOTO-PAINT. A ruler is a measuring tool that displays on the left side and along the top of the Application Window. The rulers help you size and position the objects in your image.

You can choose when and how you want to display the rulers and the grid. If screen space is limited, you might choose to hide the rulers and display them only when you need them. Alternatively, if you want to view your image as it will appear when you print it, you can hide the grid and display it later. The rulers and grid maintain their settings even when you hide them.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the RulersVisible property to True in the active window:

Sub Guide()

With ActiveWindow

 .RulersVisible = True

End With

End Sub

 Related Topics


Window.SnapToGrid

Property SnapToGrid As Boolean

Window

Description

The SnapToGrid property returns or sets a True or False value that indicates whether or not an object will snap to the grid in a window of Corel PHOTO-PAINT. A Grid is a series of evenly spaced horizontal and vertical dots that are used to help draw and arrange objects. You can use the controls on the Grid and Ruler Setup dialog box to set the grid's parameters. For greater accuracy, you can also have objects in your illustration snap to the grid when you move, or draw them.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the SnapToGrid property to True in the active window:

Sub Grid()

With ActiveWindow

 .SnapToGrid = True

End With

End Sub

 Related Topics


Window.SnapToGuides

Property SnapToGuides As Boolean

Window

Description

The SnapToGuides property returns or sets a True or False value that indicates whether or not an object will snap to the guides in a window of Corel PHOTO-PAINT. A guideline is a line placed anywhere in the Corel PHOTO-PAINT image window that is used to help align and position image objects. Guidelines are used with the rulers and the grid to draw objects with precision.

Guidelines may be Horizontal, Vertical, or Slanted and any number of them may be created and saved with your image. You can also enable snapping guidelines so that objects automatically align with the guidelines when moved or drawn nearby.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the SnapToGuides property to True in the active window:

Sub Guide()

With ActiveWindow

 .SnapToGuide = True

End With

End Sub

 Related Topics


Window.Top

Property Top As Long

Window

Description

The Top property sets the location of the left border of the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The Top property sets the distance, in screen pixels, from the active window's top border to the top of the application window's border in Corel PHOTO-PAINT.

Example

The following code example sets the Top property to 100 screen pixels:

Sub WindowTop()

With ActiveWindow

 .Top = 100

End With

End Sub

 Related Topics


Window.ViewCenterX

Property ViewCenterX As Long

Window

Description

The ViewCenterX property returns or sets the horizontal center of display in a window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example displays the horizontal value of the current view center in the active window of Corel PHOTO-PAINT:

Sub View()

With ActiveWindow

 MsgBox .ViewCenterX

End With

End Sub

 Related Topics


Window.ViewCenterY

Property ViewCenterY As Long

Window

Description

The ViewCenterY property returns or sets the vertical center of display in a window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example displays the vertical value of the current view center in the active window of Corel PHOTO-PAINT:

Sub View()

With ActiveWindow

 MsgBox .ViewCenterY

End With

End Sub

 Related Topics


Window.Visible

Property Visible As Boolean

Window

Description

The Visible property returns or sets a True or False value indicating the visibility status of Corel PHOTO-PAINT. The application object refers to the Corel PHOTO-PAINT application. Corel PHOTO-PAINT is a vector-based image application that lets you create professional artwork, from simple logos to intricate technical illustrations.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

If the Visible property is True, the application is running and visible on the monitor display. This property allows you to show or hide the Corel PHOTO-PAINT application window.

Example

The following code example sets the visibility of the active window to True:

Sub LayerVisible()

ActiveWindow.Visible = True

End Sub

 Related Topics


Window.Width

Property Width As Long

Window

Description

The Width property returns or sets the width of the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The width of the window is a numerical value measured in screen pixels and measures from the left to the right of the window.

Example

The following code example sets the width of the active window to 200 pixels:

Sub WindowHeight()

With ActiveWindow

 .Width = 200

End With

End Sub

 Related Topics


Window.WindowState

Property WindowState As cdrWindowState

Window

Description

The WindowState property returns or sets the window state of the current window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

A window can be minimized, maximized or in a normal state.

The WindowState property returns a value of cdrWindowState.

Example

The following code example minimizes the active window of Corel PHOTO-PAINT:

Sub WindowState()

With ActiveWindow

 .WindowState = cdrWindowMinimized

End With

End Sub

 Related Topics


Window.Zoom

Property Zoom As Long

Window

Description

The Zoom property returns a preset, or sets a user-defined magnification level in the active view of Corel PHOTO-PAINT. Changing the magnification level allows you to zoom in and get a closer look at an area of your image, or zoom out and see a wider area of the document. The default zoom level for Corel PHOTO-PAINT is 100%.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example sets the zoom level of the active window to 200%, if the current zoom level is less than 200%:

Sub Zoom()

With ActiveWindow

 If .Zoom < 200 Then

 .Zoom = 200

 End If

End With

End Sub

 Related Topics


Window.Activate

Sub Activate()

Window

Description

The Activate method opens a window in Corel PHOTO-PAINT and makes it the active window, if it is not currently open. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

In may cases, newer operating systems like Windows 98 and Windows 2000 don't allow the application to activate itself, to prevent intervention with you're current activity. If the application is not granted active status in certain situations, the application window will start flashing in the taskbar, but it will not appear in the foreground.

Example

The following code example activates the current window in Corel PHOTO-PAINT, if it is not already open:

Sub WindowActivate()

If ActiveWindow.Active = False Then

 ActiveWindow.Activate

End If

End Sub

 Related Topics


Window.Close

Sub Close()

Window

Description

The Close method closes the active window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an image Window. You can draw anywhere in the window, but only objects that appear on the Image Page will print. This area is enclosed by a rectangle with a shadow effect. Although you can draw anywhere in the Image Window, only objects on the Image Page appear in your print jobs.

Before you close an active file, Corel PHOTO-PAINT prompts you to save the file. You can also close specific windows, as well as close all open files.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Example

The following code example closes the active window:

Sub WindowClose()

With ActiveWindow

 .Close

End With

End Sub

 Related Topics


Window.NewWindow

Function NewWindow() As Window

Window

Description

Function NewWindow() As Window

The NewWindow method creates a new window in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Return value

Returns Window

Example

The following code example creates a new window in Corel PHOTO-PAINT. A message displays the number of open windows, including the new window, in a message box:

Sub WindowNew()

ActiveWindow.NewWindow

 MsgBox Windows.Count

End Sub

 Related Topics


Window.SetViewCenter

Sub SetViewCenter(ByVal X As Long, ByVal Y As Long)

Window

Description

The SetViewCenter method sets the central viewpoint, or center of display, in the active window of Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Parameters	Description

X	The X parameter identifies the horizontal coordinate of the viewpoint in a window. The viewpoint is the center point of a window's view. This value is measured in document units. [in]

Y	The Y parameter identifies the vertical coordinate of the viewpoint in a window. The viewpoint is the center point of a window's view. This value is measured in document units. [in]

Example

The following code example sets the center of the viewpoint of the active window with the SetViewPoint method at the point (2, 2):

Sub Center()

With ActiveWindow

 .SetViewCenter 2, 2

End With

End Sub

 Related Topics


Windows properties

Windows     Legend

    Application
    Count
  Item
    Parent


Windows methods

Windows     Legend

   Arrange
   CloseAll


Windows

Class Windows

Properties     Methods     Referenced By

The Windows class defines the characteristics of Windows collection objects and describes the look and behavior of the collection objects through its properties and methods.

A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

 Related Topics


Windows.Application

Property Application As Application

Windows

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub ApplicationWindows()

With Windows

MsgBox .Application.Version

End With

End Sub

 Related Topics


Windows.Count

Property Count As Long

Windows

Description

The Count property returns the number of windows in the Windows collection of Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

The Count property returns a Read-Only value.

Read-Only

Example

The following code example displays the number of windows in Windows collection of Corel PHOTO-PAINT:

Sub WindowsCount()

MsgBox Windows.Count

End Sub

 Related Topics


Windows.Item

Property Item(ByVal Index As Long) As Window

Windows

Description

The Item property returns a value associated with the index number of a window object in the Windows collection of Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

Windows(2) refers to the second window in the Windows collection of Corel PHOTO-PAINT.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Windows.Item(2) is the same as Windows(2). Both structures reference the second window in the Windows collection.

You must reference a window in the collection by passing its index number as a parameter:

Read-Only

Parameters	Description

Index	Index is a preset placeholder for each object in a Windows collection; it uniquely identifies each member of the collection. [in]

Example

The following code example displays the caption of the second window in the Windows collection in a message box:

Sub WindowsItem()

MsgBox Windows.Item(2).Caption

End Sub

 Related Topics


Windows.Parent

Property Parent As Application

Windows

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the window collection's parent object in a message box:

Sub ParentWindows()

With Windows

MsgBox .Parent.Path

End With

End Sub

 Related Topics


Windows.Arrange

Sub Arrange(ByVal Style As cdrWindowArrangeStyle)

Windows

Description

The Arrange method organizes all open windows in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

A window can be tiled horizontally or vertically, as well as cascaded in the application window.

You must reference the style in which to organize the windows by passing the style type as a parameter:

Parameters	Description

Style	The Style parameter identifies the type of window arrangement in Corel PHOTO-PAINT. The styles for windows in Corel PHOTO-PAINT are Tile Vertically, Tile Horizontally, and Cascade. [in]

Example

The following code example uses the Arrange method to cascade all open windows in Corel PHOTO-PAINT:

Sub WindowsArrange()

Windows.Arrange (cdrCascade)

End Sub

 Related Topics


Windows.CloseAll

Sub CloseAll()

Windows

Description

The CloseAll method closes all open windows in Corel PHOTO-PAINT. A window is a container for an image in Corel PHOTO-PAINT and is often referred to as an Image Window. An image that you open or create in Corel PHOTO-PAINT appears in an Image Window. You can open as many images as your computer's memory permits. If you have more than one image open, you can click inside an Image Window to make that image active. You can move an Image Window by dragging its Title Bar.

You are prompted to save your changes in each window when you execute the CloseAll method.

Example

The following code example uses the CloseAll method to exit all the open windows in Corel PHOTO-PAINT:

Sub WindowsClose()

Windows.CloseAll

End Sub

 Related Topics


Workspace properties

Workspace     Legend

    Active
    Application
    Default
    Description
    Name
    Parent


Workspace methods

Workspace     Legend

   Activate


Workspace

Class Workspace

Properties     Methods     Referenced By

The Workspace class defines the characteristics of workspace objects and describes the look and behavior of the objects through its properties and methods.

A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

You can create multiple workspaces for specific users or specific tasks and then apply them when required. You can also delete workspaces when they are no longer needed.

You can customize your workspace settings. You can set up your screen the way you want, choose options in the Options dialog box, and then create a custom workspace to save your settings. You can customize the tools and operations that you use most, such as menus and shortcut keys. You can access your custom settings by loading your saved workspace.

 Related Topics


Workspace.Active

Property Active As Boolean

Workspace

Description

The Active property returns a True or False value indicating if a specified workspace is currently active in Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

If the Active property is True, the workspace is currently active in the application.

The Active property returns a Read-Only value.

Read-Only

Example

The following code example displays the name of the current workspace, if the workspace is active, in a message box:

Sub WorkspaceActive()

If ActiveWorkspace.Active = True Then

 MsgBox ActiveWorkspace.Name

End If

End Sub

 Related Topics


Workspace.Application

Property Application As Object

Workspace

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub WorkspaceApplication()

With ActiveWorkspace

 MsgBox .Application.Version

End With

End Sub

 Related Topics


Workspace.Default

Property Default As Boolean

Workspace

Description

The Default property returns a True or False value indicating if the current workspace is the default workspace in Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

If the default property is True, the current workspace is the default workspace. The default workspace can be set in the Options dialog box.

The Default property returns a Read-Only value.

Read-Only

Example

The following code example checks to see if the current workspace is the default workspace. If it is NOT the default workspace, a message box displays the name of the active workspace in a message box:

Sub WorkspaceDefault()

If ActiveWorkspace.Default = False Then

 MsgBox ActiveWorkspace.Name

End If

End Sub

 Related Topics


Workspace.Description

Property Description As String

Workspace

Description

The Description property returns a written description of a workspace in Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

When a workspace is created, you can provide a brief description of the workspace. This is useful if you are using multiple workspaces. The description that you type in the Description Of New Workspace box appears in the list of available workspaces.

The Description property returns a Read-Only value.

Read-Only

Example

The following code example displays the description text of the current workspace in a message box:

Sub WorkspaceDescription()

MsgBox ActiveWorkspace.Description

End Sub

 Related Topics


Workspace.Name

Property Name As String

Workspace

Description

The Name property returns the name given to a workspace in Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

The Name property returns a String value.

Read-Only

Example

The following code example displays the name of the current workspace in a message box:

Sub WorkspaceName()

MsgBox ActiveWorkspace.Name

End Sub

 Related Topics


Workspace.Parent

Property Parent As Workspaces

Workspace

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the workspace's parent object in a message box:

Sub WorkspaceParent()

With ActiveWorkspace

 MsgBox .Parent.Path

End With

End Sub

 Related Topics


Workspace.Activate

Sub Activate()

Workspace

Description

The Activate method opens a workspace, if the workspace is not currently open in Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

Example

The following code example uses the Activate method to open the current workspace if it is not already open in Corel PHOTO-PAINT:

Sub WorkspaceActivate()

If Not ActiveWorkspace.Active Then

 ActiveWorkspace.Activate

End If

End Sub

 Related Topics


Workspaces properties

Workspaces     Legend

    Application
    Count
  Item
    Parent


Workspaces

Class Workspaces

Properties     Referenced By

The Workspaces class defines the characteristics of Workspaces collection objects and describes the look and behavior of the collection objects through its properties and methods. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT.

A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements. For example, if you are using a low-resolution monitor setting, you can use the preset workspace designed for such a setting.

You can create multiple workspaces for specific users or specific tasks and then apply them when required. You can also delete workspaces when they are no longer needed.

You can customize your workspace settings. You can set up your screen the way you want, choose options in the Options dialog box, and then create a custom workspace to save your settings. You can customize the tools and operations that you use most, such as menus and shortcut keys. You can access your custom settings by loading your saved workspace.

 Related Topics


Workspaces.Application

Property Application As Object

Workspaces

Description

The Application property returns a value associated with the main Corel PHOTO-PAINT application. An application object is always available in VBA and its properties and methods are global, making it unnecessary to explicitly specify the Application object. For example, with the Application object, CorelScript and Application.CorelScript can be used interchangeably because they represent the same application object.

The Application property returns a Read-Only value.

Read-Only

Example

The following code example displays the current version of Corel PHOTO-PAINT in a message box:

Sub WorkspacesApplication()

With Workspaces

 MsgBox .Application.Version

End With

End Sub

 Related Topics


Workspaces.Count

Property Count As Long

Workspaces

Description

The Count property returns the number of workspaces in the Workspaces collection of Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements.

The Count property returns a Read-Only value.

Read-Only

Example

The following code example displays the number of available workspace objects in the Workspaces collection of Corel PHOTO-PAINT in a message box:

Sub WorkspacesCount()

MsgBox Workspaces.Count

End Sub

 Related Topics


Workspaces.Item

Property Item(ByVal IndexOrName As Variant) As Workspace

Workspaces

Description

The Item property returns a value associated with the index number or name of a workspace object in the Workspaces collection of Corel PHOTO-PAINT. A workspace is an enclosed work environment that is ideally suited to meet specific needs when creating an image in Corel PHOTO-PAINT. You can choose from several preset workspaces. Each preset workspace is designed to provide a working environment tailored to your requirements.

A workspace in Corel PHOTO-PAINT is identified by an index number or by its name. You can view the name of each workspace is the Options dialog box.

Workspaces(2) refers to the second workspace in the Workspaces collection of Corel PHOTO-PAINT. If this workspace is called "Enhanced", Workspaces(Enhanced) also refers to the second workspace in the Workspaces collection.

The Item property returns a Read-Only value.

The Item property is the default property and may be omitted when referencing items in the collection. For example, Workspaces.Item(2) is the same as Workspaces(2). They both reference the second workspace in the Workspaces collection.

You must reference a workspace in the collection by passing its index number or name as a parameter:

Read-Only

Parameters	Description

IndexOrName	Index is a preset placeholder for each object in a Workspaces collection; it uniquely identifies each member of the collection. Name is the unique text name given to each workspace. Workspace names can be viewed in the Options dialog box. [in]

Example

Example of usage goes here

Code line

 Related Topics


Workspaces.Parent

Property Parent As Object

Workspaces

Description

The Parent property returns a value associated with the properties, methods, and controls of an object's parent in Corel PHOTO-PAINT's hierarchy of objects. A parent object acts as a container for child objects. For example, a form, as a container, is the parent object of a check box on that form.

Most objects have either a Parent property or a Collection property, pointing to the object's parent object in the object model. The Collection property is used if the parent object is a collection.

The Parent property returns a Read-Only value.

Read-Only

Example

The following code example displays the path of the Workspaces collection's parent object in a message box:

Sub WorkspacesParent()

With Workspaces

MsgBox .Parent.Path

End With

End Sub

 Related Topics


Activate Method

Select one of the available subtopics below to see detailed help on Activate method

Object	Method description

AppWindow	Activates the application's window

Background	Edits the background

Channel	Sets this channel as the active one

Document	Activates the document

Frame	Activates the frame

Frames	Activates the frame

Layer	Makes this layer the active one

Window	Sets this window to be the active one

Workspace	Activates the workspace


Add Method

Select one of the available subtopics below to see detailed help on Add method

Object	Method description

Channels	Adds a channel

ColorMaskColors	Adds a ColorMaskColor

LayerRange	Adds a layer to the layer range

Layers	Adds a layer to the Layers collection


AddClipMask Method

Select one of the available subtopics below to see detailed help on AddClipMask method

Object	Method description

LayerRange	Adds a clip mask object to the layer range

ObjectLayer	Adds a clip mask object to the object layer


AddColor Method

Select one of the available subtopics below to see detailed help on AddColor method

Object	Method description

ColorMask	Adds a color to the color mask

ColorTable	Create a new color table

Palette	Adds a color to a custom color palette


AffineDistort Method

Select one of the available subtopics below to see detailed help on AffineDistort method

Object	Method description

Layer	Distorts the layer

LayerRange	Distorts the layer range

Mask	Used by CorelSCRIPT to record manual manipulation of a mask area. If you want to distort a mask in Corel SCRIPT, use the MaskDistort command


AlignToDocument Method

Select one of the available subtopics below to see detailed help on AlignToDocument method

Object	Method description

Layer	Sets the alignment of the layer, according to the alignment type in the document

LayerRange	Sets the alignment of the layer range, according to the alignment type in the document

Mask	Sets the alignment of the mask, according to the alignment type in the document


AlignToDocumentCenter Method

Select one of the available subtopics below to see detailed help on AlignToDocumentCenter method

Object	Method description

Layer	Sets the alignment of the layer to the center of a document

LayerRange	Sets the alignment of the layer range to the center of the document

Mask	Sets the alignment of the mask to the center of a document


AlignToGrid Method

Select one of the available subtopics below to see detailed help on AlignToGrid method

Object	Method description

Layer	Sets the alignment of the layer to the grid

LayerRange	Sets the alignment of the layer range to the grid

Mask	Sets the alignment of the mask to the grid


AlignToLayer Method

Select one of the available subtopics below to see detailed help on AlignToLayer method

Object	Method description

Layer	Sets the alignment of the active layer to another layer

LayerRange	Sets the alignment of the layer range to a layer

Mask	Sets the alignment of the mask to a layer


AlignToLayerRange Method

Select one of the available subtopics below to see detailed help on AlignToLayerRange method

Object	Method description

Layer	Sets the alignment of the active layer to a range of layers

LayerRange	Sets the alignment of the layer range to another range of layers

Mask	Sets the alignment of the mask to a range of layers


AlignToPoint Method

Select one of the available subtopics below to see detailed help on AlignToPoint method

Object	Method description

Layer	Sets the alignment of the active layer to a specified point

LayerRange	Sets the alignment of the layer range to a specified point

Mask	Sets the alignment of the mask to a specified point


Clear Method

Select one of the available subtopics below to see detailed help on Clear method

Object	Method description

Background	Clears the background

Clipboard	Clears the contents of the clipboard

PrintJob	method Clear


Close Method

Select one of the available subtopics below to see detailed help on Close method

Object	Method description

Document	Closes the document

Palette	Closes the color palette

Window	Closes the window


Combine Method

Select one of the available subtopics below to see detailed help on Combine method

Object	Method description

DropShadow	Combines the dropshadow with the object

LayerRange	Combines the layers of the layer range with an object


ConvertToBW Method

Select one of the available subtopics below to see detailed help on ConvertToBW method

Object	Method description

Color	Converts the color model to Black and White

Document	Converts the document into the black-and-white mode


Copy Method

Select one of the available subtopics below to see detailed help on Copy method

Object	Method description

Background	Copies the background

Layer	Copies the layer

LayerRange	Copies the layer range


CreateMask Method

Select one of the available subtopics below to see detailed help on CreateMask method

Object	Method description

Channel	Creates a new mask based on the channel

Layer	Creates a mask on the layer

LayerRange	Creates a mask on the layer range


CreatePalette Method

Select one of the available subtopics below to see detailed help on CreatePalette method

Object	Method description

Document	Creates a new palette

Layer	Creates a new color palette from the colors used in the layer

LayerRange	Creates a new color palette from the colors used in the layer range


CreateSelection Method

Select one of the available subtopics below to see detailed help on CreateSelection method

Object	Method description

Layer	Selects this layer only

LayerRange	Creates a selection from the layer range


CropToMask Method

Select one of the available subtopics below to see detailed help on CropToMask method

Object	Method description

Document	Crops the selected image to the bounding box of the current mask

Layer	Sets whether to crop a layer's image around a mask

LayerRange	Sets whether to crop a layer's image, in the layer range around a mask


Cut Method

Select one of the available subtopics below to see detailed help on Cut method

Object	Method description

Background	Cuts the background

Layer	Cuts the layer

LayerRange	Cuts the layer range


Defringe Method

Select one of the available subtopics below to see detailed help on Defringe method

Object	Method description

LayerRange	Defringes the edges of the layers in the layer range

ObjectLayer	Defringes the edges of the object layer


Delete Method

Select one of the available subtopics below to see detailed help on Delete method

Object	Method description

Channel	Deletes the channel

ClipMask	Deletes the clipmask

ColorMaskColor	Deletes a mask color

CorelScriptFile	Deletes the Corel SCRIPT file from disk

DropShadow	Deletes the dropshadow

Floater	Deletes the floater

Frame	Deletes the frame

Frames	Deletes the frames within the specified range

Guide	Deletes the guides

Layer	Deletes the selected layer(s)

LayerRange	Deletes the layer range

Mask	Deletes Mask


Distort Method

Select one of the available subtopics below to see detailed help on Distort method

Object	Method description

Layer	Distorts the shape of the selected layer

LayerRange	Distorts the shape of the layer range

Mask	Distorts the shape of the current mask


Duplicate Method

Select one of the available subtopics below to see detailed help on Duplicate method

Object	Method description

Document	Creates a copy of the image and assigns it the specified name

Layer	Duplicates the selected layer(s). The new layers are placed in front of existing layers and remain selected. The original layers are deselected

LayerRange	Duplicates the layer range


Feather Method

Select one of the available subtopics below to see detailed help on Feather method

Object	Method description

Layer	Feathers the edges of the selected layer(s)

LayerRange	Feathers the edges of the layer range

Mask	Feathers the edges of the mask, creating a smoothing effect


Flip Method

Select one of the available subtopics below to see detailed help on Flip method

Object	Method description

Document	Flips the image horizontally and/or vertically

Layer	Flips the layer

LayerRange	Flips the layer range

Mask	Flips the mask


GetIndexOfColor Method

Select one of the available subtopics below to see detailed help on GetIndexOfColor method

Object	Method description

ColorTable	Gets the index of a color in the palette

Palette	Gets the index of a color object


GetPosition Method

Select one of the available subtopics below to see detailed help on GetPosition method

Object	Method description

Floater	Gets the position of the floater

Layer	Gets the center point of the layer

LayerRange	Gets the center point of the layer range

Mask	Gets the position of the mask


GetSize Method

Select one of the available subtopics below to see detailed help on GetSize method

Object	Method description

Layer	Gets the width and height of a layer

LayerRange	Gets the size of the layer range

Mask	Gets the size of the mask


Load Method

Select one of the available subtopics below to see detailed help on Load method

Object	Method description

Channels	Loads a channel

Mask	Loads a mask

PDFVBASettings

PrintSettings	method Load


Merge Method

Select one of the available subtopics below to see detailed help on Merge method

Object	Method description

Layer	Merges the selected layer(s) or all layers with the background. The layers(s) become(s) part of the image and cannot be selected again

LayerRange	Merges the layer range with the background

Layers	Merges the layers with the background


Move Method

Select one of the available subtopics below to see detailed help on Move method

Object	Method description

Floater	Moves the floater by a given delta

Frame	Moves the frame to the given index

Frames	Moves the specified frame to a given index

Layer	Moves the layer a specified distance from its original location

LayerRange	Moves the layer range to a specified distance from its original location

Mask	Moves the mask to a specified position


OrderBackOf Method

Select one of the available subtopics below to see detailed help on OrderBackOf method

Object	Method description

Layer	Sets the stacking order of the layer by moving it to the back of a specified layer in the stacking order

LayerRange	Sets the stacking order of the layer range by moving it to the back of a specified layer in the stacking order


OrderBackOne Method

Select one of the available subtopics below to see detailed help on OrderBackOne method

Object	Method description

Layer	Sets the stacking order of the layer by moving it back one in the stacking order

LayerRange	Sets the stacking order of the layer range by moving it back one in the stacking order


OrderForwardOne Method

Select one of the available subtopics below to see detailed help on OrderForwardOne method

Object	Method description

Layer	Sets the stacking order of the layer by moving it forward one in the stacking order

LayerRange	Sets the stacking order of the layer range by moving it forward one in the stacking order


OrderFrontOf Method

Select one of the available subtopics below to see detailed help on OrderFrontOf method

Object	Method description

Layer	Sets the stacking order of the layer by moving it to the front of a specified layer in the stacking order

LayerRange	Sets the stacking order of the layer range by moving it to the front of a specified layer in the stacking order


OrderToBack Method

Select one of the available subtopics below to see detailed help on OrderToBack method

Object	Method description

Layer	Sets the stacking order of the layer by moving it to the back of the stacking order

LayerRange	Sets the stacking order of the layer range by moving it to the back of the stacking order


OrderToFront Method

Select one of the available subtopics below to see detailed help on OrderToFront method

Object	Method description

Layer	Sets the stacking order of the layer by moving it to the front of the stacking order

LayerRange	Sets the stacking order of the layer range by moving it to the front of the stacking order


PrintOut Method

Select one of the available subtopics below to see detailed help on PrintOut method

Object	Method description

Document	Prints the document

PrintJob	method PrintOut


RemoveMatte Method

Select one of the available subtopics below to see detailed help on RemoveMatte method

Object	Method description

LayerRange	Removes a matte from the layer range

ObjectLayer	Removes a matte from the object layer


Reset Method

Select one of the available subtopics below to see detailed help on Reset method

Object	Method description

ColorMask	Resets the color mask's properties

PDFVBASettings

PrintSettings	method Reset


Rotate Method

Select one of the available subtopics below to see detailed help on Rotate method

Object	Method description

Document	Rotates the image to a specified degree

Layer	Rotates the selected layer(s) by the specified angle, about the given rotation point

LayerRange	Rotates the layer range by a specified angle around a rotation point

Mask	Rotates the mask


Save Method

Select one of the available subtopics below to see detailed help on Save method

Object	Method description

Document	Saves the document using its current name and location

Palette	Saves the palette

PDFVBASettings

PrintSettings	method Save


SetPosition Method

Select one of the available subtopics below to see detailed help on SetPosition method

Object	Method description

Floater	Sets the position of the floater

Layer	Sets the center point of the layer

LayerRange	Sets the center point of the layer range

Mask	Sets the position of the mask


SetSize Method

Select one of the available subtopics below to see detailed help on SetSize method

Object	Method description

Layer	Sets the width and height of the layer

LayerRange	Sets the size of the layer range

Mask	Sets the size of the mask


ShowDialog Method

Select one of the available subtopics below to see detailed help on ShowDialog method

Object	Method description

PDFVBASettings

Printer	method ShowDialog

PrintSettings	method ShowDialog


Skew Method

Select one of the available subtopics below to see detailed help on Skew method

Object	Method description

Layer	Skews the selected layer(s)

LayerRange	Skews the layer range

Mask	Skews the active mask


Split Method

Select one of the available subtopics below to see detailed help on Split method

Object	Method description

Document	Separates an image into the color channels corresponding to the specified color model

DropShadow	Creates a new object with the dropshadow


Stretch Method

Select one of the available subtopics below to see detailed help on Stretch method

Object	Method description

Layer	Stretches the selected layer(s)

LayerRange	Stretches the layer range

Mask	Stretches the active mask


Threshold Method

Select one of the available subtopics below to see detailed help on Threshold method

Object	Method description

Layer	Alters the edges of mask selections or objects by removing the smooth transition between a selection, or a layer, and the underlying image

LayerRange	Sets the edges of mask selections or objects by removing the smooth transition between a selection, or the layer range, and the underlying image

Mask	Converts grayscale to a black and white (or bi-level) mask using the specified threshold value


UngroupAll Method

Select one of the available subtopics below to see detailed help on UngroupAll method

Object	Method description

Layer	Removes the grouping feature from all nested groups of the layer

LayerRange	UnGroups all of the layers in the layer range


Active Property

Select one of the available subtopics below to see detailed help on Active property

Object	Property description

AppWindow	Gets the application's window active status

Background	Makes the background editable

Channel	Gets the active status of the channel

Layer	Gets whether the layer is active

Window	Gets whether this window is the active one

Workspace	Gets the current workspace


ActiveFrame Property

Select one of the available subtopics below to see detailed help on ActiveFrame property

Object	Property description

Application	Gets the reference to the currently active frame

Document	Gets the reference to the currently active frame


ActiveLayer Property

Select one of the available subtopics below to see detailed help on ActiveLayer property

Object	Property description

Application	Gets the reference to the currently active layer

Document	Gets the reference to the currently active layer


ActiveWindow Property

Select one of the available subtopics below to see detailed help on ActiveWindow property

Object	Property description

Application	Gets the reference to the currently active window

Document	Gets the reference to the currently active window


Angle Property

Select one of the available subtopics below to see detailed help on Angle property

Object	Property description

DropShadow	Gets the dropshadow's angle

SeparationPlate	property Angle


Application Property

Select one of the available subtopics below to see detailed help on Application property

Object	Property description

AddinHook

AddIns

Application	Gets the application to which the object belongs

AppWindow	Gets the application to which the object belongs

Background	Gets the application to which the object belongs

Channel	Gets the application to which the object belongs

Channels	Gets the application object

Clipboard	Gets the application to which the object belongs

ClipMask	Gets the application to which the object belongs

Color	Gets the application to which the object belongs

ColorMask	Gets the application to which the object belongs

ColorMaskColor	Gets the application to which the object belongs

ColorMaskColors	Gets the application to which the object belongs

Colors	Gets the application to which the color collection belongs

ColorTable	Gets the application to which the object belongs

CorelScriptFile	Gets the application to which the object belongs

Document	Gets the application to which the object belongs

Documents	Gets the application object

DropShadow	Gets the application to which the object belongs

Floater	Gets the application object

Frame	Gets the application to which the object belongs

Frames	Gets the application to which the object belongs

Grid

Guide	Gets the application to which the object belongs

Guides	Gets the application to which the object belongs

Layer	Gets the application to which the object belongs

LayerRange	Gets the application to which the object belongs

Layers	Gets the application to which the object belongs

Mask	Gets the application to which the object belongs

ObjectLayer	Gets the application to which the object belongs

Palette	Gets the application to which the object belongs

Palettes	Gets the application to which the palette collection belongs

Rulers

Tools	Gets the application to which the object belongs

Window	Gets the application object

Windows	Gets the application object

Workspace	Gets the application to which the object belongs

Workspaces	Gets the application to which the workspace collection belongs


Background Property

Select one of the available subtopics below to see detailed help on Background property

Object	Property description

Document	Gets the background object

Frame	Gets the Background object of the frame


Caption Property

Select one of the available subtopics below to see detailed help on Caption property

Object	Property description

AppWindow	Gets or sets the application's window caption

Window	Gets the caption of the window


Color Property

Select one of the available subtopics below to see detailed help on Color property

Object	Property description

Channel	Gets or sets the overlay color of the channel

ColorMaskColor	Gets or sets a color in the mask color

DropShadow	Gets the dropshadow's color

Palette	Gets or sets a color object based on index

SeparationPlate	property Color

TrapLayer	property Color


ColorMode Property

Select one of the available subtopics below to see detailed help on ColorMode property

Object	Property description

PDFVBASettings

PrintOptions	property ColorMode


ColorResolution Property

Select one of the available subtopics below to see detailed help on ColorResolution property

Object	Property description

PDFVBASettings

PrintOptions	property ColorResolution


Count Property

Select one of the available subtopics below to see detailed help on Count property

Object	Property description

Channels	Gets the number of channels

ColorMaskColors	Gets the number of color mask colors

Colors	Gets the number of colors in the color collection

ColorTable	Gets the number of palettes

Documents	Gets the number of objects

Frames	Gets the number of frames

Guides	Gets the number of guides

LayerRange	Gets the number of layers in the layer range

Layers	Gets the number of layers

Palettes	Gets the number of items in the collection of palettes

PrintDocuments	property Count

PrintPages	property Count

SeparationPlates	property Count

SystemPrinters	property Count

Tools	Gets the number of tools available

TrapLayers	property Count

Windows	Gets the number of windows

Workspaces	Gets the number of items in the collection of workspaces


CropMarks Property

Select one of the available subtopics below to see detailed help on CropMarks property

Object	Property description

PDFVBASettings

PrintPrepress	property CropMarks


Default Property

Select one of the available subtopics below to see detailed help on Default property

Object	Property description

Printer	property Default

SystemPrinters	property Default

Workspace	Gets the workspace's default state


Description Property

Select one of the available subtopics below to see detailed help on Description property

Object	Property description

Printer	property Description

Workspace	Gets the workspace's description


Documents Property

Select one of the available subtopics below to see detailed help on Documents property

Object	Property description

Application	Gets the collection of documents open in the application

PrintJob	property Documents


DownsampleColor Property

Select one of the available subtopics below to see detailed help on DownsampleColor property

Object	Property description

PDFVBASettings

PrintOptions	property DownsampleColor


DownsampleGray Property

Select one of the available subtopics below to see detailed help on DownsampleGray property

Object	Property description

PDFVBASettings

PrintOptions	property DownsampleGray


DownsampleMono Property

Select one of the available subtopics below to see detailed help on DownsampleMono property

Object	Property description

PDFVBASettings

PrintOptions	property DownsampleMono


Enabled Property

Select one of the available subtopics below to see detailed help on Enabled property

Object	Property description

PrintSeparations	property Enabled

PrintTrapping	property Enabled

SeparationPlate	property Enabled


FileName Property

Select one of the available subtopics below to see detailed help on FileName property

Object	Property description

CorelScriptFile	Gets the Corel SCRIPT file name

Document	Gets the file name of the document

Palette	Gets the filename of the palette

PrintSettings	property FileName


FountainSteps Property

Select one of the available subtopics below to see detailed help on FountainSteps property

Object	Property description

PDFVBASettings

PrintOptions	property FountainSteps


GrayResolution Property

Select one of the available subtopics below to see detailed help on GrayResolution property

Object	Property description

PDFVBASettings

PrintOptions	property GrayResolution


Height Property

Select one of the available subtopics below to see detailed help on Height property

Object	Property description

AppWindow	Gets or sets the application's window height

Window	Gets or sets the height of the window


Index Property

Select one of the available subtopics below to see detailed help on Index property

Object	Property description

AddinHook

Channel	Gets or sets the index of the channel

Frame	Gets the index of this frame

Guide	Gets the index of the guide within the collection

Window	Gets the index of the window


Item Property

Select one of the available subtopics below to see detailed help on Item property

Object	Property description

Channels	Gets a reference to the specified Channel, in base 1

ColorMaskColors	Gets a reference to the specified ColorMaskColor, in base 1

Colors	Gets a reference to the specified color, in base 1

ColorTable	Gets the reference to the specified Color, in base 1

Documents	Gets the document object

Frames	Gets a reference to the specified Frame, in base 1

Guides	Gets the guide object

LayerRange	Gets a reference to the specified LayerRange, in base 1

Layers	Gets the layer object

Palettes	Gets a reference to a specified palette, in base 1

SeparationPlates	property Item

SystemPrinters	property Item

Tools	Gets the given tool object

TrapLayers	property Item

Windows	Gets the window object

Workspaces	Gets a reference to a specified workspace, in base 1


Layers Property

Select one of the available subtopics below to see detailed help on Layers property

Object	Property description

Document	Gets a collection of the document's layers

PrintTrapping	property Layers


Left Property

Select one of the available subtopics below to see detailed help on Left property

Object	Property description

AppWindow	Gets or sets the application's window left position

Window	Gets or sets the position of the window's left border


MaintainOPILinks Property

Select one of the available subtopics below to see detailed help on MaintainOPILinks property

Object	Property description

PDFVBASettings

PrintPostScript	property MaintainOPILinks


Mode Property

Select one of the available subtopics below to see detailed help on Mode property

Object	Property description

ColorMask	Gets or sets the mode of the color mask

Document	Gets the Corel PHOTO-PAINT image mode of the document


MonoResolution Property

Select one of the available subtopics below to see detailed help on MonoResolution property

Object	Property description

PDFVBASettings

PrintOptions	property MonoResolution


Name Property

Select one of the available subtopics below to see detailed help on Name property

Object	Property description

Channel	Gets or sets the name of the channel

Color	Gets color name

CorelScriptFile	Gets or sets a friendly name for the script; will be used as a macro name if the script is translated to VBA

Document	Gets or sets the name of the VBA project corresponding to the document

Layer	Gets or sets the name the specified layer

Palette	Gets or sets the color palette name; palette name can only be set if it is a custom palette

Printer	property Name

Workspace	Gets the workspace's name


Opacity Property

Select one of the available subtopics below to see detailed help on Opacity property

Object	Property description

Channel	Gets or sets the overlay opacity of the channel

DropShadow	Gets the dropshadow's opacity

Layer	Gets or sets the opacity of the selected layer(s)


PageRange Property

Select one of the available subtopics below to see detailed help on PageRange property

Object	Property description

PDFVBASettings

PrintSettings	property PageRange


PaletteID Property

Select one of the available subtopics below to see detailed help on PaletteID property

Object	Property description

Color	Gets the Fixed Palette Color's ID

Palette	Gets the palette ID


Parent Property

Select one of the available subtopics below to see detailed help on Parent property

Object	Property description

AddinHook

AddIns

Application	Gets the application to which the object belongs

AppWindow	Gets the parent of which the object is a child

Background	Gets the parent document object

Channel	Gets the parent object

Channels	Gets the parent document object

Clipboard	Gets the parent of which this object is a child

ClipMask	Gets the parent object

Color	Gets the parent of which this object is a child

ColorMask	Gets the parent application object

ColorMaskColor	Gets the parent application object

ColorMaskColors	Gets the parent application object

Colors	Gets the parent of which the color collection is a child; if the color object is not from a palette the color parent is null

ColorTable	Gets the parent document object

CorelScriptFile	Gets the parent of which the object is a child

Document	Gets the application to which the object belongs

Documents	Gets the application object

DropShadow	Gets the parent object

Floater	Gets the parent document object

Frame	Gets the parent frame collection

Frames	Gets the parent document object

Grid

Guide	Gets the parent document object

Guides	Gets the parent document object

Layer	Gets the parent document object

LayerRange	Gets the parent document object

Layers	Gets the parent document object

Mask	Gets the parent document object

ObjectLayer	Gets the parent document object

Palette	Gets the parent of which this object is a child

Palettes	Gets the parent of which the palette collection is a child

Rulers

Tools	Gets the parent document object

Window	Gets the parent window collection

Windows	Gets the parent document object

Workspace	Gets the parent of which this object is a child

Workspaces	Gets the parent of which the workspace collection is a child


PositionX Property

Select one of the available subtopics below to see detailed help on PositionX property

Object	Property description

Floater	Gets or sets the horizontal position of the floater

Guide	Gets or sets the horizontal position of the guide

Layer	Gets or sets the horizontal position of a layer's center

LayerRange	Gets or sets the horizontal position of the center of the layer range

Mask	Gets or sets the horizontal position of the mask


PositionY Property

Select one of the available subtopics below to see detailed help on PositionY property

Object	Property description

Floater	Gets or sets the vertical position of the floater

Guide	Gets or sets the vertical position of the guide

Layer	Gets or sets the vertical position of a layer's center

LayerRange	Gets or sets the vertical position of the center of the layer range

Mask	Gets or sets the vertical position of the mask


RegistrationMarks Property

Select one of the available subtopics below to see detailed help on RegistrationMarks property

Object	Property description

PDFVBASettings

PrintPrepress	property RegistrationMarks


Selected Property

Select one of the available subtopics below to see detailed help on Selected property

Object	Property description

Guide	Gets or sets the selection status of the guide

Layer	Gets or sets whether the layer is selected


SizeHeight Property

Select one of the available subtopics below to see detailed help on SizeHeight property

Object	Property description

Document	Gets the height of the document in pixels

Floater	Gets the eight of the floater

Layer	Gets or sets the height of a layer

LayerRange	Gets the height of the layer range

Mask	Gets or sets the height of the mask


SizeWidth Property

Select one of the available subtopics below to see detailed help on SizeWidth property

Object	Property description

Document	Gets the width of the document in pixels

Floater	Gets the width of the floater

Layer	Gets or sets the width of a layer

LayerRange	Gets the width of the layer range

Mask	Gets or sets the width of the mask


Smoothing Property

Select one of the available subtopics below to see detailed help on Smoothing property

Object	Property description

ColorMask	Gets or sets the smoothing level of the color mask

StructPaletteOptions


Top Property

Select one of the available subtopics below to see detailed help on Top property

Object	Property description

AppWindow	Gets or sets the application's window top position

Window	Gets or sets the position of the window's top border


TrueTypeToType1 Property

Select one of the available subtopics below to see detailed help on TrueTypeToType1 property

Object	Property description

PDFVBASettings

PrintPostScript	property TrueTypeToType1


Type Property

Select one of the available subtopics below to see detailed help on Type property

Object	Property description

Color	Gets color type

DropShadow	Gets the dropshadow's type

Guide	Gets the type of the guide

Layer	Gets the type of the layer

Palette	Gets whether or not a color palette is custom or fixed

Printer	property Type

SeparationPlate	property Type

TrapLayer	property Type


UseColorProfile Property

Select one of the available subtopics below to see detailed help on UseColorProfile property

Object	Property description

PDFVBASettings

PrintOptions	property UseColorProfile


Visible Property

Select one of the available subtopics below to see detailed help on Visible property

Object	Property description

Application	Gets or sets the visibility of the application window; allows you to hide or show the application

Channel	Gets or sets the visible state of the channel

ClipMask	Gets or sets the visible state of the clipmask

Layer	Gets or sets the visibility status of the layer

Window	Gets or sets whether the window is visible


Width Property

Select one of the available subtopics below to see detailed help on Width property

Object	Property description

AppWindow	Gets or sets the application's window width

PrintTrapping	property Width

Window	Gets or sets the width of the window


Windows Property

Select one of the available subtopics below to see detailed help on Windows property

Object	Property description

Application	Gets a collection of windows open in the application

Document	Gets a collection of the document's windows


WindowState Property

Select one of the available subtopics below to see detailed help on WindowState property

Object	Property description

AppWindow	Gets or sets the application's window state

Window	Gets or sets the state of the window


cdrColorType

Enum cdrColorType

Referenced By

Constant	Value	Description

cdrColorPantone	1

cdrColorCMYK	2

cdrColorCMY	4

cdrColorRGB	5

cdrColorHSB	6

cdrColorHLS	7

cdrColorBlackAndWhite	8

cdrColorGray	9

cdrColorYIQ	11

cdrColorLab	12

cdrColorPantoneHex	14

cdrColorRegistration	20

cdrColorSpot	25

cdrColorMixed	99

 Related Topics


cdrCompressionType

Enum cdrCompressionType

Referenced By

Constant	Value	Description

cdrCompressionNone	0

cdrCompressionLZW	1

cdrCompressionPackBits	2

cdrCompressionHuffman	3

cdrCompressionCCITT3_1d	4

cdrCompressionCCITT3_2d	5

cdrCompressionCCITT4	6

cdrCompressionRLE_LW	7

cdrCompressionJPEG	8

 Related Topics


cdrDitherType

Enum cdrDitherType

Referenced By

Constant	Value	Description

cdrDitherNone	0

cdrDitherOrdered	1

cdrDitherJarvis	2

cdrDitherStucki	3

cdrDitherFloyd	4

 Related Topics


cdrDuotoneType

Enum cdrDuotoneType

Referenced By

Constant	Value	Description

cdrMonotone	0

cdrDuotone	1

cdrTritone	2

cdrQuadtone	3

 Related Topics


cdrFilter

Enum cdrFilter

Referenced By

Constant	Value	Description

cdrAutoSense	0	Detect the proper filter automatically (Import only)

cdr3DMF	1559	3DMF - 3D Model (Import only)

cdrAI	1305	Adobe Illustrator

cdrAI9	1333	Adobe Illustrator 9, Adobe Portable Document Format (Import only)

cdrAT1	1303	Adobe Type 1 Font (Export only)

cdrAVI	1536	Video for Windows

cdrBMP	769	Windows Bitmap

cdrCAL	800	CALS Compressed Bitmap

cdrCDR	1795	CorelDRAW

cdrCDT	1800	CorelDRAW Template

cdrCDX	1796	CorelDRAW Compressed (Import only)

cdrCGM	1280	Computer Graphics Metafile

cdrCLK	1802	Corel R.A.V.E.

cdrCMX5	1794	Corel Presentation Exchange 5.0

cdrCMX6	1793	Corel Presentation Exchange

cdrCPT	1809	Corel PHOTO-PAINT 11 Image

cdrCPT10	1808	Corel PHOTO-PAINT 9/10 Image

cdrCPT11	1809	Corel PHOTO-PAINT 11 Image

cdrCPT8	1799	Corel PHOTO-PAINT 7/8 Image (Export only)

cdrCPT9	1808	Corel PHOTO-PAINT 9/10 Image

cdrCPX	1797	Corel CMX Compressed (Import only)

cdrCUR	785	Windows 3.x/NT Cursor Resource (Import only)

cdrDCS	801	Desktop Color Separations (Export only)

cdrDOC	2068	MS Word 97/2000

cdrDRW	1339	Corel/Micrografx Designer (Import only)

cdrDSF	1339	Corel/Micrografx Designer (Import only)

cdrDWG	1328	AutoCAD (DWG)

cdrDXF	1296	AutoCAD (DXF)

cdrEMF	1300	Enhanced Windows Metafile

cdrEPS	1289	Encapsulated PostScript

cdrEPSPhotoPaint	804	Corel PHOTO-PAINT Encapsulated PostScript

cdrEXE	786	Windows 3.x/NT Bitmap Resource (Import only)

cdrFH	1344	Macromedia Freehand (Import only)

cdrFMV	1329	Frame Vector Metafile (Import only)

cdrFPX	806	Kodak FlashPix Image

cdrGEM	1284	GEM File

cdrGIF	773	CompuServe Bitmap

cdrGIFAnimation	1558	GIF Animation

cdrHPGL	1281	HPGL Plotter File

cdrHTML	1557	HyperText Markup Language (Import only)

cdrICO	784	Windows 3.x/NT Icon Resource (Import only)

cdrIMG	787	GEM Paint File

cdrJP2	820	JPG2000 Standard (Export only)

cdrJPC	821	JPG2000 Codestream (Export only)

cdrJPEG	774	JPEG Bitmaps

cdrJPG2000Import	818	JPG2000 Bitmaps (Import only)

cdrMAC	791	MACPaint Bitmap

cdrMacWord5	2052	MS Word for Macintosh 4.0, 5.0

cdrMET	1291	MET MetaFile (Import only)

cdrMIF	2165	FrameMaker 3.0, 4.0, 5.0 (Import only)

cdrNAP	1292	NAP MetaFile (Import only)

cdrOS2BMP	792	OS/2 Bitmap

cdrPAT	1801	CorelDRAW Pattern File

cdrPCD	775	Kodak Photo-CD Image (Import only)

cdrPCX	770	PaintBrush

cdrPDF	1333	Adobe Portable Document Format, Adobe Illustrator 9 (Import only)

cdrPIC	1334	Lotus Pic (Import only)

cdrPICT	1293	Macintosh PICT

cdrPLT	1281	HPGL Plotter File

cdrPNG	802	Portable Network Graphics

cdrPP4	789	Picture Publisher 4 (Import only)

cdrPP5	803	Picture Publisher 5.0

cdrPPF	819	Picture Publisher 10

cdrPPT	1805	Microsoft PowerPoint (Import only)

cdrPSD	788	Adobe Photoshop

cdrPSEncapsulated	1289	Encapsulated PostScript

cdrPSInterpreted	1290	PostScript Interpreted (Import only)

cdrQTM	1542	QuickTime Movie

cdrQTVR	1560	QuickTime VR

cdrQuattroPro	2067	Corel Quattro Pro (Import only)

cdrRIFF	807	Corel Painter 5/6 (Import only)

cdrRTF	2053	Rich Text Format

cdrSAM	2063	Ami Professional (Import only)

cdrSCT	776	Scitex CT Bitmap

cdrSHW	1806	Corel Presentations (Import only)

cdrSVG	1345	Scalable Vector Graphics

cdrSVGZ	1347	Compressed SVG

cdrSWF	1343	Macromedia Flash (Export only)

cdrTGA	771	Targa Bitmap

cdrTIFF	772	TIFF Bitmap

cdrTTF	1302	True Type Font (Export only)

cdrTXT	2048	ANSI Text

cdrVSD	1315	Visio (Import only)

cdrWI	793	Wavelet Compressed Bitmap

cdrWKS	2066	LOTUS 1-2-3 (Import only)

cdrWMF	1294	Windows Metafile

cdrWord2	2050	MS Word for Windows 2.x

cdrWord55	2051	MS Word 3.0, 4.0, 5.0, 5.5

cdrWord95	2049	MS Word for Windows 6/7

cdrWord2000	2068	MS Word 97/2000

cdrWP4	2058	Corel WordPerfect 4.2

cdrWP50	2057	Corel WordPerfect 5.0

cdrWP51	2056	Corel WordPerfect 5.1

cdrWP9	2055	Corel WordPerfect 6/7/8/9

cdrWPD	2055	Corel WordPerfect 6/7/8/9

cdrWPG	1287	Corel WordPerfect Graphic

cdrWPM	2166	Corel WordPerfect 1.0, 2.x for Macintosh (Import only)

cdrWS4	2164	WordStar 3.3, 3.31, 3.45, 4.0 (Import only)

cdrWS6	2163	WordStar 5.0, 5.5, 6.0 (Import only)

cdrWS7	2060	WordStar 7.0

cdrWS2000	2061	WordStar 2000

cdrWSD	2061	WordStar 2000

cdrWSW	2059	WordStar for Windows 1.x, 2.0

cdrWVL	793	Wavelet Compressed Bitmap

cdrXCF	816	Gimp Image (Import only)

cdrXLS	2064	Microsoft Excel (Import only)

cdrXPM	809	XPixMap Image

cdrXY	2062	XYWrite for Windows 4.0

 Related Topics


cdrFlipAxes

Enum cdrFlipAxes

Referenced By

Constant	Value	Description

cdrFlipHorizontal	1

cdrFlipVertical	2

cdrFlipBoth	3

 Related Topics


cdrHalftoneType

Enum cdrHalftoneType

Referenced By

Constant	Value	Description

cdrHalftoneSquare	0

cdrHalftoneRound	1

cdrHalftoneLine	2

cdrHalftoneCross	3

cdrHalftoneFixed4x4	4

cdrHalftoneFixed8x8	5

 Related Topics


cdrImageMode

Enum cdrImageMode

Referenced By

Constant	Value	Description

cdrImageRGB	0

cdrImageGrayscale	1

cdrImageBlackWhite	2

cdrImagePaletted	3

cdrImageCMYK	4

cdrImageDuotone	5

cdrImageLAB	6

cdrImageGrayscale16	7

cdrImageRGB48	8

cdrImageMultiChannel	9

 Related Topics


cdrImagePaletteType

Enum cdrImagePaletteType

Referenced By

Constant	Value	Description

cdrPaletteUniform	0

cdrPaletteStdVGA	1

cdrPaletteAdaptive	2

cdrPaletteOptimized	3

cdrPaletteBlackBody	4

cdrPaletteGrayscale	5

cdrPaletteSystem	6

cdrPaletteIE	7

cdrPaletteNetscape	8

cdrPaletteCustom	9

 Related Topics


cdrPaletteID

Enum cdrPaletteID

Referenced By

Constant	Value	Description

cdrTRUMATCH	1

cdrPANTONEProcess	2

cdrPANTONECorel8	3

cdrUniform	7

cdrFOCOLTONE	8

cdrSpectraMaster	9

cdrTOYO	10

cdrDIC	11

cdrPANTONEHexCoated	12

cdrPANTONEHexUncoated	24

cdrLab	13

cdrNetscapeNavigator	14

cdrInternetExplorer	15

cdrPANTONECoated	17

cdrPANTONEUncoated	18

cdrPANTONEMetallic	20

cdrPANTONEPastelCoated	21

cdrPANTONEPastelUncoated	22

cdrHKS	23

cdrCustom	0

 Related Topics


cdrPaletteSortMethod

Enum cdrPaletteSortMethod

Referenced By

Constant	Value	Description

cdrSortReverse	0

cdrSortHue	1

cdrSortBrightness	2

cdrSortSaturation	3

cdrSortRGB	4

cdrSortHSB	5

cdrSortName	6

 Related Topics


cdrPaletteType

Enum cdrPaletteType

Referenced By

Constant	Value	Description

cdrFixedPalette	0

cdrCustomPalette	1

 Related Topics


cdrRenderType

Enum cdrRenderType

Referenced By

Constant	Value	Description

cdrRenderLineArt	0

cdrRenderOrdered	1

cdrRenderJarvis	2

cdrRenderStucki	3

cdrRenderFloyd	4

cdrRenderHalftone	5

cdrRenderCardinality	6

 Related Topics


cdrUnit

Enum cdrUnit

Referenced By

Constant	Value	Description

cdrTenthMicron	0

cdrInch	1

cdrFoot	2

cdrMillimeter	3

cdrCentimeter	4

cdrPixel	5

cdrMile	6

cdrMeter	7

cdrKilometer	8

cdrDidots	9

cdrAgate	10

cdrYard	11

cdrPica	12

cdrCicero	13

cdrPoint	14

cdrUnitQ	15

cdrUnitH	16

 Related Topics


cdrWindowArrangeStyle

Enum cdrWindowArrangeStyle

Referenced By

Constant	Value	Description

cdrTileHorizontally	0

cdrTileVertically	1

cdrCascade	2

 Related Topics


cdrWindowState

Enum cdrWindowState

Referenced By

Constant	Value	Description

cdrWindowNormal	1

cdrWindowMaximized	3

cdrWindowMinimized	2

cdrWindowRestore	9

 Related Topics


pdfBitmapCompressionType

Enum pdfBitmapCompressionType

Referenced By

Constant	Value	Description

pdfNone	0

pdfLZW	1

pdfJPEG	2

pdfZIP	3

 Related Topics


pdfColorMode

Enum pdfColorMode

Referenced By

Constant	Value	Description

pdfRGB	0

pdfCMYK	1

pdfGrayscale	2

pdfNative	3

 Related Topics


pdfColorProfile

Enum pdfColorProfile

Referenced By

Constant	Value	Description

pdfCompositeProfile	0

pdfSeparationProfile	1

 Related Topics


pdfDisplayOnStart

Enum pdfDisplayOnStart

Referenced By

Constant	Value	Description

pdfPageOnly	0

pdfFullScreen	1

PDFBookmarks	2

pdfThumbnails	3

 Related Topics


pdfEncodingType

Enum pdfEncodingType

Referenced By

Constant	Value	Description

pdfASCII85	0

pdfBinary	1

 Related Topics


pdfEPSAs

Enum pdfEPSAs

Referenced By

Constant	Value	Description

pdfPostscript	0

pdfPreview	1

 Related Topics


pdfExportRange

Enum pdfExportRange

Referenced By

Constant	Value	Description

pdfWholeDocument	0

pdfCurrentPage	1

pdfSelection	2

pdfPageRange	3

 Related Topics


pdfVersion

Enum pdfVersion

Referenced By

Constant	Value	Description

pdfVersion12	0

pdfVersion13	1

pdfVersionPDFX1	2

 Related Topics


pntAddinFilter

Enum pntAddinFilter

Referenced By

Constant	Value	Description

pntAddinFilterNone	0

pntAddinFilterWhileDrawing	1

pntAddinFilterShapeCreated	2

pntAddinFilterNew	4

pntAddinFilterExecute	8

 Related Topics


pntAlignType

Enum pntAlignType

Referenced By

Constant	Value	Description

pntAlignLeft	1

pntAlignRight	2

pntAlignHCenter	3

pntAlignTop	4

pntAlignBottom	8

pntAlignVCenter	12

 Related Topics


pntBorderType

Enum pntBorderType

Referenced By

Constant	Value	Description

pntBorderHard	0

pntBorderMedium	1

pntBorderSoft	2

 Related Topics


pntClipMaskMode

Enum pntClipMaskMode

Referenced By

Constant	Value	Description

pntFromMask	0

pntFromInvertedMask	1

pntFromObjectTransparency	2

pntToShowAll	3

pntToHideAll	4

pntUseOpacity	5

 Related Topics


pntColorMaskMode

Enum pntColorMaskMode

Referenced By

Constant	Value	Description

pntColorMaskNormal	0

pntColorMaskHue	1

pntColorMaskSaturation	2

pntColorMaskBrightness	4

 Related Topics


pntColorMaskType

Enum pntColorMaskType

Referenced By

Constant	Value	Description

pntColorMaskSampledColors	0

pntColorMaskReds	1

pntColorMaskYellows	2

pntColorMaskGreens	3

pntColorMaskCyans	4

pntColorMaskBlues	5

pntColorMaskMagentas	6

pntColorMaskHighlights	7

pntColorMaskMidtones	8

pntColorMaskShadows	9

pntColorMaskOutOfGamut	10

 Related Topics


pntCreationMode

Enum pntCreationMode

Referenced By

Constant	Value	Description

pntEmptyLayer	0

pntFromBackground	1

pntCopySelection	2

pntCutSelection	3

 Related Topics


pntDistributeType

Enum pntDistributeType

Referenced By

Constant	Value	Description

pntDistributeLeft	1

pntDistributeRight	2

pntDistributeHCenter	3

pntDistributeHSpacing	4

pntDistributeTop	8

pntDistributeBottom	16

pntDistributeVCenter	24

pntDistributeVSpacing	32

 Related Topics


pntDropShadowType

Enum pntDropShadowType

Referenced By

Constant	Value	Description

pntDropShadowFlat	0

pntDropShadowBottom	1

pntDropShadowTop	2

pntDropShadowLeft	3

pntDropShadowRight	4

 Related Topics


pntEdgeType

Enum pntEdgeType

Referenced By

Constant	Value	Description

pntEdgeLinear	0

pntEdgeSquared	1

pntEdgeFlat	2

pntEdgeInverseSquared	3

pntEdgeMesa	4

pntEdgeGaussian	5

 Related Topics


pntFeatherType

Enum pntFeatherType

Referenced By

Constant	Value	Description

pntFeatherAverage	0

pntFeatherMiddle	1

pntFeatherOutside	2

pntFeatherInside	3

 Related Topics


pntFrameBackground

Enum pntFrameBackground

Referenced By

Constant	Value	Description

pntFrameFill	0

pntFrameCopy	1

pntFrameCopyActive	2

 Related Topics


pntFrameReference

Enum pntFrameReference

Referenced By

Constant	Value	Description

pntFirstFrame	0

pntLastFrame	1

pntNextFrame	2

pntPreviousFrame	3

 Related Topics


pntGuideType

Enum pntGuideType

Referenced By

Constant	Value	Description

pntGuideVertical	0

pntGuideHorizontal	1

 Related Topics


pntLayerType

Enum pntLayerType

Referenced By

Constant	Value	Description

pntObjectLayer	0

pntLensLayer	1

 Related Topics


pntLoadMode

Enum pntLoadMode

Referenced By

Constant	Value	Description

pntLoadAll	0

pntLoadCrop	1

pntLoadResample	2

 Related Topics


pntMaskBrightnessModel

Enum pntMaskBrightnessModel

Referenced By

Constant	Value	Description

pntMaskToWhite	0

pntMaskToBlack	1

 Related Topics


pntMaskMode

Enum pntMaskMode

Referenced By

Constant	Value	Description

pntMaskNormal	0

pntMaskAdd	1

pntMaskSubtract	2

pntMaskXOR	3

 Related Topics


pntMatteType

Enum pntMatteType

Referenced By

Constant	Value	Description

pntBlackMatte	0

pntWhiteMatte	1

 Related Topics


pntMergeMode

Enum pntMergeMode

Referenced By

Constant	Value	Description

pntMergeNormal	0

pntMergeAdd	1

pntMergeSubtract	2

pntMergeDifference	3

pntMergeMultiply	4

pntMergeDivide	5

pntMergeIfLighter	6

pntMergeIfDarker	7

pntMergeTexturize	8

pntMergeInvert	9

pntMergeAND	10

pntMergeOR	11

pntMergeXOR	12

pntMergeBehind	13

pntMergeScreen	14

pntMergeOverlay	15

pntMergeSoftLight	16

pntMergeHardLight	17

pntMergeColorDodge	18

pntMergeColorBurn	19

pntMergeExclusion	20

 Related Topics


pntSplitMode

Enum pntSplitMode

Referenced By

Constant	Value	Description

pntSplitRGB	0

pntSplitCMYK	1

pntSplitHSB	2

pntSplitHLS	3

pntSplitYIQ	4

pntSplitLAB	5

 Related Topics


pntToleranceMode

Enum pntToleranceMode

Referenced By

Constant	Value	Description

pntToleranceNormal	0

pntToleranceHSB	1

 Related Topics


pntURLRegion

Enum pntURLRegion

Referenced By

Constant	Value	Description

pntRegionRectangle	0

pntRegionPolygon	1

pntRegionCircle	2

 Related Topics


PrnBitmapColorMode

Enum PrnBitmapColorMode

Referenced By

Constant	Value	Description

prnBitmapCMYK	0

prnBitmapRGB	1

prnBitmapGrayscale	2

 Related Topics


PrnColorMode

Enum PrnColorMode

Referenced By

Constant	Value	Description

prnModeFullColor	0

prnModeGrayscale	1

prnModeBlack	2

 Related Topics


PrnFileMode

Enum PrnFileMode

Referenced By

Constant	Value	Description

prnSingleFile	0

prnSeparatePages	1

prnSeparatePlates	2

 Related Topics


PrnImageTrap

Enum PrnImageTrap

Referenced By

Constant	Value	Description

prnTrapNormal	0

prnTrapSpread	1

prnTrapChoke	2

prnTrapCenter	3

 Related Topics


PrnPDFStartup

Enum PrnPDFStartup

Referenced By

Constant	Value	Description

prnPDFFullScreen	0

prnPDFPageOnly	1

prnPDFThumbnails	2

prnPDFOutlines	3

 Related Topics


PrnPlateType

Enum PrnPlateType

Referenced By

Constant	Value	Description

prnCyan	0

prnMagenta	1

prnYellow	2

prnBlack	3

prnOrange	4

prnGreen	5

prnSpot	6

 Related Topics


PrnPostScriptLevel

Enum PrnPostScriptLevel

Referenced By

Constant	Value	Description

prnPSLevel1	1

prnPSLevel2	2

prnPSLevel3	3

 Related Topics


PrnPrintRange

Enum PrnPrintRange

Referenced By

Constant	Value	Description

prnWholeDocument	0

prnCurrentPage	1

prnSelection	2

prnPageRange	3

 Related Topics


PrnRegistrationStyle

Enum PrnRegistrationStyle

Referenced By

Constant	Value	Description

prnStandard	0

prnLong	1

prnSquare	2

prnHalfInverted	3

prnCorel	4

 Related Topics


PrnTrapType

Enum PrnTrapType

Referenced By

Constant	Value	Description

prnLayerNormal	0

prnLayerTransparent	1

prnLayerOpaque	2

prnLayerOpaqueIgnore	3

 Related Topics