Debenu Quick PDF logo

NewCMYKAxialShader

Vector graphics, Color

Version history

This function was introduced in Quick PDF Library version 12.13.

Description

This function adds an axial shader to the current document. The color is varied linearly from one CMYK color to another between two points and is used for linear gradient fills.

The shader can be used with the SetTextShader, SetLineShader and SetFillShader functions to set the color of subsequently drawn vector graphics and text.

Availability

Windows/Delphi, Windows/ActiveX, Windows/DLL, Mac/Dylib, iOS, Android

Parameters

ShaderName unistr The name of the shader. Should be a simple string consisting of alphanumeric characters and no whitespace. This name is used with the SetTextShader, SetLineShader and SetFillShader functions.
StartX double The horizontal co-ordinate of the start point
StartY double The vertical co-ordinate of the start point
StartCyan double The cyan component of the start color
StartMagenta double The magenta component of the start color
StartYellow double The yellow component of the start color
StartBlack double The black component of the start color
EndX double The horizontal co-ordinate of the end point
EndY double The vertical co-ordinate of the end point
EndCyan double The cyan component of the end color
EndMagenta double The magenta component of the end color
EndYellow double The yellow component of the end color
EndBlack double The black component of the end color
Extend int32 0 = do not extend the beyond the start and end points
1 = extend the shader using solid color

Return type and values

0 int32 The shader could not be added, possibly a shader with this name has already been added
1 int32 The shader was added successfully

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport