Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7186] iOS: Rotations produce aliasing results (jaggy edges)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Do
Resolution Date2020-01-09T19:36:58.000+0000
Affected Version/sRelease 2.0.1, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsreprod
ReporterMauro Parra-Miranda
AssigneeEric Merriman
Created2012-01-13T16:58:14.000+0000
Updated2020-01-09T19:36:58.000+0000

Description

Problem Description

Current transformation generates an effect of aliasing (jaggy edges) on lines.

Steps to Reproduce

1. Create new mobile project 2. Paste the code below 3. Run it.
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
    title : 'Tab 1',
    backgroundColor : '#ffb800'
});
var t3 = Ti.UI.create2DMatrix();
t3 = t3.rotate(-2);
var bar1 = Ti.UI.createView({
    backgroundColor : '#ffffff',
    width : 254,
    height : 7,
    transform : t3
});
win1.add(bar1);
var bar2 = Ti.UI.createView({
    backgroundColor : '#d90012',
    width : 250,
    height : 3,
    transform : t3
});
win1.add(bar2);
win1.open();

Attachments

FileDateSize
Screen Shot 2012-01-13 at 4.57.56 PM.png2012-01-13T16:59:11.000+000030232

Comments

  1. Mauro Parra-Miranda 2012-01-13

    Example of transformation with aliased edges.
  2. Junaid Younus 2012-05-17

    Tested with 2.0.1GA2 on the iOS simulator, issue still exists.
  3. Shameer Jan 2013-04-04

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  4. Lee Morris 2017-06-22

    I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131
  5. Alan Hutton 2020-01-09

    It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. If community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.

JSON Source