Sign In  Sign Up Live-Chat

Fill Type - Solid

Last post 05-08-2008, 2:48 AM by jkarthik. 2 replies.
Sort Posts: Previous Next
  •  05-07-2008, 4:24 AM 125772

    Fill Type - Solid

    Hi,

    How can i know if a shape whose fill color is of solid type is "semitransparent" or not ? . I went through the FillFormat class but did not find any suitable method .

    Regards
    J.Karthikeyan
     
  •  05-07-2008, 5:06 AM 125778 in reply to 125772

    Re: Fill Type - Solid

    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
     
  •  05-08-2008, 2:48 AM 125951 in reply to 125778

    Re: Fill Type - Solid

    Thanks

    Regards
    J.Karthikeyan
     
View as RSS news feed in XML