Results 1 to 1 of 1
Thread: C# Picture Viewer [TUT]
-
04-09-2012 #1
C# Picture Viewer [TUT]
This is a tutorial on how to make a program that opens and allows you to view pictures! You will need to start by creating a new c# windows forms application. On the form, add 4 buttons, 1 openfiledialog, 1 savefiledialog, and 1 picture box. Double-click the form and make sure that your program is using System.Drawing.Imaging. Name the first button, 'Open Picture File', name the second button, 'Save Image', name the third button, 'Rotate Clockwise', and name the final button, 'Rotate Counter Clockwise'. Double-click the 'Open Picture File' and add this code:
Now, double-click the 'Save Image' button and add this code:Spoiler:
Now, double-click the 'Rotate Clockwise' button and add this code:Spoiler:
Finally, double-click the 'Rotate Counter Clockwise' button and add this code:Spoiler:
Spoiler:
Now, you will notice that you are getting some errors so you need to call some new voids.
SaveImage void
Spoiler:
Rotate image void
Spoiler:
Well, it looks like you are done! You can now debug your application and test the cool functions out.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks

Reply With Quote
Bookmarks