Simple Graphics Class
2016-08-23
0 0 0
no vote
Other
Earn points
Translated by maninwest@Codeforge Author:Mohammad Shuvo@CodeProject
So, I have made a simple graphics class calledCGraphicsusing gdi32. I know using directly gdi32 API is not so hard. But sometimes, it's boring like when you have to write some common code many times. Using this class, you can draw shapes like line, ellipse, rectangle, fill rectangle, etc. I have only added some basic shapes drawing functions in the class. The class also includes other gdi32 functions likeBitBlt,StretchBlt,CreateCompatibleDC,CreateCompatibleBitmap, etc. I have added a simpleDrawGradientFillfunction for drawing gradient fill rectangle both vertical and horizontal style.
Background
Using gdi32 API was always painful for me. I know there are so many libraries for 2D drawing, but I always try to use my own.
So, I have made my own graphics class and now I want to share it with people.
c++
简单
graphics
图形
Related Source Codes
Local Path Planning Algorithm - DWA Algorithm
0
0
no vote
enDAQ-Shock-Data-Share-SRS-Blog
0
0
no vote
Calling chatGPT in a Windows application
0
0
no vote
Test Hello world
0
0
no vote
RCS calculation by one-way ray tracing
0
0
no vote
No comment