Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my application I am using, vertical texts as button backgrounds.
For easiness, i am using Background Images to do so..
But now, the I am making the application multilingual, and I dont want to design different pictures for each language..
and I want to store it as text in language files,,
Is it advisable to draw the vertical picture at the run time ?? Will it affect the perfomance ?
Posted
Comments
Sriram Bala 20-Aug-13 8:52am    
Hi Yesudasan Moses,
Yes making use of .resx to support multi-language or culture facility is one of the best option. Based on my experience it will not affect performance. Instead of verticl picture you can use styles and control template to display the text vertically. but the decision is yours based on your requirement.
Sriram.B
Yesudasan Moses 20-Aug-13 9:28am    
Thanks dear friend,,,
In my case, users could be able to edit the language file if they like, thatsy i dont use resx files,,,, thanks for your reply :)

1 solution

Well, yes. Of course it will take longer to draw text into images at run time than to load it from files/resources. But probably not a significant amount, and you can always make it a "one off" overhead by saving the drawn images to file and loading them next time. You could also create them "on demand" when you want to assign them to the control and store them at that point - which would spread the load over the application rather than delaying startup while you create them all, if that is a problem.
 
Share this answer
 
Comments
Yesudasan Moses 20-Aug-13 9:28am    
Thanks dear friend :)
OriginalGriff 20-Aug-13 9:38am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900