 | PdfiumFPDFShadingPattern_SetParams Method |
Set parameters to the specified shading pattern of type 4-7.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static bool FPDFShadingPattern_SetParams(
IntPtr hPattern,
int? bitsPerCoordinate = null,
int? bitsPerComponent = null,
int? bitsPerVal = null,
float[] decode = null,
byte[] data = null
)
Public Shared Function FPDFShadingPattern_SetParams (
hPattern As IntPtr,
Optional bitsPerCoordinate As Integer? = Nothing,
Optional bitsPerComponent As Integer? = Nothing,
Optional bitsPerVal As Integer? = Nothing,
Optional decode As Single() = Nothing,
Optional data As Byte() = Nothing
) As Boolean
public:
static bool FPDFShadingPattern_SetParams(
IntPtr hPattern,
Nullable<int> bitsPerCoordinate = nullptr,
Nullable<int> bitsPerComponent = nullptr,
Nullable<int> bitsPerVal = nullptr,
array<float>^ decode = nullptr,
array<unsigned char>^ data = nullptr
)
static member FPDFShadingPattern_SetParams :
hPattern : IntPtr *
?bitsPerCoordinate : Nullable<int> *
?bitsPerComponent : Nullable<int> *
?bitsPerVal : Nullable<int> *
?decode : float32[] *
?data : byte[]
(* Defaults:
let _bitsPerCoordinate = defaultArg bitsPerCoordinate null
let _bitsPerComponent = defaultArg bitsPerComponent null
let _bitsPerVal = defaultArg bitsPerVal null
let _decode = defaultArg decode null
let _data = defaultArg data null
*)
-> bool
public static boolean FPDFShadingPattern_SetParams(
IntPtr hPattern,
int? bitsPerCoordinate = null,
int? bitsPerComponent = null,
int? bitsPerVal = null,
float[] decode = null,
byte[] data = null
)
Patagames.Pdf.Pdfium.FPDFShadingPattern_SetParams = function(hPattern, bitsPerCoordinate, bitsPerComponent, bitsPerVal, decode, data);
Parameters
- hPattern IntPtr
- Handle to the pattern object.
- bitsPerCoordinate NullableInt32 (Optional)
- The number of bits used to represent each vertex / geometric coordinate. Valid values are 1, 2, 4, 8, 12, 16, 24, and 32.
- bitsPerComponent NullableInt32 (Optional)
- The number of bits used to represent each color component. Valid values are 1, 2, 4, 8, 12, and 16.
- bitsPerVal NullableInt32 (Optional)
- Depends on shading type.
- decode Single (Optional)
- An array of numbers specifying how to map coordinates and color components into the appropriate ranges of values.
- data Byte (Optional)
- An array of bytes that contains a sequence of vertex coordinates and color data that defines the triangle mesh.
Return Value
Booleantrue on success; false otherwise.
RemarksbitsPerVal depends on type of shading:
- FreeFormGouraudTriangleMeshShading - the number of bits used to represent the edge flag for each vertex. Valid values are 2, 4, and 8, but only the least significant 2 bits in each flag value are used. Valid values for the edge flag are 0, 1, and 2.
- LatticeFormGouraudTriangleMeshShading - the number of vertices in each row of the lattice; the value must be greater than or equal to 2. The number of rows need not be specified.
- CoonsPatchMeshShading and TensorProductPatchMeshShading - the number of bits used to represent the edge flag for each patch. Valid values of BitsPerFlag are 2, 4, and 8, but only the least significant 2 bits in each flag value are used. Valid values for the edge flag are 0, 1, 2, and 3.
See Also