C++转换到Delphi代码(188分)

  • 主题发起人 主题发起人 网络3K
  • 开始时间 开始时间

网络3K

Unregistered / Unconfirmed
GUEST, unregistred user!
STRM_PARAM是类型
typedef struct
{
FLOAT xPos, yPos;
FLOAT xSize, ySize;
FLOAT fAlpha;
BOOL bFlipped, bMirrored;
} STRM_PARAM;
const STRM_PARAM strParamInit[1] = {
{0.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0, 0, {0,0,0,0}}
};
const float X_EDGE_BUFFER = 0.025f;
// Distance from screen border
const float Y_EDGE_BUFFER = 0.05f;
// Distance from screen border
const float SECONDARY_WIDTH = 0.4f;
// Width of subpicture in comp space
const float SECONDARY_HEIGHT = 0.4f;
// Height of subpicture in comp space
const QUADRANT quad[4] = {
X_EDGE_BUFFER, Y_EDGE_BUFFER,
SECONDARY_WIDTH, SECONDARY_HEIGHT,
(1.0f - SECONDARY_WIDTH - X_EDGE_BUFFER), Y_EDGE_BUFFER,
SECONDARY_WIDTH, SECONDARY_HEIGHT,
(1.0f - SECONDARY_WIDTH - X_EDGE_BUFFER), (1.0f - SECONDARY_HEIGHT - Y_EDGE_BUFFER),
SECONDARY_WIDTH, SECONDARY_HEIGHT,
X_EDGE_BUFFER, (1.0f - SECONDARY_HEIGHT - Y_EDGE_BUFFER),
SECONDARY_WIDTH, SECONDARY_HEIGHT
};
 
晕,这个仅仅是定义吧.对应转就可以了吧!
 
自己搞定了
 
.............................
 
都搞定了?? 那就接分吧....
 
多人接受答案了。
 
后退
顶部