Short Courses on Computer Graphics, Image Processing and Computer Vision |
Let me know what you think |
Course 2DCis: 2D-Computer Graphics with C#/.NET
Copyright © by V. Miszalok, last update: 03-03-2008 |
deutsch | english |
Was sind Windows Forms ?WF ist eine Sammlung von .NET Klassenbibliotheken zum Erstellen von Windows-Programmen mit graphischer Benutzeroberfläche.Siehe: Erstellen von Windows-basierten Anwendungen Siehe: Windows-Forms-Programmierung Siehe: Übersicht über Grafiken |
What are Windows Forms ?WF is a collection of .NET class libraries to create Windows-programs with a graphical user interface.See: Creating Windows-Based Applications See: Windows Forms Programming See: Graphics Overview |
C1: Intro, erste GraphikbefehleSchreiben Sie ein erstes zweckloses Graphikprogramm. Es enthält den Hello-World-Text, es erfragt die dehnbare Fenstergröße, schreibt zwei Linien, ein Rechteck, eine Ellipse. Es zieht sternförmig dicke Linien mit Zufallsfarben und speichert die Endpunkte in einem Polygonarray, das am Ende zackenförmig rot gezeichnet wird. |
C1: Intro, some simple graphic commandsWrite Your first useless C#-program that demonstrates some simple graphic commands. It demonstrates a Hello-World-text, it evaluates the variable window size, draws two lines, a rectangle and an ellipse. It draws thick radial lines using random colors. Finally it stores the end points of the lines in form of a polygon array which forms a final red splash. It redraws everything in a different way from scratch when you change the window size by dragging one of its borders. |
EXE 8kB | Demo.exe → Download it and start it from Your local disk | |||
Link | C# Bauanleitung | Link | C# Guidance | |
C# Bauanleitung Druckversion | C# Guidance Print Version | |||
Link | C# Complete Code | |||
C# Complete Code Print Version | ||||
Link | C# Code Comments | |||
C# Code Comments Print Version | ||||
Link | VBasic Bauanleitung | |||
VBasic Bauanleitung Druckversion |
C2: Draw, ein MalprogrammDas Programm besteht aus 6 aufeinander aufbauenden Versionen V1 - V6. |
C2: Draw, a scribble programThis is a scribble program in 5 increasingly complex versions V1 - V6. |
EXE 9kB | Demo.exe → Download it and start it from Your local disk | |||
Link | C# Bauanleitung | Link | C# Guidance | |
C# Bauanleitung Druckversion | C# Guidance Print Version | |||
Link | C# Complete Code | |||
C# Complete Code Print Version | ||||
Link | C# Code Comments | |||
C# Code Comments Print Version |
C3: XML, speichern und lesen von Polygonen in drei FormatenDie von der Mausbewegung erzeugten Vertices werden zunächst in einem dynamischen Array gesammelt. Das gesamte Polygon kann anschließend dauerhaft unter beliebigem Namen auf die Platte gespeichert und von dort gelesen werden. Sie werden das Polygon im Textformat und in den beiden XML-Formaten Vector Markup Language VML und Scalable Vector Graphics SVG speichern, die Ihr Browser lesen und interpretieren kann. |
C3: XML, store and read polygons in three different formatsAt first, the vertices generated by the mouse movements are collected in a dynamic array. The complete polygon can be stored to and reloaded from the hard disk under an arbitrary file name. You will store it in text format and in the XML-formats Vector Markup Language VML and Scalable Vector Graphics SVG that your browser can read and interpret. |
EXE 20kB | Demo.exe → Download it and start it from Your local disk | |||
Link | C# Bauanleitung | Link | C# Guidance | |
C# Bauanleitung Druckversion | C# Guidance Print Version | |||
Link | C# Complete Code | |||
C# Complete Code Print Version | ||||
Link | C# Code Comments | |||
C# Code Comments Print Version |
C4: Anim, eine AnimationMalprogramm mit Daueranimation. Das offene Polygon dreht und schrumpft um seinen Schwerpunkt und fängt dann an, rhytmisch zu pumpen in Schrittweiten von 1 Grad und 5% Zoom. Geschwindigkeit und Umkehrpunkte sind im Code frei regelbar. |
C4: Anim, an endless animationScribble program followed by an endless animation. |
EXE 9kB | Demo.exe → Download it and start it from Your local disk | |||
Link | C# Bauanleitung | Link | C# Guidance | |
C# Bauanleitung Druckversion | C# Guidance Print Version | |||
Link | C# Complete Code | |||
C# Complete Code Print Version | ||||
Link | C# Code Comments | |||
C# Code Comments Print Version |
C5: Controls, GUI-ProgrammierungAnimation mit Graphical User Interface: Buttons, TrackBars, Labels, CheckBoxes und RadioButtons. Programmierung von erweiterbaren Control-Arrays, die sich automatisch an die Fenstergröße anpassen. |
C5: Controls, GUI ProgrammingAnimation program with a Graphical User Interface: Buttons, TrackBars, Labels, CheckBoxes and RadioButtons. Programming of expandable Control arrays, which fit at run time to any window size. |
EXE 20kB | Demo.exe → Download it and start it from Your local disk | |||
Link | C# Bauanleitung | Link | C# Guidance | |
C# Bauanleitung Druckversion | C# Guidance Print Version | |||
Link | C# Complete Code | |||
C# Complete Code Print Version | ||||
Link | C# Code Comments | |||
C# Code Comments Print Version |
top of page: |