Dear J.Karthikeyan
You can calculate the transparency in percentage using the following code.
int
alpha = shp.getFillFormat().getForeColor().getAlpha();
int
transparency = (int)((1.0 - ((double)alpha / 255)) * 100);
Many Thanks and Kind Regards,
Shakeel Faiz
Support Engineer
Aspose Tyumen Team