Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing text backward 1

Status
Not open for further replies.

yeller2

Programmer
Feb 8, 2007
69
US
I want to take a string in a text box and flip it so that "hi" becomes "ih" only the h with be shown looking the other way. If you don't know what I mean, the "h" will look like a "d" without the bottom of it's "o".

Hopefully this makes sense. I've looked for a way to do this using GDI+ but do not see one - is this possible?
 
You can do it with GDI+ fairly easily...

First create the image from the string. A simple way to do that would be

Bitmap bmp = new Bitmap(500,20); //create an image 500px by 20px

Graphics g = Graphics.FromBitmap(bmp); //I think this is the call

bmp.RotateFlip(RotateFlipType.RotateNoneFlipY); //Flip the image over the Y Axis |

pictureBox1.Image = bmp; //Your image will show up reversed



This is all done off the top of my head so don't expect it to compile. Check out this site for doing transformations



 
Thanks a lot for the suggestion - just what I needed! I didn't realize you could play with the graphics for a bitmap.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top