Einzelnen Beitrag anzeigen

WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Text parsing - need method

  Alt 16. Dez 2012, 16:56
Delphi-Version: 2010
Sample:
Code:
ROWS 7
COLS 1
WIDTH 140
HEIGHT 30
TEXTHEIGHT 12
SPACING 1
R:247, G:224, B:23  HV:0.00, SV:0.00, VV:0.00  PANTONE Yellow C
R:247, G:217, B:23  HV:0.00, SV:0.00, VV:0.00  PANTONE Yellow 012 C
R:237, G:110, B:0  HV:0.00, SV:0.00, VV:0.00  PANTONE Orange 021 C
R:245, G:64, B:41  HV:0.00, SV:0.00, VV:0.00  PANTONE Warm Red C
R:237, G:46, B:56  HV:0.00, SV:0.00, VV:0.00  PANTONE Red 032 C
R:207, G:3, B:92  HV:0.00, SV:0.00, VV:0.00  PANTONE Rubine Red C
R:230, G:0, B:148  HV:0.00, SV:0.00, VV:0.00  PANTONE Rhodamine Red C
R:186, G:31, B:181  HV:0.00, SV:0.00, VV:0.00  PANTONE Purple C
R:102, G:0, B:161  HV:0.00, SV:0.00, VV:0.00  PANTONE Violet C
R:41, G:5, B:161  HV:0.00, SV:0.00, VV:0.00  PANTONE Blue 072 C
R:23, G:23, B:150  HV:0.00, SV:0.00, VV:0.00  PANTONE Reflex Blue C
I need to parse input in this format to get RGB and color name. Just question: do you know method how to get these data?
  Mit Zitat antworten Zitat