سؤال

Is there a way to stretch the X or Y axis when calling System.Graphics.DrawString? We are working on laying out a graphics image (which is actually going to be printed) where it would be nice to make a particular piece of text say 125% higher than it's normal height (while maintaining the same width). Is there a best way to do this?

هل كانت مفيدة؟

المحلول

Sure, Graphics.ScaleTransform() works fine as long as you use Graphics.DrawString() instead of TextRenderer. Keep it modest, stretched text doesn't look that good. 125% ought to be okayish.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top