Elvas Tower: dynamic image creation in c# - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

dynamic image creation in c# Rate Topic: -----

#1 User is offline   tim722 

  • Apprentice
  • Group: Status: Switchman
  • Posts: 9
  • Joined: 04-December 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 10 December 2017 - 10:12 AM

I'm looking for help with c# graphics.

How would you go about creating the attached image dynamically from
text, with chosen font, size,etc? I found coding samples
for doing the text to bitmap part.

How do you center it vertically/horizontally on a square bitmap,
and make the background transparent?

The next part would then be to apply it to a shape at load time
in OR with texture replacement. I've been looking over the .dds
texture replacement code and texture loading, so I think that
part should be fairly straightforward.

The second screenshot should provide some hints on what I'm looking to do.

Thanks!

Attached thumbnail(s)

  • Attached Image: numbers_example.jpg
  • Attached Image: numbers2.JPG


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users