GetTextBlockColor
النص، الاستخراج، الألوان
الوصف
تُرجع مركّبًا واحدًا من لون النص في الكتلة النصية المحددة
تُرجع قيمة مركّب اللون كقيمة بين 0 و1
الصيغة
Delphi
Function TPDFlib.GetTextBlockColor(TextBlockListID, Index, ColorComponent: Integer): Double;
ActiveX
Function PDFlib::GetTextBlockColor(TextBlockListID As Long, Index As Long, ColorComponent As Long) As Double
DLL
double DLGetTextBlockColor(int InstanceID, int TextBlockListID, int Index, int ColorComponent);
المعاملات
| TextBlockListID | قيمة تُرجعها الدالة ExtractPageTextBlocks فهرس الكتلة النصية. أول كتلة نصية في القائمة لها الفهرس 1 |
|---|---|
| Index | |
| ColorComponent | For RGB: 1 = Red 2 = Green 3 = Blue For CMYK: 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black |