Skip navigation
Currently Being Moderated

Gradient, Patterns, and Raster image Resolution

Jan 6, 2014 2:13 AM

Hi All,

 

I have a requirement to list count of gradient and patterns, ppi value of raster images. If i try to retrieve the count of gradient and patterns,

it lists unused gradrients and patterns. Please help me to list out count which shows in document info.

 

Here is the code i tried:

 

//Pattern count

ai::int32 idPatternCount = 0;

sAIPattern->CountPatterns(&idPatternCount);

 

//Gradient count

ai::int32 idGradientsCount = 0;

sAIGradient->CountGradients(&idGradientsCount);

 

In the API document, i am not able to find the method to retrieve raster image PPI. Please help me on this.

 

 

Regards,

Selva

 
Replies
  • Currently Being Moderated
    Jan 6, 2014 5:39 AM   in reply to SASEKUMAR

    You can calculate it by using the function GetRasterInfo at Raster Suite. The bounds of the AIRasterRecord - size of raster object in pixels.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2014 11:10 AM   in reply to _MBK_

    CountPatterns() & CountGradients just tell you what's in the document pattern & gradient lists, so it makes sense that wouldn't be helpful. I don't think there's anything in the API that lets you know what's 'in use' for anything like that, including symbols or graphic styles as well.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 7, 2014 9:36 PM   in reply to SASEKUMAR

    It is possible, for example, maybe to remove unused by PlayActionEvent and then count

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 18, 2014 4:26 AM   in reply to SASEKUMAR

    Gradients and patterns - is also swatches. So, perhaps, you can remove unused swatches and then CountGradients and CountPatterns?

    Have you tried to work as a functions ValidatePattern and ValidateGradient?

     
    |
    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