คำตอบ how to get the Themecolor shades RGB in VB6

  • 9 มีนาคม 2555 12:18
     
     

    I am automation powerpoint 2007/2010. in my VB6 code i want to get the themeColor shades RGB.

    Like for "followed hyperlink" color  i want RGB for shade of 80 % lighter.

    if i manually calculate  shade RGB from "followed hyperlink" using below formula

    finalRed = originalRed (1 - lighterPercentage/100) + 255 * lighterPercentage/100

    and similarly for blue and green.

    i am not getting the same RGB as shown by powerpoint.

    Can you please help in getting the same ?



ตอบทั้งหมด