You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
948 B
C

1 month ago
#pragma once
#include "atlimage.h"
#include "atltypes.h"
class CImagePlus :
public CImage
{
public:
CImagePlus(void);
~CImagePlus(void);
void SetPixel(int x, int y, COLORREF color);
void SetPixel(int x, int y);
COLORREF GetPixel(int x, int y);
COLORREF GetPixel(double x, double y);
BOOL Create(int nWidth, int nHeight, int nBPP, DWORD dwFlags = 0 );
void Initial(COLORREF color);
void DrawPlane(void* pDim, void *pZoom,void *pColor);
void DrawCurve(void* pCurve, void *pZoom);
void DrawSection(void* pDim, void *pZoom,void *pColor);
void DrawSection(void* pDim, void *pZoom,int step,double times,int IsSolid);
void SetSolidBrush(COLORREF color);
void SetLineColor(COLORREF color);
void LineY(int y, int x1, int x2);
void LineTo(CPoint point);
void MoveTo(CPoint point);
void DrawLine(int StartX, int EndX, int StartY, int EndY);
protected:
CPoint PointBegin;
unsigned char* ColorBufferSolid;
COLORREF m_colorLine;
};