Hello,
I’m using the following code to display text at specific positions on my live view, but am unable to find a way to adjust the font parameters (size, font family, etc). The default font size is very large, so not particularly useful as it is.
The code:
void CreateText(int id, int color, Point position, string text) {
Cvb.Image.CreatePixelList(2, out Cvb.SharedPixelList pixelList);
Cvb.Image.AddPixel(pixelList, new double[] { position.X, position.Y });
Cvb.Plugin.TStaticTextOutPlugInData txt = new Cvb.Plugin.TStaticTextOutPlugInData(text, false);
Display.AddOverlayObjectNET2("StaticTextOut", text, false, false, color, color,
false, IDPool.GrabID(), pixelList, txt.ToIntPtr().ToInt64());
}
As always, any help would be much appreciated.
Best regards,
Lee