Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
10.02.2015, 10:03
|
|||
---|---|---|---|
|
|||
При вызове canvas.drawArc начала овало смещено на 90 градусов. Почему? |
|||
#18+
При вызове canvas.drawArc начало овала смещено на 90 градусов. Картинку приложил. Код: javascript 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39.
Но почему смещено на 90 градусов??? Я явно указываю начало от 0 градусов. Подскажите, пожалуйста, как это устранить. Устройство: ASUS Transformer Pad (TF300TG) ... |
|||
:
Нравится:
Не нравится:
|
|||
|
10.02.2015, 10:06
|
|||
---|---|---|---|
При вызове canvas.drawArc начала овало смещено на 90 градусов. Почему? |
|||
#18+
http://developer.android.com/intl/ru/reference/android/graphics/Canvas.html#drawArc(android.graphics.RectF, float, float, boolean, android.graphics.Paint) авторDraw the specified arc, which will be scaled to fit inside the specified oval. If the start angle is negative or >= 360, the start angle is treated as start angle modulo 360. If the sweep angle is >= 360, then the oval is drawn completely. Note that this differs slightly from SkPath::arcTo, which treats the sweep angle modulo 360. If the sweep angle is negative, the sweep angle is treated as sweep angle modulo 360 The arc is drawn clockwise. An angle of 0 degrees correspond to the geometric angle of 0 degrees (3 o'clock on a watch.) ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=13&mobile=1&tid=1331422]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
27ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
others: | 263ms |
total: | 371ms |
0 / 0 |