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.

40 lines
929 B
C

1 month ago
//////////////////////////////////////////////////////////////////////////////
//<2F>ļ<EFBFBD> ScreenXY.h
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
// <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2005-12-07
/////////////////////////////////////////////////////////////////////////////
#pragma once
class AFX_EXT_CLASS CScreenXY
{
public:
CScreenXY(void);
~CScreenXY(void);
int Create(double ScreenX0, double ScreenY0, double xPixelPerUnit, double yPixelPerUnit, double RealX0, double RealY0);
double xScreen(double x);
double yScreen(double y);
double xReal(double x);
double yReal(double y);
int IsInScreen(int i, int j);
void SetScreenRange(CDC* pDC); //<2F><><EFBFBD><EFBFBD>Width<74><68>Height<68><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
long GetScreenWidth(double dWidth);
long GetScreenHeight(double dHeight);
double GetRealWidth(int nWidth);
double GetRealHeight(int nHeight);
double ScreenX0;
double ScreenY0;
double xPixelPerUnit;
double yPixelPerUnit;
double RealX0;
double RealY0;
long Width,Height;
};