21.02.2016, 17:39
I'm not sure how to convert to int properly, since (int)0xFF000000 won't work, but this works well:
but using same code here makes background color green, not black:
Код:
StreamerNative.SetDynamicObjectMaterialText(tmpobjid.Id, 0, "WC", ObjectMaterialSize.X512X512, "Arial", 200, true, Convert.ToInt32("0xFFFFFFFF", 16), Convert.ToInt32("0xFF000000", 16), ObjectMaterialTextAlign.Center);
Код:
tmpobjid.SetMaterialText(0, "WC", ObjectMaterialSize.X512X512, "Ariel", 200, true, Color.FromInteger(Convert.ToInt32("0xFFFFFFFF", 16), ColorFormat.ARGB), Color.FromInteger(Convert.ToInt32("0xFF000000", 16), ColorFormat.ARGB), ObjectMaterialTextAlign.Center);