I am trying to generate an image in a console app in which the goal is to use the graphics class to draw on the picture and then save it as jpg on disk. If I run the code below in a desktop app, it produces the image correctly and the text is visible. If I take the same code and put in a console app, the text is not visible. Is there a limitation in console app here?
dim picDCM as picture = new Picture(500, 500) picDCM.Graphics.ForeColor = &c000000 picDCM.Graphics.FillRect 0,0,500,500 dim outputText As New StringShape outputText.Text = "this is a test" outputText.TextFont = "Courier" outputText.TextSize = 16 outputText.Bold= True outputText.FillColor = &cFFFFFF outputText.X = 10 outputText.Y = 20 outputText.HorizontalAlignment = StringShape.Alignment.Left picDCM.Graphics.DrawObject outputText dim f as FolderItem = SpecialFolder.Desktop.child("testtest.jpg") picDCM.Save(f, Picture.SaveAsJPEG)