Closed RaphC closed 8 years ago
Hi RaphC, again, thank you for your valuable contribution.
PTOCA, GOCA, IOCA, LineData, and MODCA have slightly different implementations/interpretations of color codes. I tried to culminated them into one single enum AFPColorValue with the expense that some of them (e.g. white and black) appear ambiguous without knowing their exact meaning in the context in which they are used. e.g. "Black_ColorOfMedium_0xFF08" in PTOCA it means "ColorOfMedium", while in an other context it is interpreted as "Black".
I'm not particular happy with this solution but prefer it over having different color value enums for every context. I'm open to any suggestions.
BR afpdev
Hi,
I noticed there's an incorrect translation of 0xFF08 STC value. If your code it is mapped to BlackColor whereas in the spec it's mentionned as a 'Reset Color'
Here is the PTOCA spec extract (p. 90)
Regards,