Use PIL to generate images from text

Forum Forums Visual Components 4.0 Python Programming in VC Use PIL to generate images from text

This topic contains 0 replies, has 1 voice, and was last updated by hu zonghua hu zonghua 3 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #15023
    hu zonghua
    hu zonghua
    Participant

    HI,

    When I was using VC, I found that there was PIL in the pyhon directory, just that I needed to convert the text into a picture and display it in the 3D world, so I tried it and I got an error at runtime: Python engine: ACCESS VIOLATION
    RuntimeError: ACCESS VIOLATION
    After tracking and debugging, I found the error. In the ImageFont.py—getmask2 function, it appears when calling self.font.render(text, im.id, mode==”1″). But then I can’t debug anymore. I tried replacing the PIL version and using pygame, but all failed.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.