Previous Document Next Document

Object Model Reference : Classes : C : Color : Methods : Color.YIQAssign


Color.YIQAssign

Sub YIQAssign(y As Long, I As Long, Q As Long)

Description

Member of Color

The YIQAssign method assigns the YIQ color model in CorelDRAW. All three color components are applied in one step, and the color model is set to YIQ.

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 type of colors that make up an image and that is used to organize and define colors according to a set of basic properties that can be reproduced. Black-and-white, grayscale, RGB, CMYK, and paletted are examples of popular color modes.

The YIQ color model is a color model used in television broadcast systems (North American video standard, or 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.

Parameter
Description
y
Specifies the luminance, or brightness, value in the YIQ color model. Values range from 0 to 255.
I
Specifies 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.
Q
Specifies 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.

VBA example

The following VBA example sets the fill of the object to YIQ purple.

Sub Test()
 ActiveSelection.Shapes(1).Fill.UniformColor.YIQAssign 100, 255, 255
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.