Transform matrix error?

I'm getting a strange error when adjusting the matrix of one of my UIViews ( on the iPhone ):
<Error>: CGAffineTransformInvert: singular matrix
Anyone know what that means?
Here is my code:
CGAffineTransform myTransform;
myTransform = CGAffineTransformMakeScale(g_ViewScale, g_ViewScale );
myView.transform = myTransform;
Any help would be great. Thanks!

Doh! Silly question = me finding dumb logic using 0.0f for g_ViewScale
Thanks!

Similar Messages

  • How to use the transformation matrix in Placed Suite.

    I am in trouble how to use the transformation matrix Placed Art (PlacedSuite ). 
           AIRealMatrix rasterMatrix;
    AIRealMatrix placedMatrix;
    if (artType == kRasterArt {
         error = sAIRaster-> GetRasterMatrix (art, & rasterMatrix);
    } else if ((artType == kPlacedArt) {
         error = sAIPlaced-> GetPlacedMatrix (art, & placedMatrix);
    When I converted to using the transformation matrix of PlacedArt, the target art could not be converted to expect.
    I could convert in case of the RasterArt. (The reference point of the transformation matrix of RasterArt is (0,0).) 
    In the PlacedArt, preference point is not (0,0)?
    The tx/ty of the transformation matrix of PlacedArt is not correct? 
    In the transformation matrix of RasterArt and Placed Art, how are those two different?

    The short answer is "no", (0, 0) is not the origin of placed art (unlike kRasterArt). Off the top of my head, I believe when you place art, its original state is upside-down and flipped horizontally in the upper-right of the artboard. If you want to see where it starts, simply create an identity matrix and apply that as the matrix for the kPlacedArt and you'll see how it starts. Yes, its pretty crazy.
    minimum99 posted some code that might help. I haven't tried it (I rolled my own years ago) but I'd give it a whirl:
    http://forums.adobe.com/message/3195790#3195790

  • Retrieve/Modify the transformation matrix of an object

    Hi,
    I'm new to this, so I have a lot of questions.
    Here is what I am trying to do.
    I know the designer I work with will draw some paths on an isometric grid (30 degrees )
    I am interested in the paths that get skewed 30 degrees vertically.
    I will need to create a 'bottom' plane for the selected path, that means I will need to copy
    the object and shear/skew it.
    As far as I can tell I need to:
    1.retrieve the selected PathItem
    2.clone it
    3.transform it ( skew/shear ) it.
    I've to create a scaleMatrix using
    app.getScaleMatrix(Math.atan(30 * Math.PI / 180) * 100,Math.atan(60 * Math.PI/180) * 100);
    then transforming my path, but the skew looks pretty random.
    I know that in theory
    skewX = Math.atan( matrix.c * angleInRadians);
    skewY = Math.atan( matrix.b * angleInRadians);
    but things aren't as easy to do in Illustrator as they are in Flash
    Is it possible to retrieve the transformation matrix of a PathItem ? (I've looked in the docs and found nothing of use )
    Any hints ?

    What exactly is it that you are trying to accomplish with the ScaleMatrix? Are you trying to merely skew a selection by 30 degrees?
    If so, do you understand that merely skewing something will not yield the sides of an object drawn in isometric?
    For example:
    Assume two 1" squares, normally oriented and abutting each other side by side.
    Skew the right side of the rightmost square vertically upward 30 degrees.
    Skew the left side of the leftmost square vertically upward 30 degrees.
    I hope you understand that does not yield the left and right visible sides of a 1" isometric cube. In an isometric cube, all the visible edges are the same length. (In an isometric drawing of a 1" cube, each edge measures 1". In an isometric projection of the same cube, each edge measures approximately .82" [cosine of the isometric angle, 35'16"]).
    By merely skewing the squares, you are effectively lengthening their top and bottom edges. The vertical edges are now out of proportion.
    You can draw the "bottom" or "top" of a 1" isometric cube by rotating a normally-oriented 1" square 45 degrees and then scaling it vertically by 58% (sine of the iso angle). Then rotate two copies of that about the resulting bottom-most point to complete the cube.
    Maybe you know this and I'm misunderstanding what you are trying to do.
    JET

  • Dont want Transform matrix, when file save as SVG

    Hi All,
    I am using AI and saving the file as SVG.
    When I look the saved SVG file.
    it looks some what like...
    <rect x="107" y="104" fill="none" width="159" height="26"/>
    <text transform="matrix(1 0 0 1 107 112.52)"font-family="'MyriadPro-Regular'" font-size="12">Name</text>
    <rect x="296" y="107" fill="none" width="127" height="19"/>
    <text transform="matrix(1 0 0 1 296 115.52)"font-family="'MyriadPro-Regular'" font-size="12">Mr. Nice</text>
    <rect x="107" y="183" fill="none" width="82" height="21"/>
    <text transform="matrix(1 0 0 1 107 191.52)"font-family="'MyriadPro-Regular'" font-size="12">Address</text>
    My concern is I dont want the Transform part,
    transform="matrix(1 0 0 1 107 191.52)" .
    Frankly speaking I don't want this entry in my SVG file. Can any body help me out, so that I can save the SVG file without having transform attribute.
    I want it simple like :
    <text x="50" y="76" font-family="'MyriadPro-Regular'" font-size="12">Address</text> or any thing but for the Transform attribute at all.
    Can any expert can help me out. I know this should doable but I don't knw how to achieve this.
    It is some what urgent.
    Thanks.

    jdldn,
    You may try this:
    Create a new, empty document in Illy and:
    1) Save it with Create PDF compatible file unticked;
    2) Save it with Create PDF compatible file ticked;
    3) Save it as PDF with Maintaining Illustrator editing capabilities unticked;
    4) Save it as PDF with Maintaining Illustrator editing capabilities ticked.
    1) and 3) give you the raw size of the wrapping in each format, 2) and 4) give you the raw size of the wrapping in the dual AI+PDF format either way.
    The difference(s) up to the corresponding file(s) will show you the effective size of the contents.

  • CS5 illustrator and SVG transform matrix

    Hi. I`m saving the file in svg and have this
    <rect x="559.25" y="98" fill="#ED1C24" width="237.75" height="483.75"/>
    How can i get this?
    <rect x="1019.981" y="577.658"  transform="matrix(0.9659 0.2588 -0.2588 0.9659 186.6047 -254.1031)"   fill="#F2F2F2"   width="76.687"
       height="7.941"   id="rect2983" />
    With information about coordinates.

    THANKS ALOT for this!!!
    this was the problem the CA antivirus
    Best Regards

  • Applying Transform Matrix

    I am applying a transform matrix to a UIComponent. The width
    of the object changes appropriately when displayed; however, the
    width property on the component is 0. Does anyone know why the
    width property is not updated? Is the only way to retrieve the
    actual width through the transform matrix? I used the following
    code snippet.
    Thanks for any input!
    -Kris
    var comp:UIComponent = new UIComponent();
    comp.graphics.lineStyle(3);
    comp.graphics.drawRect(0,0,200,200);
    this.addChild(comp);
    trace("width before applying matrix = " + comp.width); //
    width = 0
    var matrix:Matrix = new Matrix();
    matrix.a = 2;
    comp.transform.matrix = matrix;
    trace("width after applying matrix = " + comp.width); //
    width still = 0 Why not 400?

    I think we need to set the dimensions of the UIComponent as well. Check whether the code below works
    var comp:UIComponent = new UIComponent();
    comp.graphics.lineStyle(3);
    comp.graphics.drawRect(0,0,200,200);
    comp.width = 200;
    comp.height = 200;
    this.addChild(comp);
    trace("width before applying matrix = " + comp.width); // width = 200
    var matrix:Matrix = new Matrix();
    matrix.a = 2;
    comp.transform.matrix = matrix;
    trace("width after applying matrix = " + comp.width); // width still = 200

  • [svn:fx-trunk] 9183: Transform matrix bug fix

    Revision: 9183
    Author:   [email protected]
    Date:     2009-08-07 15:25:44 -0700 (Fri, 07 Aug 2009)
    Log Message:
    Transform matrix bug fix
    http://bugs.adobe.com/jira/browse/SDK-22390 - Color transform is incorrectly applied in MXML Graphics
    For a component or graphic, specifying a transform without an explicit matrix declaration was overriding the convenience transform properties.
    The new behavior is to only apply the transform?\226?\128?\153s matrix to the component or graphic if it was explicitly specified.
    QE notes: Add test case
    Doc notes: Explain that transform matrix will only apply if explicitly set
    Bugs: SDK-22390
    Reviewer: Glenn
    Tests run: spark primitives
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22390
        http://bugs.adobe.com/jira/browse/SDK-22390
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/geom/Transform.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • [svn:fx-trunk] 9188: Transform matrix bug fix

    Revision: 9188
    Author:   [email protected]
    Date:     2009-08-07 16:07:44 -0700 (Fri, 07 Aug 2009)
    Log Message:
    Transform matrix bug fix
    Missing file for revision 9183
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as

    error dateField not selecion date 27/11/2002 ?
    This is bug flex 3 ?
    thanks

  • Compute transform matrix for perspective transform

    Hello,
    I have the following problem:
    I have the coordinates of a quadrilateral in an image. Furthermore I have the coordinates of the same quadrilateral but from another perspective. Now I'm seeking a way to compute a transform matrix that transforms the second perspective to the first one, so that both quadrilateral have the same coordinates again.
    Unfortunately I'm not very experienced in Image manipulation and I just discovered the JAI API today. I figured out that there is the class PerspectiveTransform to do transforms with a given transform Matrix, but i wasn't able to find out how I can compute this matrix. Is there maybe an easy way to solve my problem with the help of JAI?

    I mean mx.core.UIComponent (AS 3.4)
    I use it in my .mxml as a generic container
    maybe I should draw on a Canvas instead ?
    part of mxml :
    <mx:UIComponent width="100%" height="100%" id="drawing_surface" />
    thx for help

  • Transformation check error

    Hi Experts,
    I have created transformations in BI7.0 with Start Routine and Transfer Routines.
    when i am checking individual routine, checking total transformations, activating transformations and saving transformations also fine without error.
    my problem is: when i am checking total transformationsin display mode, it's showing syntax errors in routines.
    can u pls tell me my transformations will work properly, or really transformations consist runtime errors.
    there is no error in change mode........
    thanks,
    Venkatesh

    Hi,
    I think, i have changed the start routine after writing individual routines.
    i checked start routine in display mode, no syntax errors found.
    pls tell me if i leave the transformations like this, will it work when they run DTP or not?( i cant load now)
    Thanks,
    Venkatesh

  • Error while transporting Transformation: Syntax error in Start Routine

    Hi Everyone,
    I'm facing a strange problem during transporting one of the Business Content cubes from Dev. to Quality.
    I'd activated the DSO 'Purchase Order Items (0PUR_O01)' and its entire data flow from the 4 datasources 2LIS_02_CGR, 2LIS_02_SCN, 2LIS_02_SGR, and 2LIS_02_ITM from BC. Then I migrated the Transfer/Update rules to transformations and the DataSources to BI7 DataSource. So far so good. The migration was successful and all the objects were activated.
    Now when I transport the same to Quality, the import fails with return code 8 and the error message says:
    'Start of the after-import method RS_TRFN_AFTER_IMPORT for object type(s) TRFN (Activation Mode)'
    'Start Routine: Syntax error in routine'
    I verified that the transformation where the error orrured was the one from InfoSource Z2LIS_02_ITM to DSO 0PUR_O01. I went and checked the start routine and it did indeed have a syntax error:
    'In PERFORM or CALL FUNCTION "ROUTINE_9998", the actual parameter SOURCE_PACKAGE" is incompatible with the formal parameter DATA_PACKAGE". '
    But when I check in the Dev. system, there is no syntax error for the same routine. Later, I tried to transport only the said transformation by re-activating it in Dev, and again I got the same error.
    I have no idea why I'm getting a syntax error in the start routine when there are non in the Dev. system. Also none of the coding is customised, it was only the BC code, migrated to a transformation.
    Any suggestions on the steps I could take to transport the transformation to my quality system?
    Thanks,
    Ram

    Hi Ajay, Shanthi, svu and Ray
    I do indeed have a start routine in my transformation and it was migrated from a 3.x update rule to a BI 7 transformation routine.
    The migration was successful and the Start Routine has NO syntax errors in the start routine in the Dev. system. I only encounter the error while transporting it to the Quality system. I cannot modify the code in the Quality system because it is non-changelable and there is no point in trying to change the code in Dev. because there are no errors over there.
    I've also made sure that I've transported all the necessary objects required by the transformations to quality. The routine does not perform a lookup, it simply deletes some records from the data package based on the processkey value (which is itself present in the data package).

  • Transformation Rule: Error while loading from PSA to ODS using DTP

    Hi Experts,
    I am trying to load data from PSA to ODS using DTP. For about 101 records I get the following error:
    "Runtime error while executing rule -> see long text     RSTRAN     301"
    On further looking at the long text:
    Diagnosis
        An error occurred while executing a transformation rule:
        The exact error message is:
        Overflow converting from ''
        The error was triggered at the following point in the program:
        GP4808B5A4QZRB6KTPVU57SZ98Z 3542
    System Response
        Processing the data record has been terminated.
    Procedure
          The following additional information is included in the higher-level
         node of the monitor:
         o   Transformation ID
         o   Data record number of the source record
         o   Number and name of the rule which produced the error
    Procedure for System Administration
    When looking at the detail:
    Error Location: Object Type    TRFN
    Error Location: Object Name    06BOK6W69BGQJR41BXXPE8EMPP00G6HF
    Error Location: Operation Type DIRECT
    Error Location: Operation Name
    Error Location: Operation ID   00177 0000
    Error Severity                 100
    Original Record: Segment       0001
    Original Record: Number        2
    Pls can anyone help in deducing and pointing this error to the exact spot in the transformation rule
    Thanks & Regards,
    Raj

    Jerome,
    The same issue.
    Here are some fields which are different in terms of length when mapped in transformation rules
    ODS                    |Data Source
    PROD_CATEG     CHAR32           |Category_GUID      RAW 16
    CRM_QTYEXP     INT4          |EXPONENT      INT2
    CRM_EXCRAT     FLTP16          |EXCHG_RATE     Dec 9
    CRM_GWEIGH     QUAN 17, 3     |Gross_Weight     QUAN 15
    NWEIGH          QUAN 17, 3     |Net_Weight     QUAN 15
    CRMLREQDAT     DATS 8          |REQ_DLV_DATE     Dec 15
    The difference is either some dats field are mapped to decimal, or the char 32 field is mapped to raw 16 OR Calweek, Calmonth is mapped to Calday
    Both mostly all the ods field size is greater than the input source field.
    Thanks
    Raj

  • Adapter module Transform.Class error

    Hello,
    I have a sender jdbc adapter which is calling the xslt transform class with no errors but its obvious that the xsl is not being invoked as my xml is not transformed, but I don't see any error in the audit log.  When I purposely use a non existent file path/file name in XSLTConversion.XSLTFileName I expect to get an error in the message monitor audit log but I do not.  Neither default.trace or xi.*.log provide any errors regarding the xslt transformation in the adapter module.  The audit log actually indicates: "Transform: successfully transformed"  Below is my adapter module configuration.  Can anyone point me to a log file that might contain adapter module errors or notice any problem with this module config?
    localejbs/AF_Modules/MessageTransformBean, Local, XSLT
    CallSapAdapter, Local, call_AF_MS
    XSLT, Transform.class, com.sap.aii.messaging.adapter.XSLTConversion
    XSLT, XSLTConversion.XSLTFileName, /usr/sap/XIS/DVEBMGS00/j2ee/cluster/server0/tmgxsls/GL_split.xsl
    Thanks in advance,
    Dave

    Hi
    Check for correct spelling:
    localejbs/AF_modules/MessageTransformBean
    Check the parameters for trailing spaces:
    'com.sap.aii.messaging.adapter.XSLTConversion_'
    Check the path:
    Windows: C:\...
    Unix: /usr/...
    and
    Check the adit log of the message monitoring in the RWB for entries according to the module....
    Trc or trace files on visual administrator is the closest answer from my part.
    please refer,
    /people/michal.krawczyk2/blog/2005/09/07/xi-why-dont-start-searching-for-all-errors-from-one-place
    regards,
    vasanth

  • BPC 10 MS Transformation format error using *MVAL with no Rejected items

    I'm a bit perplexed, but maybe I'm being too ambitious.  I am trying to combine a year field from a column in my data file with 12 data columns for each month of that year using *MVAL to pick up those columns.  Basically I want to pull from the file with a result like 2014P1 and then use a Time conversion to make it 2014.OCT.
    I have found that the Mapping statement *Col(1)+*MVAL(25:36) does not work, but reversing it does, i.e. *MVAL(25:36)+*Col(1).  This brings the small problem in the conversion file of making P1* convert for both P1 and P10, so to solve this I added +*Str(.) in the middle of the mapping statement.  This brings results like P1.2014 and P10.2014 to be converted in the conversion file.
    After several attempts the conversion I ended up with is:
    EXTERNAL P1.* : INTERNAL *.OCT
    EXTERNAL P2.* : INTERNAL *.NOV etc etc to P12
    When validating the Transformation file it returns the error:
    Input string was not in a correct format
    Validation with data file failed
    [The conversion file validated and processed with no problems, even with some VB added to reduce the year by 1 in the first three Periods.]
    The strange thing is that the Rejected List is not greyed out, but it is completely empty - usually this error generates some rejected items that you can then learn from and revise your mappings or conversions.
    If I change the conversion to repeat the * after the month, *.OCT*, then I do get rejections that correctly tell me that the conversion does not match my time id's.  I see 2014.OCT2014 in the rejected items.  This confirms that the correct part is being picked up by the conversion *.OCT, but that for some reason it is not accepted.
    Running this for an Import in Data Manager also fails - this is not a bug in the transformation validation routine.
    So, my questions are:
    - am I doing something obviously wrong? or
    - am I being too ambitious with *MVAL? or
    - should this work, so that a dynamic conversion for any year can be set up - in other words is this a bug?
    We are running BPC v10 MS SP12 with EPM SP16.  I attach my Transformation file and the Time conversion.
    Thanks
    Chris

    I was much delayed in testing this due to other issues, but an opportunity came up last week when building a new environment.  This time the column headings were needed for the 12 data columns (12 months Oct to Sep with 3 letters) which meant I could try adding the year as a *Str() function in the mapping before the *MVAL statement.
    The result was that it still failed but with another error:
    Index was outside the bounds of the array.
    I abandoned due to time and built a specific conversion file for the months.  Each time I load some historic data I have to edit this to put in the correct years.  I keep these lists pasted on the right of the formula column for easy reference.
    One odd thing that we still find consistently since SP12 is that the last column header is always missed.  To get around this we often add an extra blank column to the input files or in this case I added P12 to my conversion file so that the data was picked up.  This is inconvenient.
    It would be good to be able to pick up a year from a column in the data or to add it with the *Str() function before the *MVAL statement.
    I have still to try Astha's proposal below.  Next time!
    Thanks
    Chris.

  • BPC 7.0 MS-Transformation File Error Duplicated Signeddata

    Hi,
    I tested this transformation file on BPC 5.1, and it was able to load data with out error.  When the client moved to 7.0.  I received the following error: 
    Convert Data
    Success
    Record Count : 11212
    Accept Count : 11212
    Reject Count : 0
    Skip Count   : 0
    Duplicate column name 'SIGNEDDATA'.
    Here is a copy of the transformation file:
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = NO
    DELIMITER = ,
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=-1
    ROUNDAMOUNT=
    *MAPPING
    ACCOUNT=*Col(1)
    CATEGORY=*Col(2)
    ProfitCenter=*Col(3)
    ENTITY=*Col(4)
    TIME=*Col(5)
    SIGNEDDATA=*Col(6)
    DATASRC=*NEWCOL(TESTFile)
    Measures=*NewCOL(Periodic)
    *CONVERSION
    I tried taking out the SignedData line in the transformation file, and this is the error I received:
    Convert Data
    Success
    Record Count : 11212
    Accept Count : 11212
    Reject Count : 0
    Skip Count   : 0
    The number of failing rows exceeds the maximum specified. (Microsoft Data Transformation Services (DTS) Data Pump (8004202c): TransformCopy 'DTSTransformation__7' conversion error:  General conversion failure on column pair 1 (source column 'SIGNEDDATA' (DBTYPE_STR), destination column 'SIGNEDDATA' (DBTYPE_NUMERIC)).)
    Any help will be apprecated!
    Thanks,
    Mark

    Hi Sam,
    Can you provide a little more detail what you mean by "Looks like your source data for measure(Signedata) field is in vracht type indted of numeric and it dose not have way to convert"?   There is only numerical data in my signed data column.
    Here is a sample of the data I am trying to load.  I am not sure if that will help.
    Account        Catagory      ProfitCenter   Entity             Time             signed Data
    100000     ACTUAL     100008     1000     2009.DEC     1231
    100000     ACTUAL     100035     1000     2009.DEC     3123
    100000     ACTUAL     100042     1000     2009.DEC     414
    100000     ACTUAL     310101     1000     2009.DEC     321
    100000     ACTUAL     700020     1000     2009.DEC     342
    101000     ACTUAL     100008     1000     2009.DEC     43
    101002     ACTUAL     100008     1000     2009.DEC     324
    101002     ACTUAL     100033     1000     2009.DEC     654745
    101004     ACTUAL     100008     1000     2009.DEC     432
    101004     ACTUAL     100033     1000     2009.DEC     54353
    102003     ACTUAL     105310     1000     2009.DEC     423
    Mark

Maybe you are looking for

  • How to execute a transaction with a different user from the logged user?

    Hello Experts! I'm trying to find out a solution about this scenario: our users need to release a Purchase Order (ME28) and/or a Service Entry Sheet (ML85) in SAP from a WEB based application through TIBCO, but the requirement is to execute this oper

  • Problems with Attachments in hotmail messages

    When I try to attach a file into hotmail message, nothing happens and I lose the icons showing attachment options.  In addition the email states that the attachment ID has a bad format.  This problem just surfaced this week.  Never had this in the pa

  • Select-options values display

    Hi experts, I have three select-options in a selection-screen like s_vbeln for vbak-vbeln, I want to display the values entered in the select-options of the selection-screen on the report. eg!.. If user enters the multiple values in the select-option

  • Multiple Skype Accounts - is it possible on a Mac?

    Been able to find the solution if running on a windows pc how to have multiple skype accounts running but does anyone know if this is possible on macs?

  • Web Dynpro based Workflow Inbox.

    Hi All. Can someone help me with this post. http://scn.sap.com/community/bpm/business-workflow/blog/2013/11/02/dear-sap-why-are-the-existing-webdynpro-based-workflow-inboxes-not-working-out-of-the-box I have posted my query at the end of this post lo