Debenu Quick PDF logo

AddRGBSeparationColor

Vector graphics, Color

Version history

This function was introduced in Quick PDF Library version 12.13.

Description

Adds an RGB separation color to the document.

A separation color has a name and an equivalent color in the RGB color space. If the document is viewed the RGB color will be used. If the document is printed to an image setter a separation with the specified name will be generated.

The values of the color parameters range from 0 to 1, with 0 indicating 0% and 1 indicating 100% of the color.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddRGBSeparationColor(ColorName: WideString; Red, 
  Green, Blue: Double; Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddRGBSeparationColor(ColorName As String,
  Red As Double, Green As Double, Blue As Double, Options As Long) As Long

DLL

int DPLAddRGBSeparationColor(int InstanceID, wchar_t * ColorName, double Red,
  double Green, double Blue, int Options)

Parameters

ColorName The name of the separation color, for example "PANTONE 403 EC". This can be any name you want, but is usually set to the name of a specific spot color that your printing press will know what to do with.
Red The red component of the color equivalent to the spot color
Green The green component of the color equivalent to the spot color
Blue The blue component of the color equivalent to the spot color
Options This parameter is ignored and should be set to 0

Return values

0 The separation color could not be added. The color name may already have been used.
1 The separation color was added successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport