我創建一個視窗,在視窗里繪制一個圖形;
然后通過Dinput 里的DeviceState 來獲取滑鼠資訊,是圖形左右上下 移動
DeviceState里滑鼠資訊,都是按增量 來計算的,
滑鼠在視窗的坐標怎么獲得,也就是相對于視窗的坐標(不通過API)
圖形在視窗,被滑鼠點擊移動后的坐標怎么來計算,??
uj5u.com熱心網友回復:
Coordinate Space and Transformation FunctionsThe following functions are used with coordinate spaces and transformations.
ClientToScreen
CombineTransform
DPtoLP
GetCurrentPositionEx
GetGraphicsMode
GetMapMode
GetViewportExtEx
GetViewportOrgEx
GetWindowExtEx
GetWindowOrgEx
GetWorldTransform
LPtoDP
MapWindowPoints
ModifyWorldTransform
OffsetViewportOrgEx
OffsetWindowOrgEx
ScaleViewportExtEx
ScaleWindowExtEx
ScreenToClient
SetGraphicsMode
SetMapMode
SetViewportExtEx
SetViewportOrgEx
SetWindowExtEx
SetWindowOrgEx
SetWorldTransform
?
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/101190.html
標籤:圖形處理/算法
