Skip navigation
DeepAlone
Currently Being Moderated

How to reduce/resize the width of objects(AIArtHandle) via APIs ?

Mar 26, 2012 2:06 AM

Hello Everyone,

 

I want to know how I can resize the width/ length  of a art?

 

I went through APIs and got some helpful suite like AITransformArtSuite. But I am unable to use it's method TransformArt. since I don't know how to create appropriate AIRealMatrix.

 

Please show me way to do that.

 

Thanks,

D.A

 
Replies
  • Currently Being Moderated
    Mar 26, 2012 5:27 AM   in reply to DeepAlone

    Hello,

     

    I use the AITransformArtSuite like this :

     

    AIRealMatrix matrix;

    AIReal ScaleX, ScaleY;

    AIArtHandle MyArt;

     

    sMath->AIRealMatrixSetIdentity(&matrix);

     

    ScaleX=0.5;

    ScaleY=0.5;

    sMath->AIRealMatrixSetScale(&matrix, ScaleX, ScaleY);


    error=sAITransformArt->TransformArt(MyArt, &matrix, 1.0, kTransformObjects);

     

    For me, it works.

     

    JLG.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points