개정판 b35682c3
issue #0007 angle 문제 수정( Key event가 이상함)
Change-Id: I7af7ff329c12375823c4111233f091ad6a7dcdaa
KCOM/ViewModel/BiddersViewModel.cs | ||
---|---|---|
349 | 349 |
|
350 | 350 |
|
351 | 351 |
var center = new Vector(Common.ViewerDataModel.Instance.ImageViewWidth / 2, Common.ViewerDataModel.Instance.ImageViewHeight / 2); |
352 |
var matrix = MatrixHelper.Rotation(Common.ViewerDataModel.Instance.Angle, center); |
|
352 |
var matrix = MatrixHelper.Rotation(Common.ViewerDataModel.Instance.PageAngle, center);
|
|
353 | 353 |
rect.Transform(matrix); |
354 | 354 |
|
355 | 355 |
double scaleX = Common.ViewerDataModel.Instance.ImageViewWidth / rect.Width; |
... | ... | |
358 | 358 |
double positionX = 0; |
359 | 359 |
double positionY = 0; |
360 | 360 |
|
361 |
if (Common.ViewerDataModel.Instance.Angle == 90) |
|
361 |
if (Common.ViewerDataModel.Instance.PageAngle == 90)
|
|
362 | 362 |
{ |
363 | 363 |
positionX = Common.ViewerDataModel.Instance.ImageViewHeight - rect.X; |
364 | 364 |
positionY = Common.ViewerDataModel.Instance.ImageViewWidth - rect.Y; |
내보내기 Unified diff