none
Question about matrixcolor RRS feed

  • Pergunta

  •    

    Hi have this part of the code to convert an image to gray color.

    Dim c As New ColorMatrix(New Single()() {New Single() {0.3F, 0.3F, 0.3F, 0, 0},                             

       New Single() {0.59F, 0.59F, 0.59F, 0, 0},                               

     New Single() {0.11F, 0.11F, 0.11F, 0, 0},                               

     New Single() {0, 0, 0, 1, 0},                                 

    New Single() {0, 0, 0, 0, 1}})

    But this code was not  made by me. 

    I wonder how and what is possible to know the values ​​of the matrix to convert to other scales. ie if instead of wanting to convert to gray color you want for a red color which are the values​​? where do I get?


    VErificaçao imagens

    sexta-feira, 20 de julho de 2012 11:46