Short Courses on Computer Graphics, Image Processing and Computer Vision |
Let me know what you think |
Course 2D_MFC: 2D-Computer Graphics with C++/MFCCopyright © by V. Miszalok, last update: 2011-03-25 |
layout: thanks to Stefan Münz |
deutsch | english |
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 MFC-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 28 kB | Download and try C2DC7Intro.exe | EXE 52kB | Download and try C2DC8Intro.exe | |
Link | Fragen und Antworten | |||
Fragen und Antworten drucken | ||||
Link | Bauanleitung | Link | Guidance | |
Bauanleitung drucken | Guidance Print Version | |||
Link | Complete Code | |||
Complete Code Print Version | ||||
Link | Code Comments | |||
Code Comments Print Version |
C2: Draw, ein Malprogrammneu: OnLButtonDown, OnMouseMove, Polyline, Polygon, PolyBezier |
C2: Draw, a scribble programThis is a scribble program in 5 increasingly complex versions V1 - V6. |
EXE 28kB | Vorschau C2_Draw_Demo.exe | EXE 28kB | Download and try C2_Draw_Demo.exe | |
Link | Fragen und Antworten | |||
Fragen und Antworten drucken | ||||
Link | Bauanleitung | Link | Code Comments | |
Bauanleitung drucken | Code Comments print |
C3: Anim, eine Animationneu: OnTimer, Scroll, Zoom, Rotate |
C3: Anim, an endless animation
|
EXE 28kB | Vorschau C3_Anim_Demo.exe | EXE 28kB | Download and try C3_Anim_Demo.exe | |
Link | Fragen und Antworten | |||
Fragen und Antworten drucken | ||||
Link | Bauanleitung | Link | Code Comments | |
Bauanleitung drucken | Code Comments print |
C4: File, Malprogramm mit speichern auf Harddiskneu: std::vector, CDoc * pDoc→, Serialize, VML |
C5: File, a scribble program with file I/O
|
EXE 32kB | Vorschau C4_File_Demo.exe | EXE 32kB | Download and try C4_File_Demo.exe | |
Link | Fragen und Antworten | |||
Fragen und Antworten drucken | ||||
Link | Bauanleitung | Link | Code Comments | |
Bauanleitung drucken | Code Comments print |
top of page: |