Debenu Quick PDF logo

NewRGBAxialShader

Vector graphics, Color

Version history

This function was introduced in Quick PDF Library version 7.11.

Description

This function adds an axial shader to the current document. The color is varied linearly from one 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
StartRed double The red component of the start color
StartGreen double The green component of the start color
StartBlue double The blue 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
EndRed double The red component of the end color
EndGreen double The green component of the end color
EndBlue double The blue 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