Giter Club home page Giter Club logo

mfcopengl01's Introduction

MFC简单绘图程序

基于C++、MFC单文档编程;

仓库中不包含编译结果;

功能列表

  1. 绘制点,并控制点的种类、尺寸、颜色;
  2. 绘制直线,并控制线宽、线颜色;
  3. 绘制正圆,并控制线宽、线颜色;
  4. 绘制椭圆(任意圆),并控制线宽、线颜色;
  5. 绘制多边形,并控制线宽、线颜色;
  6. 绘制贝塞尔曲线,并控制线宽、线颜色;
  7. 填充封闭图形,并控制填充颜色;
  8. 单独选中图形,进行平移、旋转、缩放、对称变换;
  9. 绘制图形和图形变换时,显示中间过程的“橡皮筋”效果;
  10. 文件内容加载和持久化存储(bmp位图);
  11. 其他:工具栏按钮、清空画布;

已知BUG

  1. 只记录填充位置,窗口大小改变时会导致填充错位,移动图形位置,也会导致填充错位;
  2. 贝塞尔曲线绘制的中间过程不会被擦除;
  3. 贝塞尔曲线只能使用控制边进行选择;
  4. 文件持久化存储不能对象化,只能保存画布上的图像,也就是说加载操作无法还原完整的信息;

演示图片(选取几张,所有图片在show目录下,这些图片不一定是最新版本的效果!)

绘制点

绘制直线

绘制椭圆

绘制多边形

填充

选择图形

平移

旋转

缩放

对称

mfcopengl01's People

Contributors

ultronxr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.